コード例 #1
0
ファイル: ExtensionService.php プロジェクト: bash/Sugar
 /**
  * Returns the extension's config from the TYPO3 globals.
  *
  * @return Map
  * @api
  */
 public function getConfig()
 {
     if ($this->config === NULL) {
         $extConf = $this->globals->getConfVar('EXT')['extConf'];
         if (isset($extConf[$this->extensionKey])) {
             $this->config = new Map(unserialize($extConf[$this->extensionKey]));
         } else {
             $this->config = new Map();
         }
     }
     return $this->config;
 }