2 namespace TYPO3\CMS\Backend\Configuration\TypoScript\ConditionMatching;
48 if (is_bool($result)) {
55 foreach ($values as $test) {
68 $treeLevel = count($this->rootline) - 1;
73 foreach ($values as $test) {
74 if ($test == $treeLevel) {
79 case 'PIDupinRootline':
82 if ($key ==
'PIDinRootline' || !in_array($this->pageId, $values) || $this->
isNewPageWithPageId($this->pageId)) {
83 foreach ($values as $test) {
84 foreach ($this->rootline as $rl_dat) {
85 if ($rl_dat[
'uid'] == $test) {
93 $conditionResult = $this->evaluateCustomDefinedCondition($string);
94 if ($conditionResult !== null) {
95 return $conditionResult;
111 $vars = explode(
':', $var, 2);
141 }
elseif (is_array($editStatement)) {
142 list($table, $uidAndAction) = each($editStatement);
143 list($uid, $action) = each($uidAndAction);
144 if ($action ===
'edit') {
146 }
elseif ($action ===
'new') {
149 }
elseif (is_array($commandStatement)) {
150 list($table, $uidActionAndTarget) = each($commandStatement);
151 list($uid, $actionAndTarget) = each($uidActionAndTarget);
152 list($action, $target) = each($actionAndTarget);
153 if ($action ===
'delete') {
155 }
elseif ($action ===
'copy' || $action ===
'move') {
186 if (($ignoreTable || $table ===
'pages') && $id >= 0) {
207 $elementsData =
$GLOBALS[
'SOBE']->elementsData;
210 if (is_array($data) && isset($data[
'pages']) && is_array($data[
'pages'])) {
211 foreach ($data[
'pages'] as $uid => $fields) {
212 if (strpos($uid,
'NEW') === 0 && $fields[
'pid'] ==
$pageId) {
218 if (is_array($elementsData)) {
219 foreach ($elementsData as $element) {
220 if ($element[
'cmd'] ===
'new' && $element[
'table'] ===
'pages') {
221 if ($element[
'pid'] < 0) {
223 $element[
'pid'] = $pageRecord[
'pid'];
225 if ($element[
'pid'] ==
$pageId) {
282 protected function log($message)