2 namespace TYPO3\CMS\Core\Core;
66 $this->parentContext = null;
69 $this->rootContextString = $contextStringParts[0];
70 array_pop($contextStringParts);
74 if (!in_array($this->rootContextString, array(
'Development',
'Production',
'Testing'))) {
75 throw new \TYPO3\CMS\Core\Exception(
'The given context "' .
$contextString .
'" was not valid. Only allowed are Development, Production and Testing, including their sub-contexts', 1335436551);
100 return ($this->rootContextString ===
'Development');
112 return ($this->rootContextString ===
'Production');
123 return ($this->rootContextString ===
'Testing');