Core/Executor/ContentTypeGroupManager.php 1 location
|
@@ 103-113 (lines=11) @@
|
| 100 |
|
* @return ContentTypeGroupCollection |
| 101 |
|
* @throws \Exception |
| 102 |
|
*/ |
| 103 |
|
protected function matchContentTypeGroups($action, $step) |
| 104 |
|
{ |
| 105 |
|
if (!isset($step->dsl['match'])) { |
| 106 |
|
throw new \Exception("A match condition is required to $action an object state group"); |
| 107 |
|
} |
| 108 |
|
|
| 109 |
|
// convert the references passed in the match |
| 110 |
|
$match = $this->resolveReferencesRecursively($step->dsl['match']); |
| 111 |
|
|
| 112 |
|
return $this->contentTypeGroupMatcher->match($match); |
| 113 |
|
} |
| 114 |
|
|
| 115 |
|
/** |
| 116 |
|
* @param ContentTypeGroup|ContentTypeGroupCollection $object |
Core/Executor/ObjectStateGroupManager.php 1 location
|
@@ 130-140 (lines=11) @@
|
| 127 |
|
* @return ObjectStateGroupCollection |
| 128 |
|
* @throws \Exception |
| 129 |
|
*/ |
| 130 |
|
protected function matchObjectStateGroups($action, $step) |
| 131 |
|
{ |
| 132 |
|
if (!isset($step->dsl['match'])) { |
| 133 |
|
throw new \Exception("A match condition is required to $action an object state group"); |
| 134 |
|
} |
| 135 |
|
|
| 136 |
|
// convert the references passed in the match |
| 137 |
|
$match = $this->resolveReferencesRecursively($step->dsl['match']); |
| 138 |
|
|
| 139 |
|
return $this->objectStateGroupMatcher->match($match); |
| 140 |
|
} |
| 141 |
|
|
| 142 |
|
/** |
| 143 |
|
* {@inheritdoc} |
Core/Executor/ObjectStateManager.php 1 location
|
@@ 146-156 (lines=11) @@
|
| 143 |
|
* @return ObjectStateCollection |
| 144 |
|
* @throws \Exception |
| 145 |
|
*/ |
| 146 |
|
protected function matchObjectStates($action, $step) |
| 147 |
|
{ |
| 148 |
|
if (!isset($step->dsl['match'])) { |
| 149 |
|
throw new \Exception("A match condition is required to $action an object state"); |
| 150 |
|
} |
| 151 |
|
|
| 152 |
|
// convert the references passed in the match |
| 153 |
|
$match = $this->resolveReferencesRecursively($step->dsl['match']); |
| 154 |
|
|
| 155 |
|
return $this->objectStateMatcher->match($match); |
| 156 |
|
} |
| 157 |
|
|
| 158 |
|
/** |
| 159 |
|
* {@inheritdoc} |
Core/Executor/SectionManager.php 1 location
|
@@ 99-111 (lines=13) @@
|
| 96 |
|
* @return SectionCollection |
| 97 |
|
* @throws \Exception |
| 98 |
|
*/ |
| 99 |
|
protected function matchSections($action, $step) |
| 100 |
|
{ |
| 101 |
|
if (!isset($step->dsl['match'])) { |
| 102 |
|
throw new \Exception("A match condition is required to $action a section"); |
| 103 |
|
} |
| 104 |
|
|
| 105 |
|
$match = $step->dsl['match']; |
| 106 |
|
|
| 107 |
|
// convert the references passed in the match |
| 108 |
|
$match = $this->resolveReferencesRecursively($step->dsl['match']); |
| 109 |
|
|
| 110 |
|
return $this->sectionMatcher->match($match); |
| 111 |
|
} |
| 112 |
|
|
| 113 |
|
/** |
| 114 |
|
* Sets references to certain section attributes. |
Core/Executor/TagManager.php 1 location
|
@@ 100-110 (lines=11) @@
|
| 97 |
|
* @return TagCollection |
| 98 |
|
* @throws \Exception |
| 99 |
|
*/ |
| 100 |
|
protected function matchTags($action, $step) |
| 101 |
|
{ |
| 102 |
|
if (!isset($step->dsl['match'])) { |
| 103 |
|
throw new \Exception("A match condition is required to $action a Tag"); |
| 104 |
|
} |
| 105 |
|
|
| 106 |
|
// convert the references passed in the match |
| 107 |
|
$match = $this->resolveReferencesRecursively($step->dsl['match']); |
| 108 |
|
|
| 109 |
|
return $this->tagMatcher->match($match); |
| 110 |
|
} |
| 111 |
|
|
| 112 |
|
/** |
| 113 |
|
* @param $object |