コード例 #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
ファイル: City.php プロジェクト: kevinwan/gongpingjiaPHP
 /**
  * 所有的查询的结果缓存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
ファイル: Serial.php プロジェクト: kevinwan/gongpingjiaPHP
 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
ファイル: Enquiry.php プロジェクト: richardlawson/craigclowan
 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
ファイル: Sellinfo.php プロジェクト: kevinwan/gongpingjiaPHP
 public function __construct()
 {
     parent::__construct(new Sell_Model_Table_Sellinfo());
 }
コード例 #8
0
ファイル: Valuation.php プロジェクト: kevinwan/gongpingjiaPHP
 public function __construct()
 {
     parent::__construct(new Report_Model_Table_Valuation());
 }
コード例 #9
0
 public function __construct()
 {
     parent::__construct(new Application_Model_Table_SmsSenderLog());
 }
コード例 #10
0
ファイル: Brand.php プロジェクト: kevinwan/gongpingjiaPHP
 public function __construct()
 {
     parent::__construct(new Auto_Model_Table_Brand());
 }
コード例 #11
0
ファイル: Article.php プロジェクト: richardlawson/craigclowan
 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
ファイル: Test.php プロジェクト: richardlawson/craigclowan
 public function __construct(array $options = null)
 {
     parent::__construct($options);
     $this->_names = array('richard', 'david', 'mark');
 }
コード例 #14
0
ファイル: Page.php プロジェクト: richardlawson/craigclowan
 public function __construct(array $options = null)
 {
     $this->_menuItem = new Application_Model_MenuItem();
     parent::__construct($options);
 }
コード例 #15
0
ファイル: Term.php プロジェクト: richardlawson/craigclowan
 public function __construct(array $options = null)
 {
     $date = new Zend_Date();
     $this->_year = $date->get(Zend_Date::YEAR);
     parent::__construct($options);
 }
コード例 #16
0
ファイル: Used.php プロジェクト: kevinwan/gongpingjiaPHP
 public function __construct()
 {
     parent::__construct(new Used_Model_Table_Used());
 }