@@ 155-167 (lines=13) @@ | ||
152 | * |
|
153 | * @return bool Returns the new number of elements in the array. |
|
154 | */ |
|
155 | public function isRequested($checkScopeSegment) |
|
156 | { |
|
157 | if ($this->parentScopes) { |
|
158 | $scopeArray = array_slice($this->parentScopes, 1); |
|
159 | array_push($scopeArray, $this->scopeIdentifier, $checkScopeSegment); |
|
160 | } else { |
|
161 | $scopeArray = [$checkScopeSegment]; |
|
162 | } |
|
163 | ||
164 | $scopeString = implode('.', (array) $scopeArray); |
|
165 | ||
166 | return in_array($scopeString, $this->manager->getRequestedIncludes()); |
|
167 | } |
|
168 | ||
169 | /** |
|
170 | * Is Excluded. |
|
@@ 183-195 (lines=13) @@ | ||
180 | * |
|
181 | * @return bool |
|
182 | */ |
|
183 | public function isExcluded($checkScopeSegment) |
|
184 | { |
|
185 | if ($this->parentScopes) { |
|
186 | $scopeArray = array_slice($this->parentScopes, 1); |
|
187 | array_push($scopeArray, $this->scopeIdentifier, $checkScopeSegment); |
|
188 | } else { |
|
189 | $scopeArray = [$checkScopeSegment]; |
|
190 | } |
|
191 | ||
192 | $scopeString = implode('.', (array) $scopeArray); |
|
193 | ||
194 | return in_array($scopeString, $this->manager->getRequestedExcludes()); |
|
195 | } |
|
196 | ||
197 | /** |
|
198 | * Push Parent Scope. |