public function rules()
 {
     return array_merge(parent::rules(), array(array('maxLength', 'numerical', 'min' => 1, 'max' => 24)));
 }
Exemplo n.º 2
0
 public function rules()
 {
     $newRules = array(array_merge(array('defaultValue'), $this->getModelAttributePartialRule()));
     return array_merge(parent::rules(), $newRules);
 }
 public function attributeLabels()
 {
     return array_merge(parent::attributeLabels(), array('precisionLength' => Zurmo::t('DesignerModule', 'Precision')));
 }
 public function attributeLabels()
 {
     return array_merge(parent::attributeLabels(), array('minValue' => Zurmo::t('DesignerModule', 'Minimum Value'), 'maxValue' => Zurmo::t('DesignerModule', 'Maximum Value')));
 }