SStudentIspErrorCode.php 642 B

123456789101112131415161718192021222324252627
  1. <?php
  2. /**
  3. * @description: 学生个性化学习宝错误码
  4. */
  5. class SStudentIspErrorCode extends MyActiveRecord {
  6. public static function model($className = __CLASS__)
  7. {
  8. return parent::model($className);
  9. }
  10. public function tableName()
  11. {
  12. return 'student_isp_error_code';
  13. }
  14. public function getStudentIspErrorCode($examId,$productType)
  15. {
  16. $criteria = new CDbCriteria();
  17. $criteria->addCondition("exam_id = {$examId}");
  18. $criteria->addCondition("product_type = {$productType}");
  19. $result = getAttributes($this->findAll($criteria));
  20. return $result;
  21. }
  22. }