Пример #1
0
 public function findAll(DTO $dto)
 {
     if ($dto->getOrderBys() == array()) {
         $dto->setOrderBy('Name', 'ASC');
     }
     return parent::findAll($dto);
 }
Пример #2
0
 /**
  * [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;
 }
Пример #3
0
 protected function loadObject($object)
 {
     parent::loadObject($object);
     if ($object->hasChildren()) {
         foreach ($object->getChildren() as $child) {
             parent::loadObject($child);
         }
     }
 }
Пример #4
0
 /**
  * Creates the DAO. This is not injected, so you must supply the arguments
  */
 public function __construct()
 {
     parent::__construct(new ContextObject());
 }
Пример #5
0
 /**
  * Creates the DAO
  */
 public function __construct()
 {
     parent::__construct(new Plugin());
 }
Пример #6
0
 /**
  * Creates the DAO. This is not injected, so you must supply the arguments
  */
 public function __construct()
 {
     parent::__construct(new Site());
 }