コード例 #1
0
ファイル: Images.php プロジェクト: hocondoimeo/giasu-tam.com
 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}}");
 }
コード例 #2
0
 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}}");
 }
コード例 #3
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);
 }
コード例 #4
0
ファイル: Grades.php プロジェクト: hocondoimeo/giasu-tam.com
 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}}");
 }
コード例 #5
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) {
     }
 }
コード例 #6
0
ファイル: Enquiry.php プロジェクト: richardlawson/craigclowan
 public function __construct(array $options)
 {
     $this->_enquiryType = new Application_Model_EnquiryType();
     parent::__construct($options);
 }
コード例 #7
0
 public function __construct(array $options = null)
 {
     parent::__construct($options);
 }
コード例 #8
0
ファイル: Sellinfo.php プロジェクト: kevinwan/gongpingjiaPHP
 public function __construct()
 {
     parent::__construct(new Sell_Model_Table_Sellinfo());
 }
コード例 #9
0
ファイル: User.php プロジェクト: kevinwan/gongpingjiaPHP
 public function clearCode($phone, $validateCode)
 {
     return parent::smsCodeClear($phone, $validateCode);
 }
コード例 #10
0
ファイル: Valuation.php プロジェクト: kevinwan/gongpingjiaPHP
 public function __construct()
 {
     parent::__construct(new Report_Model_Table_Valuation());
 }
コード例 #11
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);
 }
コード例 #12
0
ファイル: Records.php プロジェクト: banyan/alchook
 public function __construct()
 {
     parent::__construct();
     $this->_collection = $this->_db->selectCollection(self::COLLECTION_NAME);
 }
コード例 #13
0
 public function __construct()
 {
     parent::__construct(new Application_Model_Table_SmsSenderLog());
 }
コード例 #14
0
ファイル: Article.php プロジェクト: richardlawson/craigclowan
 public function __construct(array $options = null)
 {
     $this->_startDate = new Zend_Date();
     parent::__construct($options);
 }
コード例 #15
0
ファイル: Brand.php プロジェクト: kevinwan/gongpingjiaPHP
 public function __construct()
 {
     parent::__construct(new Auto_Model_Table_Brand());
 }
コード例 #16
0
 public function __construct(Application_Model_SmsSenderInterface $sender = NULL)
 {
     parent::__construct(new Application_Model_Table_MailSmsEvent());
     $this->_sender = $sender;
 }
コード例 #17
0
ファイル: Test.php プロジェクト: richardlawson/craigclowan
 public function __construct(array $options = null)
 {
     parent::__construct($options);
     $this->_names = array('richard', 'david', 'mark');
 }
コード例 #18
0
ファイル: Page.php プロジェクト: richardlawson/craigclowan
 public function __construct(array $options = null)
 {
     $this->_menuItem = new Application_Model_MenuItem();
     parent::__construct($options);
 }
コード例 #19
0
ファイル: Serial.php プロジェクト: kevinwan/gongpingjiaPHP
 public function __construct()
 {
     parent::__construct(new Auto_Model_Table_Serial());
 }
コード例 #20
0
ファイル: Used.php プロジェクト: kevinwan/gongpingjiaPHP
 public function __construct()
 {
     parent::__construct(new Used_Model_Table_Used());
 }