/** * Override to properly handle retrieving rule information from the model for the attribute name. */ public function rules() { return array_merge(parent::rules(), array(array('type', 'type', 'type' => 'string'), array('type', 'required'), array('audienceType', 'safe'), array('audienceType', 'required'))); }
/** * @return array */ public function rules() { return array_merge(parent::rules(), array(array('type', 'required'), array('type', 'type', 'type' => 'string'), array('type', 'validateType'), array('relation', 'type', 'type' => 'string'), array('relation', 'validateRelation'), array('relationFilter', 'type', 'type' => 'string'), array('relationFilter', 'validateRelationFilter'), array('relatedModelRelation', 'type', 'type' => 'string'), array('relatedModelRelation', 'validateRelatedModelRelation'))); }
public function rules() { return array_merge(parent::rules(), array(array('type', 'type', 'type' => 'string'), array('firstSeries', 'type', 'type' => 'string'), array('firstRange', 'type', 'type' => 'string'), array('secondSeries', 'type', 'type' => 'string'), array('secondRange', 'type', 'type' => 'string'), array('type', 'validateSeriesAndRange'))); }
/** * @return array */ public function rules() { return array_merge(parent::rules(), array(array('emailTemplateId', 'required'), array('sendAfterDurationInterval', 'type', 'type' => 'integer'), array('sendAfterDurationInterval', 'numerical', 'min' => 0), array('sendAfterDurationInterval', 'required'), array('sendAfterDurationType', 'type', 'type' => 'string'), array('sendAfterDurationType', 'required'), array('sendFromType', 'type', 'type' => 'string'), array('sendFromType', 'validateSendFromType'), array('sendFromName', 'type', 'type' => 'string'), array('sendFromAddress', 'type', 'type' => 'string'))); }
/** * Override to properly handle retrieving rule information from the model for the attribute name. */ public function rules() { $rules = array_merge(parent::rules(), array(array('type', 'type', 'type' => 'string'), array('type', 'required'), array('value', 'safe'), array('value', 'validateValue'), array('shouldSetValue', 'boolean'))); $applicableRules = ModelAttributeRulesToWorkflowActionAttributeUtil::getApplicableRulesByModelClassNameAndAttributeName($this->modelClassName, $this->modelAttributeName, 'value'); return array_merge($rules, $applicableRules); }