public function __construct($path, $file, array $options = null) { $this->_file = $file; $this->_path = $path; $this->_thumbPath = $this->_path . 'thumbnails/'; list($this->_width, $this->_height) = getimagesize($this->_path . $this->_file); parent::__construct($options); }
/** * 所有的查询的结果缓存30天 */ public function __construct() { parent::__construct(new Application_Model_Table_City()); //设置缓存一个月 try { $this->_select = $this->select()->setCacheClass(XF_Cache_Memcache::getInstance())->setCacheTime(60 * 24 * 30, FALSE); } catch (XF_Exception $e) { } }
public function __construct() { parent::__construct(new Auto_Model_Table_Serial()); }
public function __construct() { parent::__construct(); $this->_collection = $this->_db->selectCollection(self::COLLECTION_NAME); }
public function __construct(array $options) { $this->_enquiryType = new Application_Model_EnquiryType(); parent::__construct($options); }
public function __construct(array $options = null) { parent::__construct($options); }
public function __construct() { parent::__construct(new Sell_Model_Table_Sellinfo()); }
public function __construct() { parent::__construct(new Report_Model_Table_Valuation()); }
public function __construct() { parent::__construct(new Application_Model_Table_SmsSenderLog()); }
public function __construct() { parent::__construct(new Auto_Model_Table_Brand()); }
public function __construct(array $options = null) { $this->_startDate = new Zend_Date(); parent::__construct($options); }
public function __construct(Application_Model_SmsSenderInterface $sender = NULL) { parent::__construct(new Application_Model_Table_MailSmsEvent()); $this->_sender = $sender; }
public function __construct(array $options = null) { parent::__construct($options); $this->_names = array('richard', 'david', 'mark'); }
public function __construct(array $options = null) { $this->_menuItem = new Application_Model_MenuItem(); parent::__construct($options); }
public function __construct(array $options = null) { $date = new Zend_Date(); $this->_year = $date->get(Zend_Date::YEAR); parent::__construct($options); }
public function __construct() { parent::__construct(new Used_Model_Table_Used()); }