function edit() { $this->addRule(['type' => 'lengthRange', 'label' => lucid::i18n()->translate('model:contents:title'), 'field' => 'title', 'min' => '2', 'max' => '255']); $this->addRule(['type' => 'lengthRange', 'label' => lucid::i18n()->translate('model:contents:body'), 'field' => 'body', 'min' => '2', 'max' => '255']); $this->addRule(['type' => 'checked', 'label' => lucid::i18n()->translate('model:contents:is_public'), 'field' => 'is_public']); $this->addRule(['type' => 'validDate', 'label' => lucid::i18n()->translate('model:contents:creation_date'), 'field' => 'creation_date']); return $this; }
function edit() { $this->addRule(['type' => 'anyValue', 'label' => lucid::i18n()->translate('model:organizations:role_id'), 'field' => 'role_id']); $this->addRule(['type' => 'lengthRange', 'label' => lucid::i18n()->translate('model:organizations:name'), 'field' => 'name', 'min' => '2', 'max' => '255']); $this->addRule(['type' => 'checked', 'label' => lucid::i18n()->translate('model:organizations:is_enabled'), 'field' => 'is_enabled']); $this->addRule(['type' => 'validDate', 'label' => lucid::i18n()->translate('model:organizations:created_on'), 'field' => 'created_on']); return $this; }
function edit() { $this->addRule(['type' => 'lengthRange', 'label' => lucid::i18n()->translate('model:countries:alpha_3'), 'field' => 'alpha_3', 'min' => '2', 'max' => '255']); $this->addRule(['type' => 'lengthRange', 'label' => lucid::i18n()->translate('model:countries:name'), 'field' => 'name', 'min' => '2', 'max' => '255']); $this->addRule(['type' => 'lengthRange', 'label' => lucid::i18n()->translate('model:countries:common_name'), 'field' => 'common_name', 'min' => '2', 'max' => '255']); $this->addRule(['type' => 'lengthRange', 'label' => lucid::i18n()->translate('model:countries:official_name'), 'field' => 'official_name', 'min' => '2', 'max' => '255']); return $this; }
function edit() { $this->addRule(['type' => 'lengthRange', 'label' => lucid::i18n()->translate('model:vw_users_details:email'), 'field' => 'email', 'min' => '2', 'max' => '255']); $this->addRule(['type' => 'lengthRange', 'label' => lucid::i18n()->translate('model:vw_users_details:password'), 'field' => 'password', 'min' => '2', 'max' => '255']); $this->addRule(['type' => 'lengthRange', 'label' => lucid::i18n()->translate('model:vw_users_details:first_name'), 'field' => 'first_name', 'min' => '2', 'max' => '255']); $this->addRule(['type' => 'lengthRange', 'label' => lucid::i18n()->translate('model:vw_users_details:last_name'), 'field' => 'last_name', 'min' => '2', 'max' => '255']); $this->addRule(['type' => 'anyValue', 'label' => lucid::i18n()->translate('model:vw_users_details:org_id'), 'field' => 'org_id']); $this->addRule(['type' => 'lengthRange', 'label' => lucid::i18n()->translate('model:vw_users_details:organization_name'), 'field' => 'organization_name', 'min' => '2', 'max' => '255']); $this->addRule(['type' => 'anyValue', 'label' => lucid::i18n()->translate('model:vw_users_details:role_id'), 'field' => 'role_id']); $this->addRule(['type' => 'lengthRange', 'label' => lucid::i18n()->translate('model:vw_users_details:role_name'), 'field' => 'role_name', 'min' => '2', 'max' => '255']); return $this; }
function edit() { $this->addRule(['type' => 'anyValue', 'label' => lucid::i18n()->translate('model:users:org_id'), 'field' => 'org_id']); $this->addRule(['type' => 'lengthRange', 'label' => lucid::i18n()->translate('model:users:email'), 'field' => 'email', 'min' => '2', 'max' => '255']); $this->addRule(['type' => 'lengthRange', 'label' => lucid::i18n()->translate('model:users:password'), 'field' => 'password', 'min' => '2', 'max' => '255']); $this->addRule(['type' => 'lengthRange', 'label' => lucid::i18n()->translate('model:users:first_name'), 'field' => 'first_name', 'min' => '2', 'max' => '255']); $this->addRule(['type' => 'lengthRange', 'label' => lucid::i18n()->translate('model:users:last_name'), 'field' => 'last_name', 'min' => '2', 'max' => '255']); $this->addRule(['type' => 'checked', 'label' => lucid::i18n()->translate('model:users:is_enabled'), 'field' => 'is_enabled']); $this->addRule(['type' => 'validDate', 'label' => lucid::i18n()->translate('model:users:last_login'), 'field' => 'last_login']); $this->addRule(['type' => 'validDate', 'label' => lucid::i18n()->translate('model:users:created_on'), 'field' => 'created_on']); $this->addRule(['type' => 'checked', 'label' => lucid::i18n()->translate('model:users:force_password_change'), 'field' => 'force_password_change']); $this->addRule(['type' => 'lengthRange', 'label' => lucid::i18n()->translate('model:users:register_key'), 'field' => 'register_key', 'min' => '2', 'max' => '255']); return $this; }
function edit() { $this->addRule(['type' => 'anyValue', 'label' => lucid::i18n()->translate('model:addresses:org_id'), 'field' => 'org_id']); $this->addRule(['type' => 'lengthRange', 'label' => lucid::i18n()->translate('model:addresses:name'), 'field' => 'name', 'min' => '2', 'max' => '255']); $this->addRule(['type' => 'lengthRange', 'label' => lucid::i18n()->translate('model:addresses:street_1'), 'field' => 'street_1', 'min' => '2', 'max' => '255']); $this->addRule(['type' => 'lengthRange', 'label' => lucid::i18n()->translate('model:addresses:street_2'), 'field' => 'street_2', 'min' => '2', 'max' => '255']); $this->addRule(['type' => 'lengthRange', 'label' => lucid::i18n()->translate('model:addresses:city'), 'field' => 'city', 'min' => '2', 'max' => '255']); $this->addRule(['type' => 'anyValue', 'label' => lucid::i18n()->translate('model:addresses:region_id'), 'field' => 'region_id']); $this->addRule(['type' => 'lengthRange', 'label' => lucid::i18n()->translate('model:addresses:postal_code'), 'field' => 'postal_code', 'min' => '2', 'max' => '255']); $this->addRule(['type' => 'anyValue', 'label' => lucid::i18n()->translate('model:addresses:country_id'), 'field' => 'country_id']); $this->addRule(['type' => 'lengthRange', 'label' => lucid::i18n()->translate('model:addresses:phone_number_1'), 'field' => 'phone_number_1', 'min' => '2', 'max' => '255']); $this->addRule(['type' => 'lengthRange', 'label' => lucid::i18n()->translate('model:addresses:phone_number_2'), 'field' => 'phone_number_2', 'min' => '2', 'max' => '255']); return $this; }
function edit() { $this->addRule(['type' => 'lengthRange', 'label' => lucid::i18n()->translate('model:roles:name'), 'field' => 'name', 'min' => '2', 'max' => '255']); return $this; }