@@ 771-776 (lines=6) @@ | ||
768 | $params = array_slice($rule, 2); |
|
769 | ||
770 | // check scenario |
|
771 | if (!empty($rule['on'])) { |
|
772 | $onScenarios = explode(',', $rule['on']); |
|
773 | if (!in_array($this->getScenario(), $onScenarios)) { |
|
774 | continue; |
|
775 | } |
|
776 | } |
|
777 | ||
778 | if (!empty($rule['except'])) { |
|
779 | $exceptScenarios = explode(',', $rule['except']); |
|
@@ 778-783 (lines=6) @@ | ||
775 | } |
|
776 | } |
|
777 | ||
778 | if (!empty($rule['except'])) { |
|
779 | $exceptScenarios = explode(',', $rule['except']); |
|
780 | if (in_array($this->getScenario(), $exceptScenarios)) { |
|
781 | continue; |
|
782 | } |
|
783 | } |
|
784 | ||
785 | if (method_exists($this, $ruleName)) { |
|
786 | // method |