Esempio n. 1
0
 private function _gets($conditions, $order, $pageNo, $pageSize)
 {
     $datas = $this->_model->getAllByConditions($conditions, $order, $pageNo, $pageSize);
     $rtn = array();
     foreach ($datas as $data) {
         $rtn[] = new TCVM_Product_Entity_Courses($data);
     }
     return $rtn;
 }
Esempio n. 2
0
 /**
  * @return TCVM_Product_Model_Courses
  */
 public static function GetInstance()
 {
     if (!self::$_instance) {
         self::$_instance = new self();
     }
     return self::$_instance;
 }