示例#1
0
 public function getByCategory($imgcat_id, $start = 0, $limit = 0, $asobject = true)
 {
     $criteria = new CriteriaCompo();
     $criteria->add(new Criteria('imgcat_id', $imgcat_id));
     $criteria->setSort('image_weight');
     $criteria->setOrder('ASC');
     $criteria->setStart($start);
     $criteria->setLimit($limit);
     return parent::getObjects($criteria, null, $asobject);
 }