当前位置: 首页>>代码示例>>PHP>>正文


PHP Tinebase_Record_Abstract::__construct方法代码示例

本文整理汇总了PHP中Tinebase_Record_Abstract::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Tinebase_Record_Abstract::__construct方法的具体用法?PHP Tinebase_Record_Abstract::__construct怎么用?PHP Tinebase_Record_Abstract::__construct使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Tinebase_Record_Abstract的用法示例。


在下文中一共展示了Tinebase_Record_Abstract::__construct方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: __construct

 /**
  * overwrite constructor to add more filters
  *
  * @param mixed $_data
  * @param bool $_bypassFilters
  * @param mixed $_convertDates
  * @return void
  */
 public function __construct($_data = NULL, $_bypassFilters = false, $_convertDates = true)
 {
     $this->_filters['budget'] = array('Digits', new Zend_Filter_Empty(NULL));
     $this->_filters['price'] = array(new Zend_Filter_PregReplace('/,/', '.'), new Zend_Filter_Empty(NULL));
     $this->_filters['is_open'] = new Zend_Filter_Empty(0);
     return parent::__construct($_data, $_bypassFilters, $_convertDates);
 }
开发者ID:rodrigofns,项目名称:ExpressoLivre3,代码行数:15,代码来源:Timeaccount.php

示例2: __construct

 /**
  * overwrite constructor to add more filters
  *
  * @param mixed $_data
  * @param bool $_bypassFilters
  * @param mixed $_convertDates
  * @return void
  */
 public function __construct($_data = NULL, $_bypassFilters = false, $_convertDates = true)
 {
     // set default value if field is empty
     $this->_filters['nat'] = new Zend_Filter_Empty('no');
     $this->_filters['cfd_time'] = new Zend_Filter_Empty(0);
     parent::__construct($_data, $_bypassFilters, $_convertDates);
 }
开发者ID:,项目名称:,代码行数:15,代码来源:

示例3: __construct

 /**
  * overwrite constructor to add more filters
  *
  * @param mixed $_data
  * @param bool $_bypassFilters
  * @param mixed $_convertDates
  * @return void
  */
 public function __construct($_data = NULL, $_bypassFilters = false, $_convertDates = true)
 {
     // strip time information from datetime string
     $this->_filters['start_date'] = new Zend_Filter_PregReplace('/(\\d{4}-\\d{2}-\\d{2}).*/', '$1');
     // set start_time to NULL if not set
     $this->_filters['start_time'] = new Zend_Filter_Empty(NULL);
     return parent::__construct($_data, $_bypassFilters, $_convertDates);
 }
开发者ID:rodrigofns,项目名称:ExpressoLivre3,代码行数:16,代码来源:Timesheet.php

示例4: __construct

 /**
  * overwrite constructor to add more filters
  *
  * @param mixed $_data
  * @param bool $_bypassFilters
  * @param mixed $_convertDates
  * @return void
  */
 public function __construct($_data = NULL, $_bypassFilters = false, $_convertDates = true)
 {
     $this->_filters['emailForwardOnly'] = new Zend_Filter_Empty(0);
     $this->_filters['emailMailSize'] = new Zend_Filter_Empty(0);
     $this->_filters['emailMailQuota'] = new Zend_Filter_Empty(0);
     $this->_filters['emailForwards'] = new Zend_Filter_Empty(array());
     $this->_filters['emailAliases'] = new Zend_Filter_Empty(array());
     return parent::__construct($_data, $_bypassFilters, $_convertDates);
 }
开发者ID:bitExpert,项目名称:Tine-2.0-Open-Source-Groupware-and-CRM,代码行数:17,代码来源:EmailUser.php

示例5: __construct

 /**
  * overwrite default constructor as convinience for data from database
  */
 public function __construct($_data = NULL, $_bypassFilters = false, $_convertDates = true)
 {
     if (is_array($_data) && isset($_data['account_right'])) {
         $rights = explode(',', $_data['account_right']);
         $_data['view_right'] = in_array(self::VIEW_RIGHT, $rights);
         $_data['use_right'] = in_array(self::USE_RIGHT, $rights);
     }
     parent::__construct($_data, $_bypassFilters, $_convertDates);
 }
开发者ID:ingoratsdorf,项目名称:Tine-2.0-Open-Source-Groupware-and-CRM,代码行数:12,代码来源:TagRight.php

示例6: __construct

 /**
  * overwrite constructor to add more filters
  *
  * @param mixed $_data
  * @param bool $_bypassFilters
  * @param mixed $_convertDates
  * @return void
  */
 public function __construct($_data = NULL, $_bypassFilters = false, $_convertDates = true)
 {
     // set default value if field is empty
     $this->_filters['admin_mode'] = new Zend_Filter_Empty('false');
     $this->_filters['webserver_Type'] = new Zend_Filter_Empty('https');
     $this->_filters['ntp_refresh'] = new Zend_Filter_Empty(0);
     $this->_filters['http_port'] = new Zend_Filter_Empty(0);
     $this->_filters['https_port'] = new Zend_Filter_Empty(0);
     parent::__construct($_data, $_bypassFilters, $_convertDates);
 }
开发者ID:ingoratsdorf,项目名称:Tine-2.0-Open-Source-Groupware-and-CRM,代码行数:18,代码来源:Location.php

示例7: __construct

 /**
  * overwrite constructor to add more filters
  *
  * @param mixed $_data
  * @param bool $_bypassFilters
  * @param mixed $_convertDates
  * @return void
  */
 public function __construct($_data = NULL, $_bypassFilters = false, $_convertDates = true)
 {
     // set default value if field is empty
     $this->_filters['attach'] = new Zend_Filter_Empty(0);
     $this->_filters['saycid'] = new Zend_Filter_Empty(0);
     $this->_filters['review'] = new Zend_Filter_Empty(0);
     $this->_filters['operator'] = new Zend_Filter_Empty(0);
     $this->_filters['envelope'] = new Zend_Filter_Empty(0);
     $this->_filters['sayduration'] = new Zend_Filter_Empty(0);
     $this->_filters['saydurationm'] = new Zend_Filter_Empty(0);
     $this->_filters['sendvoicemail'] = new Zend_Filter_Empty(0);
     $this->_filters['delete'] = new Zend_Filter_Empty(0);
     $this->_filters['nextaftercmd'] = new Zend_Filter_Empty(0);
     $this->_filters['forcename'] = new Zend_Filter_Empty(0);
     $this->_filters['forcegreetings'] = new Zend_Filter_Empty(0);
     $this->_filters['hidefromdir'] = new Zend_Filter_Empty(0);
     parent::__construct($_data, $_bypassFilters, $_convertDates);
 }
开发者ID:ingoratsdorf,项目名称:Tine-2.0-Open-Source-Groupware-and-CRM,代码行数:26,代码来源:Voicemail.php

示例8: __construct

 /**
  * overwrite constructor to add more filters
  *
  * @param mixed $_data
  * @param bool $_bypassFilters
  * @param mixed $_convertDates
  * @return void
  */
 public function __construct($_data = NULL, $_bypassFilters = false, $_convertDates = true)
 {
     // do something here if you like (add default empty values, ...)
     return parent::__construct($_data, $_bypassFilters, $_convertDates);
 }
开发者ID:rodrigofns,项目名称:ExpressoLivre3,代码行数:13,代码来源:ExampleRecord.php

示例9: __construct

 /**
  * Default constructor
  * Constructs an object and sets its record related properties.
  *
  * @param mixed $_data
  * @param bool $bypassFilters sets {@see this->bypassFilters}
  * @param mixed $convertDates sets {@see $this->convertDates} and optionaly {@see $this->$dateConversionFormat}
  * @return void
  */
 public function __construct($_data = NULL, $_bypassFilters = false, $_convertDates = true)
 {
     $this->_validators = array_merge($this->_validators, $this->_additionalValidators);
     parent::__construct($_data, $_bypassFilters, $_convertDates);
 }
开发者ID:bitExpert,项目名称:Tine-2.0-Open-Source-Groupware-and-CRM,代码行数:14,代码来源:KeyFieldRecord.php

示例10: __construct

 /**
  * the constructor
  * it is needed because we have more validation fields in Calendars
  * 
  * @param mixed $_data
  * @param bool $bypassFilters sets {@see this->bypassFilters}
  * @param bool $convertDates sets {@see $this->convertDates}
  */
 public function __construct($_data = NULL, $_bypassFilters = false, $_convertDates = true)
 {
     $this->_filters['organizer'] = new Zend_Filter_Empty(NULL);
     parent::__construct($_data, $_bypassFilters, $_convertDates);
 }
开发者ID:ingoratsdorf,项目名称:Tine-2.0-Open-Source-Groupware-and-CRM,代码行数:13,代码来源:Event.php

示例11: __construct

 /**
  * overwrite constructor to add more filters
  *
  * @param mixed $_data
  * @param bool $_bypassFilters
  * @param mixed $_convertDates
  */
 public function __construct($_data = NULL, $_bypassFilters = false, $_convertDates = true)
 {
     // set geofields to NULL if empty
     $geoFields = array('adr_one_lon', 'adr_one_lat', 'adr_two_lon', 'adr_two_lat');
     foreach ($geoFields as $geoField) {
         $this->_filters[$geoField] = new Zend_Filter_Empty(NULL);
     }
     parent::__construct($_data, $_bypassFilters, $_convertDates);
 }
开发者ID:ingoratsdorf,项目名称:Tine-2.0-Open-Source-Groupware-and-CRM,代码行数:16,代码来源:Contact.php

示例12: __construct

 public function __construct($_data = NULL, $_bypassFilters = false, $_convertDates = true)
 {
     parent::__construct($_data, $_bypassFilters, $_convertDate);
     // set default value for allow automatic booking
     $this->allowBooking();
 }
开发者ID:carriercomm,项目名称:Billing-5,代码行数:6,代码来源:Payment.php

示例13: __construct

 /**
  * @see Tinebase_Record_Abstract
  */
 public function __construct($_data = NULL, $_bypassFilters = false, $_convertDates = NULL)
 {
     $this->_validators = array('id' => array('allowEmpty' => TRUE), 'application_id' => array('Alnum', 'presence' => 'required'), 'account_id' => array('presence' => 'required', 'allowEmpty' => TRUE, 'default' => '0'), 'account_type' => array(new Zend_Validate_InArray(array(Tinebase_Acl_Rights::ACCOUNT_TYPE_USER, Tinebase_Acl_Rights::ACCOUNT_TYPE_GROUP, Tinebase_Acl_Rights::ACCOUNT_TYPE_ANYONE))), 'right' => array('presence' => 'required'));
     return parent::__construct($_data, $_bypassFilters);
 }
开发者ID:ingoratsdorf,项目名称:Tine-2.0-Open-Source-Groupware-and-CRM,代码行数:8,代码来源:RoleRight.php

示例14: __construct

 /**
  * @see Tinebase_Record_Abstract
  */
 public function __construct($_data = NULL, $_bypassFilters = false, $_convertDates = true)
 {
     $this->_validators = array('id' => array(Zend_Filter_Input::ALLOW_EMPTY => true), 'container_id' => array('allowEmpty' => true), 'list_id' => array('allowEmpty' => true), 'name' => array('presence' => 'required'), 'description' => array(Zend_Filter_Input::ALLOW_EMPTY => true), 'members' => array(Zend_Filter_Input::ALLOW_EMPTY => true, Zend_Filter_Input::DEFAULT_VALUE => array()), 'email' => array('allowEmpty' => true), 'visibility' => array(new Zend_Validate_InArray(array(self::VISIBILITY_HIDDEN, self::VISIBILITY_DISPLAYED)), Zend_Filter_Input::DEFAULT_VALUE => self::VISIBILITY_DISPLAYED), 'created_by' => array('allowEmpty' => true), 'creation_time' => array('allowEmpty' => true), 'last_modified_by' => array('allowEmpty' => true), 'last_modified_time' => array('allowEmpty' => true), 'is_deleted' => array('allowEmpty' => true), 'deleted_time' => array('allowEmpty' => true), 'deleted_by' => array('allowEmpty' => true), 'seq' => array('allowEmpty' => true));
     parent::__construct($_data, $_bypassFilters, $_convertDates);
 }
开发者ID:bitExpert,项目名称:Tine-2.0-Open-Source-Groupware-and-CRM,代码行数:8,代码来源:Group.php

示例15: __construct

 /**
  * overwrite constructor to add more filters
  *
  * @param mixed $_data
  * @param bool $_bypassFilters
  * @param mixed $_convertDates
  * @return void
  */
 public function __construct($_data = NULL, $_bypassFilters = false, $_convertDates = true)
 {
     // set some fields to default if not set
     $this->_filters['ssl'] = array(new Zend_Filter_Empty(self::SECURE_TLS), 'StringTrim', 'StringToLower');
     $this->_filters['smtp_ssl'] = array(new Zend_Filter_Empty(self::SECURE_TLS), 'StringTrim', 'StringToLower');
     $this->_filters['sieve_ssl'] = array(new Zend_Filter_Empty(self::SECURE_TLS), 'StringTrim', 'StringToLower');
     $this->_filters['display_format'] = array(new Zend_Filter_Empty(self::DISPLAY_HTML), 'StringTrim', 'StringToLower');
     $this->_filters['port'] = new Zend_Filter_Empty(NULL);
     $this->_filters['smtp_port'] = new Zend_Filter_Empty(NULL);
     $this->_filters['sieve_port'] = new Zend_Filter_Empty(NULL);
     return parent::__construct($_data, $_bypassFilters, $_convertDates);
 }
开发者ID:bitExpert,项目名称:Tine-2.0-Open-Source-Groupware-and-CRM,代码行数:20,代码来源:Account.php


注:本文中的Tinebase_Record_Abstract::__construct方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。