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


PHP MY_Model::validate方法代码示例

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


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

示例1:

 function validate_recover()
 {
     $this->load->library('form_validation');
     $this->form_validation->set_error_delimiters('<div class="error">', '</div>');
     $this->form_validation->set_rules('username', $this->lang->line('username'), 'required');
     return parent::validate();
 }
开发者ID:Meritxell01,项目名称:prova,代码行数:7,代码来源:mdl_recover.php

示例2: validate

 public function validate()
 {
     $this->form_validation->set_rules('email_template_title', $this->lang->line('email_template_title'), 'required');
     $this->form_validation->set_rules('email_template_body', $this->lang->line('email_body'));
     $this->form_validation->set_rules('email_template_footer', $this->lang->line('email_footer'));
     return parent::validate();
 }
开发者ID:najahnasir,项目名称:MyClientBase,代码行数:7,代码来源:mdl_email_templates.php

示例3: validate

 public function validate()
 {
     $this->form_validation->set_rules('object_id', $this->lang->line('object'), 'required');
     $this->form_validation->set_rules('field_name', $this->lang->line('field_name'), 'required');
     $this->form_validation->set_rules('field_default_value', $this->lang->line('field_default_value'));
     return parent::validate();
 }
开发者ID:Meritxell01,项目名称:prova,代码行数:7,代码来源:mdl_fields.php

示例4: validate

 public function validate()
 {
     $this->form_validation->set_rules('mcb_expense_name', $this->lang->line('expense_name'));
     $this->form_validation->set_rules('expense_invoice_yesno', $this->lang->line('expense_invoice_yesno'));
     $this->form_validation->set_rules('expense_invoice_number', $this->lang->line('expense_invoice_number'));
     $this->form_validation->set_rules('expense_provider_id', $this->lang->line('expense_provider'), 'required');
     $this->form_validation->set_rules('expense_category_id', $this->lang->line('expense_category'), 'required');
     $this->form_validation->set_rules('mcb_expense_date', $this->lang->line('expense_date'), 'required');
     $this->form_validation->set_rules('expense_invoice_date', $this->lang->line('expense_invoice_date'));
     $this->form_validation->set_rules('expense_invoice_overdue_date', $this->lang->line('expense_invoice_overdue_date'));
     $this->form_validation->set_rules('expense_invoice_with_tax', $this->lang->line('expense_invoice_with_tax'));
     $this->form_validation->set_rules('mcb_expense_amount', $this->lang->line('expense_amount'), 'required|callback_amount_validate');
     $this->form_validation->set_rules('mcb_expense_file_url', $this->lang->line('upload_file'));
     $this->form_validation->set_rules('mcb_expense_note', $this->lang->line('expense_note'));
     //$this->form_validation->set_rules('client_id', $this->lang->line('expense_client'));
     $this->form_validation->set_rules('expense_payed', $this->lang->line('expense_payed'));
     if ($this->input->post('expense_payed')) {
         $this->form_validation->set_rules('expense_paymentTypeId', $this->lang->line('expense_paymentTypeId'), 'required');
     }
     $this->form_validation->set_rules('expense_paymentBankId', $this->lang->line('expense_paymentBankId'));
     $this->form_validation->set_rules('mcb_expense_payto', $this->lang->line('expense_pay'));
     if ($this->input->post('expense_invoice_yesno')) {
         $this->form_validation->set_rules('expense_invoice_number', $this->lang->line('expense_invoice_number'), 'required');
     }
     $this->form_validation->set_rules('expense_book_keeping_entry_id', $this->lang->line('expense_book_keeping_entry_id'));
     $this->form_validation->set_rules('expense_payment_date', $this->lang->line('expense_payment_date'));
     $this->form_validation->set_rules('mcb_base_expense_amount', $this->lang->line('mcb_base_expense_amount'), 'required');
     $this->form_validation->set_rules('expense_invoice_with_tax2', $this->lang->line('expense_invoice_with_tax2'), 'required');
     $this->form_validation->set_rules('mcb_expense_tax2_amount', $this->lang->line('mcb_expense_tax_amount2'), 'required');
     $this->form_validation->set_rules('mcb_expense_tax_amount', $this->lang->line('mcb_expense_tax_amount'), 'required');
     return parent::validate($this);
 }
开发者ID:Meritxell01,项目名称:prova,代码行数:32,代码来源:mdl_expenses.php

示例5: validate

 function validate()
 {
     $this->form_validation->set_rules('client_id', $this->lang->line('client'), 'required');
     $this->form_validation->set_rules('username', $this->lang->line('username'), 'required');
     $this->form_validation->set_rules('password', $this->lang->line('password'), 'required');
     $this->form_validation->set_rules('passwordv', $this->lang->line('passwordv'), 'required|matches[password]');
     return parent::validate($this);
 }
开发者ID:Meritxell01,项目名称:prova,代码行数:8,代码来源:mdl_client_center.php

示例6: validate

 function validate()
 {
     $this->form_validation->set_rules('client_id', $this->lang->line('client'), 'required');
     $this->form_validation->set_rules('start_date', $this->lang->line('start_date'), 'required');
     $this->form_validation->set_rules('due_date', $this->lang->line('due_date'));
     $this->form_validation->set_rules('complete_date', $this->lang->line('complete_date'));
     $this->form_validation->set_rules('title', $this->lang->line('title'), 'required');
     $this->form_validation->set_rules('description', $this->lang->line('description'), 'required');
     return parent::validate();
 }
开发者ID:Meritxell01,项目名称:prova,代码行数:10,代码来源:mdl_tasks.php

示例7: validate

 public function validate()
 {
     $this->form_validation->set_rules('inventory_type_id', $this->lang->line('inventory_type'));
     $this->form_validation->set_rules('inventory_name', $this->lang->line('item_name'), 'required');
     $this->form_validation->set_rules('inventory_description', $this->lang->line('item_description'));
     $this->form_validation->set_rules('inventory_unit_price', $this->lang->line('unit_price'), 'required');
     $this->form_validation->set_rules('tax_rate_id', $this->lang->line('tax_rate_id'));
     $this->form_validation->set_rules('inventory_track_stock', $this->lang->line('track_stock'));
     return parent::validate();
 }
开发者ID:Meritxell01,项目名称:prova,代码行数:10,代码来源:mdl_inventory.php

示例8: validate

 public function validate()
 {
     $this->form_validation->set_rules('invoice_group_name', $this->lang->line('group_name'), 'required|max_length[50]');
     $this->form_validation->set_rules('invoice_group_prefix', $this->lang->line('group_prefix'), 'max_length[10]');
     $this->form_validation->set_rules('invoice_group_prefix_year', $this->lang->line('group_prefix_year'));
     $this->form_validation->set_rules('invoice_group_prefix_month', $this->lang->line('group_prefix_month'));
     $this->form_validation->set_rules('invoice_group_next_id', $this->lang->line('group_next_id'), 'required|numeric');
     $this->form_validation->set_rules('invoice_group_left_pad', $this->lang->line('group_left_pad'), 'required');
     return parent::validate();
 }
开发者ID:Meritxell01,项目名称:prova,代码行数:10,代码来源:mdl_invoice_groups.php

示例9: validate

 public function validate()
 {
     $this->form_validation->set_rules('client_id_autocomplete_label');
     $this->form_validation->set_rules('client_id', $this->lang->line('client'), 'required');
     $this->form_validation->set_rules('username', $this->lang->line('username'), 'required|callback_username_check');
     $this->form_validation->set_rules('password', $this->lang->line('password'), 'required');
     $this->form_validation->set_rules('passwordv', $this->lang->line('passwordv'), 'required|matches[password]');
     $this->form_validation->set_rules('email_address', $this->lang->line('email_address'), 'required');
     return parent::validate($this);
 }
开发者ID:najahnasir,项目名称:MyClientBase,代码行数:10,代码来源:mdl_client_center.php

示例10: validate_payment_email

 public function validate_payment_email()
 {
     $this->form_validation->set_rules('template', $this->lang->line('template'), 'required');
     $this->form_validation->set_rules('email_from_name', $this->lang->line('from_name'), 'required');
     $this->form_validation->set_rules('email_from_email', $this->lang->line('from_email'), 'required|valid_email');
     $this->form_validation->set_rules('email_to', $this->lang->line('to'), 'required|callback_check_email');
     $this->form_validation->set_rules('email_subject', $this->lang->line('subject'), 'required|max_length[100]');
     $this->form_validation->set_rules('email_body', $this->lang->line('body'));
     $this->form_validation->set_rules('email_footer', $this->lang->line('footer'));
     return parent::validate($this);
 }
开发者ID:Meritxell01,项目名称:prova,代码行数:11,代码来源:mdl_mailer.php

示例11: validate

 public function validate()
 {
     $this->form_validation->set_rules('invoice_number', $this->lang->line('invoice_number'));
     $this->form_validation->set_rules('from_date', $this->lang->line('from_date'));
     $this->form_validation->set_rules('to_date', $this->lang->line('to_date'));
     $this->form_validation->set_rules('tags', $this->lang->line('tags'));
     $this->form_validation->set_rules('client_id', $this->lang->line('client'));
     $this->form_validation->set_rules('amount_operator', $this->lang->line('amount_operator'));
     $this->form_validation->set_rules('amount', $this->lang->line('amount'));
     return parent::validate();
 }
开发者ID:Meritxell01,项目名称:prova,代码行数:11,代码来源:mdl_invoice_search.php

示例12: validate

 public function validate()
 {
     $this->form_validation->set_rules('client_id_autocomplete_label');
     $this->form_validation->set_rules('client_credit_client_id', $this->lang->line('client'), 'required');
     $this->form_validation->set_rules('client_credit_date', $this->lang->line('date'), 'required');
     $this->form_validation->set_rules('client_credit_amount', $this->lang->line('amount'), 'required|callback_amount_validate');
     $this->form_validation->set_rules('client_credit_note', $this->lang->line('note'));
     foreach ($this->custom_fields as $custom_field) {
         $this->form_validation->set_rules($custom_field->column_name, $custom_field->field_name);
     }
     return parent::validate($this);
 }
开发者ID:najahnasir,项目名称:MyClientBase,代码行数:12,代码来源:mdl_client_credits.php

示例13: validate

 public function validate()
 {
     if (!uri_assoc('invoice_id')) {
         $this->form_validation->set_rules('invoice_id', $this->lang->line('invoice'), 'required');
     }
     $this->form_validation->set_rules('payment_date', $this->lang->line('payment_date'), 'required');
     $this->form_validation->set_rules('payment_method_id', $this->lang->line('payment_method'));
     $this->form_validation->set_rules('payment_amount', $this->lang->line('amount'), 'required|callback_amount_validate');
     $this->form_validation->set_rules('payment_note', $this->lang->line('note'));
     foreach ($this->custom_fields as $custom_field) {
         $this->form_validation->set_rules($custom_field->column_name, $custom_field->field_name);
     }
     return parent::validate($this);
 }
开发者ID:Meritxell01,项目名称:prova,代码行数:14,代码来源:mdl_payments.php

示例14: validate

 public function validate()
 {
     $this->form_validation->set_rules('item_date', $this->lang->line('item_date'), 'required');
     $this->form_validation->set_rules('item_name', $this->lang->line('item_name'), 'required');
     $this->form_validation->set_rules('item_description', $this->lang->line('item_description'));
     $this->form_validation->set_rules('item_qty', $this->lang->line('quantity'), 'required');
     $this->form_validation->set_rules('item_price', $this->lang->line('unit_price'), 'required');
     $this->form_validation->set_rules('is_taxable', $this->lang->line('taxable'));
     $this->form_validation->set_rules('tax_rate_id', $this->lang->line('tax_rate'), 'required');
     $this->form_validation->set_rules('item_tax_option', $this->lang->line('item_tax_option'));
     $this->form_validation->set_rules('inventory_id');
     foreach ($this->custom_fields as $custom_field) {
         $this->form_validation->set_rules($custom_field->column_name, $custom_field->field_name);
     }
     return parent::validate($this);
 }
开发者ID:najahnasir,项目名称:MyClientBase,代码行数:16,代码来源:mdl_items.php

示例15: validate

 public function validate()
 {
     $this->form_validation->set_rules('provider_name', $this->lang->line('provider_name'), 'required');
     $this->form_validation->set_rules('provider_shortname', $this->lang->line('provider_shortname'), 'required');
     $this->form_validation->set_rules('provider_tax_id', $this->lang->line('provider_tax_id'));
     $this->form_validation->set_rules('provider_address', $this->lang->line('provider_address'));
     $this->form_validation->set_rules('provider_address_2', $this->lang->line('provider_address_2'));
     $this->form_validation->set_rules('provider_city', $this->lang->line('provider_city'));
     $this->form_validation->set_rules('provider_state', $this->lang->line('provider_state'));
     $this->form_validation->set_rules('provider_zip', $this->lang->line('provider_zip'));
     $this->form_validation->set_rules('provider_country', $this->lang->line('provider_country'));
     $this->form_validation->set_rules('provider_phone_number', $this->lang->line('provider_phone_number'));
     $this->form_validation->set_rules('provider_fax_number', $this->lang->line('provider_fax_number'));
     $this->form_validation->set_rules('provider_mobile_number', $this->lang->line('provider_mobile_number'));
     $this->form_validation->set_rules('provider_web_address', $this->lang->line('provider_web_address'));
     $this->form_validation->set_rules('provider_email_address', $this->lang->line('provider_email_address'), 'valid_email');
     $this->form_validation->set_rules('provider_notes', $this->lang->line('provider_notes'));
     $this->form_validation->set_rules('provider_active', $this->lang->line('provider_active'));
     return parent::validate($this);
 }
开发者ID:Meritxell01,项目名称:prova,代码行数:20,代码来源:mdl_provider.php


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