@@ 754-759 (lines=6) @@ | ||
751 | $params = array_slice($rule, 2); |
|
752 | ||
753 | // check scenario |
|
754 | if (!empty($rule['on'])) { |
|
755 | $onScenarios = explode(',', $rule['on']); |
|
756 | if (!in_array($this->getScenario(), $onScenarios)) { |
|
757 | continue; |
|
758 | } |
|
759 | } |
|
760 | ||
761 | if (!empty($rule['except'])) { |
|
762 | $exceptScenarios = explode(',', $rule['except']); |
|
@@ 761-766 (lines=6) @@ | ||
758 | } |
|
759 | } |
|
760 | ||
761 | if (!empty($rule['except'])) { |
|
762 | $exceptScenarios = explode(',', $rule['except']); |
|
763 | if (in_array($this->getScenario(), $exceptScenarios)) { |
|
764 | continue; |
|
765 | } |
|
766 | } |
|
767 | ||
768 | if (method_exists($this, $ruleName)) { |
|
769 | // method |