setMainDao(); } public function totals($condtion = null) { return $this->objMainDao->totals($condtion); } public function get($id) { $result = $this->gets(array($id)); if (!$result) { return false; } return array_pop($result); } public function gets(array $ids) { $result = $this->objMainDao->gets($ids); return $result; } public function getsAll($order = null, $limit = null) { $ids = $this->objMainDao->getsAllIds($order, $limit); return $this->gets($ids); } }