/** * [IoC] Creates the ElementDAO * * @param AspectDAO $AspectDAO the AspectDAO * @param SiteService $SiteService The SiteService * @param NodeSchemaParser $NodeSchemaParser The NodeSchemaParser */ public function __construct(AspectDAO $AspectDAO, SiteService $SiteService, NodeSchemaParser $NodeSchemaParser) { parent::__construct(new Element()); $this->AspectDAO = $AspectDAO; $this->SiteService = $SiteService; // $this->PluginService = $PluginService; $this->NodeSchemaParser = $NodeSchemaParser; }
/** * Creates the DAO. This is not injected, so you must supply the arguments */ public function __construct() { parent::__construct(new ContextObject()); }
/** * Creates the DAO */ public function __construct() { parent::__construct(new Plugin()); }
/** * Creates the DAO. This is not injected, so you must supply the arguments */ public function __construct() { parent::__construct(new Site()); }
/** * [IoC] Injects the NodeSchemaParser * * @param NodeSchemaParser $NodeSchemaParser NodeSchemaParser */ public function __construct(NodeSchemaParser $NodeSchemaParser, PluginService $PluginService) { parent::__construct(new Aspect()); $this->NodeSchemaParser = $NodeSchemaParser; $this->PluginService = $PluginService; }
/** * Creates the CmsNavigationService */ public function __construct() { parent::__construct(new CMSNavItem()); }