function __construct(&$parent) { parent::__construct(); $this->_Parent = $parent; $this->_env = array(); $this->DatasourceManager = new DatasourceManager($this->_Parent); $this->EventManager = new EventManager($this->_Parent); $this->ExtensionManager = new ExtensionManager($this->_Parent); }
/** * Constructor function sets the `$is_logged_in` variable. */ public function __construct() { parent::__construct(); $this->is_logged_in = Frontend::instance()->isLoggedIn(); }
/** * Constructor function sets `$this->_Parent` and initialises the Managers * used on the FrontendPage, which are DatasourceManager, EventManager and * ExtensionManager * * @param Frontend $parent * The Frontend object that this page has been created from * passed by reference */ public function __construct(&$parent) { parent::__construct(); $this->_Parent = $parent; $this->DatasourceManager = new DatasourceManager($this->_Parent); $this->EventManager = new EventManager($this->_Parent); $this->ExtensionManager = Symphony::ExtensionManager(); $this->is_logged_in = Frontend::instance()->isLoggedIn(); }