OEModule\OphCoCvi\models\Element_OphCoCvi_Demographics::rules PHP Method

rules() public method

public rules ( ) : array
return array validation rules for model attributes.
    public function rules()
    {
        return array(array('event_id, title_surname, other_names, date_of_birth, address, postcode, email, telephone, gender_id, ' . 'ethnic_group_id, nhs_number, gp_name, gp_address, gp_telephone, la_name, la_address, la_telephone', 'safe'), array('title_surname', 'length', 'max' => 120), array('other_names', 'length', 'max' => 100), array('postcode', 'length', 'max' => 4), array('email, gp_name, la_name', 'length', 'max' => 255), array('telephone, gp_telephone, la_telephone', 'length', 'max' => 20), array('title_surname, other_names, date_of_birth, address, postcode, telephone, gender_id, ethnic_group_id, ' . 'nhs_number, gp_name, gp_address, gp_telephone, la_name, la_address, la_telephone', 'required', 'on' => 'finalise'), array('date_of_birth', 'OEDateValidatorNotFuture'));
    }