예제 #1
0
 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);
 }
예제 #2
0
 /**
  * 所有的查询的结果缓存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) {
     }
 }
예제 #3
0
 public function __construct()
 {
     parent::__construct(new Auto_Model_Table_Serial());
 }
예제 #4
0
파일: Records.php 프로젝트: banyan/alchook
 public function __construct()
 {
     parent::__construct();
     $this->_collection = $this->_db->selectCollection(self::COLLECTION_NAME);
 }
예제 #5
0
 public function __construct(array $options)
 {
     $this->_enquiryType = new Application_Model_EnquiryType();
     parent::__construct($options);
 }
예제 #6
0
 public function __construct(array $options = null)
 {
     parent::__construct($options);
 }
예제 #7
0
 public function __construct()
 {
     parent::__construct(new Sell_Model_Table_Sellinfo());
 }
예제 #8
0
 public function __construct()
 {
     parent::__construct(new Report_Model_Table_Valuation());
 }
예제 #9
0
 public function __construct()
 {
     parent::__construct(new Application_Model_Table_SmsSenderLog());
 }
예제 #10
0
 public function __construct()
 {
     parent::__construct(new Auto_Model_Table_Brand());
 }
예제 #11
0
 public function __construct(array $options = null)
 {
     $this->_startDate = new Zend_Date();
     parent::__construct($options);
 }
예제 #12
0
 public function __construct(Application_Model_SmsSenderInterface $sender = NULL)
 {
     parent::__construct(new Application_Model_Table_MailSmsEvent());
     $this->_sender = $sender;
 }
예제 #13
0
 public function __construct(array $options = null)
 {
     parent::__construct($options);
     $this->_names = array('richard', 'david', 'mark');
 }
예제 #14
0
 public function __construct(array $options = null)
 {
     $this->_menuItem = new Application_Model_MenuItem();
     parent::__construct($options);
 }
예제 #15
0
 public function __construct(array $options = null)
 {
     $date = new Zend_Date();
     $this->_year = $date->get(Zend_Date::YEAR);
     parent::__construct($options);
 }
예제 #16
0
 public function __construct()
 {
     parent::__construct(new Used_Model_Table_Used());
 }