Exemplo n.º 1
0
 public function rules()
 {
     return array_merge(parent::rules(), array(array('identificationColumn, isJToggleColumnEnabled, validation, authtype', 'safe')));
 }
 /**
  * Returns validation rules
  * @return array
  */
 public function rules()
 {
     return array_merge(parent::rules(), array(array('validation', 'required'), array('authTemplateSlim, authTemplateHybrid, providers, authTemplate, formEnctype, formLayout, formOrientation, textEditor, internalModels, backendViewPathAlias, frontendViewPathAlias, messageCatalog,messageCatalogStandard,icon', 'safe')));
 }
Exemplo n.º 3
0
	/**
	 * Adds the new model attributes (class properties) to the rules.
	 * #MethodTracker
	 * This method overrides {@link CrudCode::rules}, from version 1.1.7 (r3135). Changes:
	 * <ul>
	 * <li>Adds the rules for the new attributes in the code generation form: authtype; enable_ajax_validation.</li>
	 * </ul>
	 */
	public function rules() {
		return array_merge(parent::rules(), array(
			array('authtype, enable_ajax_validation', 'required'),
		));
	}
Exemplo n.º 4
0
 public function rules()
 {
     return array_merge(parent::rules(), array(array('moduleID', 'filter', 'filter' => 'trim'), array('moduleID', 'required'), array('moduleID', 'match', 'pattern' => '/^[a-zA-Z_]\\w*$/', 'message' => '{attribute} should only contain word characters.')));
 }
Exemplo n.º 5
0
 public function rules()
 {
     return array_merge(parent::rules(), array(array('im, rod, dat, vin, tvor, pre, mim, mrod, mtvor, mid', 'filter', 'filter' => 'trim'), array('im, rod, dat, vin, tvor, pre, mim, mrod, mtvor, mid', 'required')));
 }
 public function rules()
 {
     return array_merge(parent::rules(), array(array('validation', 'required'), array('identificationColumn', 'safe')));
 }
Exemplo n.º 7
0
 /**
  * Adds the new model attributes (class properties) to the rules.
  * #MethodTracker
  * This method overrides {@link CrudCode::rules}, from version 1.1.7 (r3135). Changes:
  * <ul>
  * <li>Adds the rules for the new attributes in the code generation form: authtype; validation.</li>
  * </ul>
  */
 public function rules()
 {
     return array_merge(parent::rules(), array(array('defaultAction, authtype, validation', 'required')));
 }
 public function rules()
 {
     return array_merge(parent::rules(), array(array('layoutPrefix', 'filter', 'filter' => 'trim'), array('theme', 'required'), array('theme', 'in', 'range' => array_keys($this->getThemes()), 'message' => 'Selected theme doesn\'t exists.'), array('generateComponents, generateLayouts, layoutPrefix, theme', 'sticky')));
 }
Exemplo n.º 9
0
 public function rules()
 {
     return array_merge(parent::rules(), array(array('authtype, persistent_sessions, enable_ajax_validation', 'required')));
 }
Exemplo n.º 10
0
 /**
  * Adds the new model attributes (class properties) to the rules.
  * #MethodTracker
  * This method overrides {@link CrudCode::rules}, from version 1.1.7 (r3135). Changes:
  * <ul>
  * <li>Adds the rules for the new attributes in the code generation form: authtype; enable_ajax_validation.</li>
  * </ul>
  */
 public function rules()
 {
     return array_merge(parent::rules(), array(array('authtype, enable_ajax_validation', 'required'), array('moduleName', 'filter', 'filter' => 'trim'), array('moduleName', 'match', 'pattern' => '/^(\\w+[\\w\\.]*|\\*?|\\w+\\.\\*)$/', 'message' => '{attribute} should only contain word characters, dots, and an optional ending asterisk.'), array('moduleName', 'sticky')));
 }