/** * 单例模式 * @return App_Model */ public static function &instance() { if (!isset(self::$instance)) { // Create a new instance self::$instance = new Event_Image_Model(); } return self::$instance; }
/** * * 获取活动照片 * @param unknown_type $event_id */ private function _list_event_image($event_id) { $image = Event_Image_Model::instance()->listByEvent($event_id); if ($image) { return $this->_arrange_event_image($image); } return array(); }