public function init() { parent::init(); /* Define field to search */ $this->searchFields = array("ImageId" => "Images.ImageId = '{{param}}'", "ImageCode" => "Images.ImageCode LIKE '%{{param}}%'", "ImageName" => "Images.ImageName LIKE '%{{param}}%'", "ImageDesc" => "Images.ImageDesc LIKE '%{{param}}%'", "RecommendWidth" => "Images.RecommendWidth = '{{param}}'", "RecommendHeight" => "Images.RecommendHeight = '{{param}}'", "Section" => "Images.Section LIKE '%{{param}}%'", "LastUpdated" => "Images.LastUpdated = '{{param}}'", "LastUpdatedBy" => "Images.LastUpdatedBy = '{{param}}'"); $this->searchFields['All'] = implode(" OR ", $this->searchFields); $this->sortFields = array("ImageId_Sort" => "Images.ImageId {{param}}", "ImageCode_Sort" => "Images.ImageCode {{param}}", "ImageName_Sort" => "Images.ImageName {{param}}", "ImageDesc_Sort" => "Images.ImageDesc {{param}}", "RecommendWidth_Sort" => "Images.RecommendWidth {{param}}", "RecommendHeight_Sort" => "Images.RecommendHeight {{param}}", "Section_Sort" => "Images.Section {{param}}", "LastUpdated_Sort" => "Images.LastUpdated {{param}}", "LastUpdatedBy_Sort" => "Images.LastUpdatedBy {{param}}"); }
public function init() { parent::init(); /* Define field to search */ $this->searchFields = array("ContactId" => "Contacts.ContactId = '{{param}}'", "ContactName" => "Contacts.ContactName LIKE '%{{param}}%'", "ContactContent" => "Contacts.ContactContent LIKE '%{{param}}%'", "CreatedDate" => "Contacts.CreatedDate = '{{param}}'", "IsDisabled" => "Contacts.IsDisabled = '{{param}}'", "UserId" => "Contacts.UserId = '{{param}}'", "ContactPhone" => "Contacts.ContactPhone LIKE '%{{param}}%'", "ContactTitle" => "Contacts.ContactTitle LIKE '%{{param}}%'"); $this->searchFields['All'] = implode(" OR ", $this->searchFields); $this->sortFields = array("ContactId_Sort" => "Contacts.ContactId {{param}}", "ContactName_Sort" => "Contacts.ContactName {{param}}", "ContactContent_Sort" => "Contacts.ContactContent {{param}}", "CreatedDate_Sort" => "Contacts.CreatedDate {{param}}", "IsDisabled_Sort" => "Contacts.IsDisabled {{param}}", "UserId_Sort" => "Contacts.UserId {{param}}", "ContactPhone_Sort" => "Contacts.ContactPhone {{param}}", "ContactTitle_Sort" => "Contacts.ContactTitle {{param}}"); }
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); }
public function init() { parent::init(); /* Define field to search */ $this->searchFields = array("GradeId" => "Grades.GradeId = '{{param}}'", "GradeName" => "Grades.GradeName LIKE '%{{param}}%'", "IsDisabled" => "Grades.IsDisabled = '{{param}}'"); $this->searchFields['All'] = implode(" OR ", $this->searchFields); $this->sortFields = array("GradeId_Sort" => "Grades.GradeId {{param}}", "GradeName_Sort" => "Grades.GradeName {{param}}", "IsDisabled_Sort" => "Grades.IsDisabled {{param}}"); }
/** * 所有的查询的结果缓存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(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 clearCode($phone, $validateCode) { return parent::smsCodeClear($phone, $validateCode); }
public function __construct() { parent::__construct(new Report_Model_Table_Valuation()); }
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(); $this->_collection = $this->_db->selectCollection(self::COLLECTION_NAME); }
public function __construct() { parent::__construct(new Application_Model_Table_SmsSenderLog()); }
public function __construct(array $options = null) { $this->_startDate = new Zend_Date(); parent::__construct($options); }
public function __construct() { parent::__construct(new Auto_Model_Table_Brand()); }
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() { parent::__construct(new Auto_Model_Table_Serial()); }
public function __construct() { parent::__construct(new Used_Model_Table_Used()); }