/** * Returns class name to use for decoration * * If the component does not have a class named "ComponentController" * the default SystemComponentController class is used * @param \Cx\Core\Core\Model\Entity\SystemComponent $component Component to get decoration class for * @return string Full qualified class name */ protected function getComponentControllerClassFor(\Cx\Core\Core\Model\Entity\SystemComponent $component) { if (!$this->cx->getClassLoader()->getFilePath($component->getDirectory(false) . '/Controller/ComponentController.class.php')) { return '\\Cx\\Core\\Core\\Model\\Entity\\SystemComponentController'; } $className = $component->getNamespace() . '\\Controller\\ComponentController'; return $className; }
public function getDirectory($allowCustomizing = true, $relative = false) { $this->_load(); return parent::getDirectory($allowCustomizing, $relative); }