12345678910111213141516171819202122232425262728293031323334 |
- <?php
- /**
- * 学生提分册模型类
- * @author jiangfei
- * @date 2015-08-17 18:28:00
- * @company 上海风车教育有限公司.
- */
- class StudentImproveScorePlanTopics extends MyActiveRecord{
- public static function model($className = __CLASS__){
- return parent::model($className);
- }
- public function tableName(){
- return "student_improve_score_plan_topics";
- }
- public function getTopicsByPlanIds($planIds){
- $result = array();
-
- if ($planIds AND is_array($planIds)) {
- $criteria = new CDbCriteria();
- $criteria->addCondition("plan_id IN (". implode(',', $planIds) .")");
-
- $result = getAttributes($this->findAll($criteria));
- }
-
- return $result;
- }
-
-
- }
|