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


PHP CActiveRecord::rules方法代码示例

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


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

示例1: rules

 public function rules()
 {
     return array_merge(parent::rules(), array(array('etpr_terminal, etpr_date_from, etpr_date_to, etpr_operation, etpr_container_status, etpr_price', 'required'), array('etpr_container_size, etpr_day_from, etpr_day_to, etpr_imdg_price, etpr_imdg_coefficient, etpr_h68_2020_coefficient, etpr_hour_holiday_coefficient, etpr_notes', 'default', 'setOnEmpty' => true, 'value' => null), array('etpr_day_from, etpr_day_to', 'numerical', 'integerOnly' => true), array('etpr_price, etpr_imdg_price, etpr_imdg_coefficient, etpr_h68_2020_coefficient, etpr_hour_holiday_coefficient', 'type', 'type' => 'float'), array('etpr_terminal', 'length', 'max' => 10), array('etpr_price, etpr_imdg_price', 'length', 'max' => 7), array('etpr_imdg_coefficient, etpr_h68_2020_coefficient, etpr_hour_holiday_coefficient', 'length', 'max' => 4), array('etpr_notes', 'safe'), array('etpr_operation', 'in', 'range' => array(self::ETPR_OPERATION_LOADING, self::ETPR_OPERATION_STORAGE, self::ETPR_OPERATION_LOADING_TRUCK, self::ETPR_OPERATION_LOADING_RW, self::ETPR_OPERATION_MOVING_LT_STORAGE, self::ETPR_OPERATION_MOVING_SS_PLACE)), array('etpr_container_status', 'in', 'range' => array(self::ETPR_CONTAINER_STATUS_FULL, self::ETPR_CONTAINER_STATUS_EMPTY)), array('etpr_container_size', 'in', 'range' => array(self::ETPR_CONTAINER_SIZE_20, self::ETPR_CONTAINER_SIZE_40)), array('etpr_id, etpr_terminal, etpr_date_from, etpr_date_to, etpr_operation, etpr_container_status, etpr_container_size, etpr_day_from, etpr_day_to, etpr_price, etpr_imdg_price, etpr_imdg_coefficient, etpr_h68_2020_coefficient, etpr_hour_holiday_coefficient, etpr_notes', 'safe', 'on' => 'search')));
 }
开发者ID:dbrkls,项目名称:edifactdata,代码行数:4,代码来源:BaseEtprTerminalPrices.php

示例2: rules

 public function rules()
 {
     return array_merge(parent::rules(), array(array('ppxt_pprs_id', 'required'), array('ppxt_ptyp_id', 'default', 'setOnEmpty' => true, 'value' => null), array('ppxt_pprs_id, ppxt_ptyp_id', 'numerical', 'integerOnly' => true), array('ppxt_id, ppxt_pprs_id, ppxt_ptyp_id', 'safe', 'on' => 'search')));
 }
开发者ID:dbrisinajumi,项目名称:d2person,代码行数:4,代码来源:BasePpxtPersonXType.php

示例3: rules

 public function rules()
 {
     return array_merge(parent::rules(), array(array('fdpe_type, fdpe_dt_from, fdpe_dt_to', 'required'), array('fdpe_type', 'length', 'max' => 6), array('fdpe_id, fdpe_type, fdpe_dt_from, fdpe_dt_to', 'safe', 'on' => 'search')));
 }
开发者ID:dbrisinajumi,项目名称:d2fixr,代码行数:4,代码来源:BaseFdpeDimPeriod.php

示例4: rules

 public function rules()
 {
     return array_merge(parent::rules(), array(array('vtdc_vtrc_id', 'required'), array('vtdc_vtdt_id, vtdc_fixr_id, vtdc_number, vtdc_issue_date, vtdc_expire_date, vtdc_notes', 'default', 'setOnEmpty' => true, 'value' => null), array('vtdc_vtrc_id, vtdc_vtdt_id', 'numerical', 'integerOnly' => true), array('vtdc_fixr_id', 'length', 'max' => 10), array('vtdc_number', 'length', 'max' => 50), array('vtdc_issue_date, vtdc_expire_date, vtdc_notes', 'safe'), array('vtdc_id, vtdc_vtrc_id, vtdc_vtdt_id, vtdc_fixr_id, vtdc_number, vtdc_issue_date, vtdc_expire_date, vtdc_notes', 'safe', 'on' => 'search')));
 }
开发者ID:dbrisinajumi,项目名称:trucks,代码行数:4,代码来源:BaseVtdcTruckDoc.php

示例5: rules

 public function rules()
 {
     return array_merge(parent::rules(), array(array('tsth_ttsk_id', 'required'), array('tsth_tstt_id, tsth_pprs_id, tsth_datetime', 'default', 'setOnEmpty' => true, 'value' => null), array('tsth_tstt_id, tsth_pprs_id', 'numerical', 'integerOnly' => true), array('tsth_ttsk_id', 'length', 'max' => 10), array('tsth_datetime', 'safe'), array('tsth_id, tsth_ttsk_id, tsth_tstt_id, tsth_pprs_id, tsth_datetime', 'safe', 'on' => 'search')));
 }
开发者ID:dbrisinajumi,项目名称:d2tasks,代码行数:4,代码来源:BaseTsthStatusHistory.php

示例6: rules

 public function rules()
 {
     return array_merge(parent::rules(), array(array('rental_date, inventory_id, customer_id, staff_id, last_update', 'required'), array('return_date', 'default', 'setOnEmpty' => true, 'value' => null), array('inventory_id, customer_id, staff_id', 'numerical', 'integerOnly' => true), array('return_date', 'safe'), array('rental_id, rental_date, inventory_id, customer_id, return_date, staff_id, last_update', 'safe', 'on' => 'search')));
 }
开发者ID:schmunk42,项目名称:yii-sakila-crud,代码行数:4,代码来源:BaseRental.php

示例7: rules

 public function rules()
 {
     return array_merge(parent::rules(), array(array('vodo_vtrc_id, vodo_type', 'required'), array('vodo_start_odo, vodo_start_datetime, vodo_end_odo, vodo_end_datetime, vodo_run, vodo_abs_odo, vodo_notes, vodo_ref_model, vodo_ref_id', 'default', 'setOnEmpty' => true, 'value' => null), array('vodo_vtrc_id, vodo_start_odo, vodo_end_odo, vodo_run, vodo_abs_odo', 'numerical', 'integerOnly' => true), array('vodo_ref_model', 'length', 'max' => 20), array('vodo_ref_id', 'length', 'max' => 10), array('vodo_start_datetime, vodo_end_datetime, vodo_notes', 'safe'), array('vodo_type', 'in', 'range' => array(self::VODO_TYPE_READING, self::VODO_TYPE_VOYAGE_RUN, self::VODO_TYPE_VOYAGE_ODO, self::VODO_TYPE_ODO_CHANGE)), array('vodo_id, vodo_vtrc_id, vodo_type, vodo_start_odo, vodo_start_datetime, vodo_end_odo, vodo_end_datetime, vodo_run, vodo_abs_odo, vodo_notes, vodo_ref_model, vodo_ref_id', 'safe', 'on' => 'search')));
 }
开发者ID:dbrisinajumi,项目名称:trucks,代码行数:4,代码来源:BaseVodoOdometer.php

示例8: rules

 public function rules()
 {
     return array_merge(parent::rules(), array(array('fcsr_name', 'required'), array('fcsr_notes, fcsr_base_fcrn_id', 'default', 'setOnEmpty' => true, 'value' => null), array('fcsr_base_fcrn_id', 'numerical', 'integerOnly' => true), array('fcsr_name', 'length', 'max' => 50), array('fcsr_notes', 'safe'), array('fcsr_id, fcsr_name, fcsr_notes, fcsr_base_fcrn_id', 'safe', 'on' => 'search')));
 }
开发者ID:uldisn,项目名称:fcrn,代码行数:4,代码来源:BaseFcsrCourrencySource.php

示例9: rules

 public function rules()
 {
     return array_merge(parent::rules(), array(array('itemname, userid', 'required'), array('bizrule, data', 'default', 'setOnEmpty' => true, 'value' => null), array('itemname, userid', 'length', 'max' => 64), array('bizrule, data', 'safe'), array('itemname, userid, bizrule, data', 'safe', 'on' => 'search')));
 }
开发者ID:uldisn,项目名称:yii-user,代码行数:4,代码来源:BaseAuthassignment.php

示例10: rules

 public function rules()
 {
     return array_merge(parent::rules(), array(array('ccit_name, ccit_ccnt_id', 'required'), array('ccit_ccnt_id', 'numerical', 'integerOnly' => true), array('ccit_name', 'length', 'max' => 200), array('ccit_id, ccit_name, ccit_ccnt_id', 'safe', 'on' => 'search')));
 }
开发者ID:dbrisinajumi,项目名称:d2company,代码行数:4,代码来源:BaseCcitCity.php

示例11: rules

 public function rules()
 {
     return array_merge(parent::rules(), array(array('p3_media_id, status, language, title, access_owner', 'required'), array('description, access_read, access_update, access_delete, copied_from_id, created_at, updated_at', 'default', 'setOnEmpty' => true, 'value' => null), array('p3_media_id, copied_from_id', 'numerical', 'integerOnly' => true), array('status', 'length', 'max' => 32), array('language', 'length', 'max' => 8), array('title', 'length', 'max' => 255), array('access_owner', 'length', 'max' => 64), array('access_read, access_update, access_delete', 'length', 'max' => 256), array('description, created_at, updated_at', 'safe'), array('id, p3_media_id, status, language, title, description, access_owner, access_read, access_update, access_delete, copied_from_id, created_at, updated_at', 'safe', 'on' => 'search')));
 }
开发者ID:Telemedellin,项目名称:tm,代码行数:4,代码来源:BaseP3MediaTranslation.php

示例12: rules

 public function rules()
 {
     return array_merge(parent::rules(), array(array('frep_model, frep_label', 'required'), array('frep_model, frep_label', 'length', 'max' => 50), array('frep_id, frep_model, frep_label', 'safe', 'on' => 'search')));
 }
开发者ID:dbrisinajumi,项目名称:d2fixr,代码行数:4,代码来源:BaseFrepRefPeriod.php

示例13: rules

 public function rules()
 {
     return array_merge(parent::rules(), array(array('status, default_title, access_owner, access_domain', 'required'), array('type, name_id, default_description, tree_parent_id, tree_position, custom_data_json, original_name, path, hash, mime_type, size, info_php_json, info_image_magick_json, access_read, access_update, access_delete, access_append, copied_from_id, created_at, updated_at', 'default', 'setOnEmpty' => true, 'value' => null), array('tree_parent_id, tree_position, size, copied_from_id', 'numerical', 'integerOnly' => true), array('status', 'length', 'max' => 32), array('type, name_id, hash, access_owner', 'length', 'max' => 64), array('default_title, path', 'length', 'max' => 255), array('original_name, mime_type', 'length', 'max' => 128), array('access_domain', 'length', 'max' => 8), array('access_read, access_update, access_delete, access_append', 'length', 'max' => 256), array('default_description, custom_data_json, info_php_json, info_image_magick_json, created_at, updated_at', 'safe'), array('id, status, type, name_id, default_title, default_description, tree_parent_id, tree_position, custom_data_json, original_name, path, hash, mime_type, size, info_php_json, info_image_magick_json, access_owner, access_domain, access_read, access_update, access_delete, access_append, copied_from_id, created_at, updated_at', 'safe', 'on' => 'search')));
 }
开发者ID:Telemedellin,项目名称:tm,代码行数:4,代码来源:BaseP3Media.php

示例14: rules

 public function rules()
 {
     return array_merge(parent::rules(), array(array('first_name, last_name, last_update', 'required'), array('first_name, last_name', 'length', 'max' => 45), array('actor_id, first_name, last_name, last_update', 'safe', 'on' => 'search')));
 }
开发者ID:schmunk42,项目名称:yii-sakila-crud,代码行数:4,代码来源:BaseActor.php

示例15: rules

 public function rules()
 {
     return array_merge(parent::rules(), array(array('sysc_name, sysc_sysm_id', 'required'), array('sysc_syss_id, sysc_sysc_id, sysc_level, sysc_is_parent, sysc_deleted', 'default', 'setOnEmpty' => true, 'value' => null), array('sysc_syss_id, sysc_level, sysc_is_parent, sysc_sysm_id, sysc_deleted', 'numerical', 'integerOnly' => true), array('sysc_sysc_id', 'length', 'max' => 10), array('sysc_name', 'length', 'max' => 200), array('sysc_id, sysc_syss_id, sysc_sysc_id, sysc_level, sysc_is_parent, sysc_name, sysc_sysm_id, sysc_deleted', 'safe', 'on' => 'search')));
 }
开发者ID:dbrisinajumi,项目名称:d1system,代码行数:4,代码来源:BaseSyscComponents.php


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