12345678910111213141516171819202122232425262728 |
- <?php
- class SProductAlikeIspTopic extends MyActiveRecord {
- public static function model($className = __CLASS__)
- {
- return parent::model($className);
- }
- public function tableName()
- {
- return 'product_alike_isp_topic';
- }
- /**
- * 相同变式题数据
- * @param $examId
- * @param $select
- * @return array|null
- */
- public function getCommonTopic($examId, $select){
- $criteria = new CDbCriteria();
- $criteria->select = $select;
- $criteria->addCondition('exam_id='.$examId);
- return $this->findAll($criteria);
- }
- }
|