Beispiel #1
0
 protected function getBasicConstants($pid)
 {
     $buffer = '';
     $buffer .= LF . 'themes.relativePath = ' . $this->getRelativePath();
     $buffer .= LF . 'themes.name = ' . $this->getExtensionName();
     $buffer .= LF . 'themes.templatePageId = ' . $pid;
     $buffer .= LF . 'themes.mode.context = ' . ApplicationContext::getApplicationContext();
     $buffer .= LF . 'themes.mode.isDevelopment = ' . (int) ApplicationContext::isDevelopmentModeActive();
     $buffer .= LF . 'themes.mode.isProduction = ' . (int) (!ApplicationContext::isDevelopmentModeActive());
     return $buffer;
 }
Beispiel #2
0
 /**
  * @return bool
  */
 public static function isDevelopmentModeActive()
 {
     $applicationContext = new ApplicationContext();
     return $applicationContext->isDevelopmentApplicationContext() || $applicationContext->isDevelopPresetActive();
 }