public function __construct($arc = null, $page = null) { parent::__construct(); if (!is_null($arc) && !is_null($page)) { $nodes = $this->loadMultiple(array('where' => "arc_id = ? AND page_id = ?", 'data' => array($arc->id, $page->id))); $this->setFrom($nodes[0]); } }
public function __construct() { parent::__construct(); //Necessary to make sure the admin user class is loaded $user = new \ATPAdmin\Model\User(); }