public function findAll(DTO $dto) { if ($dto->getOrderBys() == array()) { $dto->setOrderBy('Name', 'ASC'); } return parent::findAll($dto); }
/** * [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; }
protected function loadObject($object) { parent::loadObject($object); if ($object->hasChildren()) { foreach ($object->getChildren() as $child) { parent::loadObject($child); } } }
/** * 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()); }