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(); }
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(); }
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(); }
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); }
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); }
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(); }
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(); }
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(); }
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); }
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); }
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(); }
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); }
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); }
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); }
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); }
public function validate() { $this->form_validation->set_rules('last_name', $this->lang->line('last_name'), 'required'); $this->form_validation->set_rules('first_name', $this->lang->line('first_name'), 'required'); $this->form_validation->set_rules('address', $this->lang->line('street_address')); $this->form_validation->set_rules('address_2', $this->lang->line('street_address_2')); $this->form_validation->set_rules('city', $this->lang->line('city')); $this->form_validation->set_rules('state', $this->lang->line('state')); $this->form_validation->set_rules('zip', $this->lang->line('zip')); $this->form_validation->set_rules('country', $this->lang->line('country')); $this->form_validation->set_rules('phone_number', $this->lang->line('phone_number')); $this->form_validation->set_rules('fax_number', $this->lang->line('fax_number')); $this->form_validation->set_rules('mobile_number', $this->lang->line('mobile_number')); $this->form_validation->set_rules('email_address', $this->lang->line('email_address')); $this->form_validation->set_rules('web_address', $this->lang->line('web_address')); $this->form_validation->set_rules('notes', $this->lang->line('notes')); foreach ($this->custom_fields as $custom_field) { $this->form_validation->set_rules($custom_field->column_name, $custom_field->field_name); } return parent::validate(); }
function validate() { $this->load->library('form_validation'); $this->form_validation->set_error_delimiters('<div class="error">', '</div>'); $this->form_validation->set_rules('first_name', $this->lang->line('first_name'), 'required'); $this->form_validation->set_rules('last_name', $this->lang->line('last_name'), '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('password_verify'), 'required|matches[password]'); $this->form_validation->set_rules('address', $this->lang->line('street_address')); $this->form_validation->set_rules('address', $this->lang->line('street_address_2')); $this->form_validation->set_rules('city', $this->lang->line('city')); $this->form_validation->set_rules('state', $this->lang->line('state')); $this->form_validation->set_rules('zip', $this->lang->line('zip')); $this->form_validation->set_rules('country', $this->lang->line('country')); $this->form_validation->set_rules('phone_number', $this->lang->line('phone_number')); $this->form_validation->set_rules('fax_number', $this->lang->line('fax_number')); $this->form_validation->set_rules('mobile_number', $this->lang->line('mobile_number')); $this->form_validation->set_rules('email_address', $this->lang->line('email_address')); $this->form_validation->set_rules('web_address', $this->lang->line('web_address')); $this->form_validation->set_rules('company_name', $this->lang->line('company_name')); return parent::validate(); }
public function validate() { $this->form_validation->set_rules('client_active', $this->lang->line('client_active')); $this->form_validation->set_rules('client_name', $this->lang->line('client_name'), 'required'); $this->form_validation->set_rules('client_tax_id', $this->lang->line('tax_id_number')); $this->form_validation->set_rules('client_address', $this->lang->line('street_address')); $this->form_validation->set_rules('client_address_2', $this->lang->line('street_address_2')); $this->form_validation->set_rules('client_city', $this->lang->line('city')); $this->form_validation->set_rules('client_state', $this->lang->line('state')); $this->form_validation->set_rules('client_zip', $this->lang->line('zip')); $this->form_validation->set_rules('client_country', $this->lang->line('country')); $this->form_validation->set_rules('client_phone_number', $this->lang->line('phone_number')); $this->form_validation->set_rules('client_fax_number', $this->lang->line('fax_number')); $this->form_validation->set_rules('client_iban', $this->lang->line('iban')); $this->form_validation->set_rules('client_mobile_number', $this->lang->line('mobile_number')); $this->form_validation->set_rules('client_email_address', $this->lang->line('email_address'), 'valid_email'); $this->form_validation->set_rules('client_web_address', $this->lang->line('web_address')); $this->form_validation->set_rules('client_notes', $this->lang->line('notes')); foreach ($this->custom_fields as $custom_field) { $this->form_validation->set_rules($custom_field->column_name, $custom_field->field_name); } return parent::validate($this); }
public function validate_quote_to_invoice() { $this->form_validation->set_rules('invoice_date_entered', $this->lang->line('invoice_date'), 'required'); $this->form_validation->set_rules('invoice_group_id', $this->lang->line('invoice_group'), 'required'); return parent::validate(); }
public function validate_change_password() { $this->form_validation->set_rules('new_password', $this->lang->line('new_password'), 'required'); $this->form_validation->set_rules('new_passwordv', $this->lang->line('new_password_verify'), 'required|matches[new_password]'); return parent::validate(); }
/** * Validate the data before saving. Overwrites the MY_Model::validate() method to look at validation_class property first and run it. * * @access public * @param mixed object or array of values * @param boolean run on_before_validate hook or not (optional) * @return array */ public function validate($record, $run_hook = FALSE) { if (!empty($this->validation_class) and class_exists($this->validation_class)) { $validation = new $this->validation_class($record, $this); } return parent::validate($record, $run_hook); }
public function validate() { $this->form_validation->set_rules('bank_name', $this->lang->line('bank_name'), 'required'); return parent::validate($this); }
public function validate() { $this->form_validation->set_rules('invoice_status', $this->lang->line('invoice_status'), 'required'); $this->form_validation->set_rules('invoice_status_type', $this->lang->line('invoice_status_type'), 'required'); return parent::validate(); }
public function validate() { $this->form_validation->set_rules('payment_method', $this->lang->line('payment_method'), 'required'); return parent::validate($this); }
function validate() { $this->form_validation->set_rules('task_id', 'task_id'); $this->form_validation->set_rules('client_id', $this->lang->line('client'), 'required'); $this->form_validation->set_rules('client_id_key', $this->lang->line('client_id_key'), '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'); if ($return = parent::validate()) { //apply the changes to the task object foreach ($this->mdl_tasks->form_values as $key => $value) { switch ($key) { case 'start_date': case 'due_date': case 'complete_date': $this->mcbsb->task->{$key} = strtotime(standardize_date($value)); break; case 'task_id': if (!empty($value)) { $this->mcbsb->task->{$key} = $value; } break; default: $this->mcbsb->task->{$key} = $value; break; } } $this->mcbsb->task->user_id = $this->mcbsb->_user->id; return true; } else { return $return; } }
public function validate() { $this->form_validation->set_rules('inventory_type', $this->lang->line('inventory_type'), 'required|callback_is_unique'); return parent::validate($this); }
public function validateForm() { return parent::validate($this); }
public function validate() { $this->form_validation->set_rules('template_name', $this->lang->line('template_name'), 'required'); $this->form_validation->set_rules('template_content', $this->lang->line('template_content'), 'required'); return parent::validate(); }
public function validate() { $this->form_validation->set_rules('from_date', $this->lang->line('from_date'), 'required'); $this->form_validation->set_rules('to_date', $this->lang->line('to_date'), 'required'); return parent::validate(); }
public function validate() { $this->form_validation->set_rules('expense_payment_type_name', $this->lang->line('expense_payment_type_name'), 'required'); return parent::validate($this); }