/** * Constructor * @param boolean $session_started */ public function __construct($session_started = false) { parent::__construct($session_started); global $db; //@TODO remove this when PDO port is done $this->post_dao = DAOFactory::getDAO('PostDAO'); $this->addToView('controller_title', 'Post details'); }
/** * Constructor * @TODO remove global $db when PDO port is done * @param Owner $owner * @return FacebookPluginConfigurationController */ public function __construct($owner) { parent::__construct(true); global $db; $this->owner = $owner; $this->id = DAOFactory::getDAO('InstanceDAO'); $this->od = DAOFactory::getDAO('OwnerDAO'); $this->oid = new OwnerInstanceDAO($db); }
/** * Constructor * * @param boolean $session_started */ public function __construct($session_started = false) { parent::__construct($session_started); $this->post_dao = DAOFactory::getDAO('PostDAO'); $instance_dao = DAOFactory::getDAO('InstanceDAO'); $last_updated_instance = $instance_dao->getInstanceFreshestOne(); if (isset($last_updated_instance)) { $this->addToView('crawler_last_run', $last_updated_instance->crawler_last_run); } $this->addToView('controller_title', 'Private Dashboard'); }
/** * Constructor * @param Owner $owner */ public function __construct($owner) { parent::__construct(true); $this->owner = $owner; }