@@ 744-749 (lines=6) @@ | ||
741 | $params = array_slice($rule, 2); |
|
742 | ||
743 | // check scenario |
|
744 | if (!empty($rule['on'])) { |
|
745 | $onScenarios = explode(',', $rule['on']); |
|
746 | if (!in_array($this->getScenario(), $onScenarios)) { |
|
747 | continue; |
|
748 | } |
|
749 | } |
|
750 | ||
751 | if (!empty($rule['except'])) { |
|
752 | $exceptScenarios = explode(',', $rule['except']); |
|
@@ 751-756 (lines=6) @@ | ||
748 | } |
|
749 | } |
|
750 | ||
751 | if (!empty($rule['except'])) { |
|
752 | $exceptScenarios = explode(',', $rule['except']); |
|
753 | if (in_array($this->getScenario(), $exceptScenarios)) { |
|
754 | continue; |
|
755 | } |
|
756 | } |
|
757 | ||
758 | if (method_exists($this, $ruleName)) { |
|
759 | // method |