/** * @param $defaultVisitor * @param $renderContext * * @return LegacyModuleAPI */ public function getModuleAPI($defaultVisitor, $renderContext) { if (!is_object($this->moduleApi)) { $this->moduleApi = new LegacyModuleAPI($defaultVisitor, $this, $renderContext); } $this->moduleApi->setDefaultVisitor($defaultVisitor); return $this->moduleApi; }
public function css(LegacyModuleAPI &$api) { $this->api = $api; $moduleDataPath = $this->getModuleDataPath(); // CSS-Code ermitteln / Rendern $self =& $this; if ($this->getMode() == LegacyRenderContext::MODE_EDIT) { echo "\n/* {CSS-UNIT:" . $api->get('ID') . "} */\n"; } include $moduleDataPath . '/moduleCss.php'; if ($this->getMode() == LegacyRenderContext::MODE_EDIT) { echo "\n/* {/CSS-UNIT:" . $api->get('ID') . "} */\n"; } }