public function __construct($app) { parent::__construct($app); //@todo: rethink how to setup the left menu: xml, php array or db table? //$this->resx_left_menu = $resx_left_menu; //@todo: move the following to a method that can be called at a later time. Not required in the constructor //$this->base_url = str_replace(\Puzzlout\Framework\Enums\FrameworkPlaceholders::ApplicationNamePlaceHolder, "APP_NAME", $this->app->config->get("base_url")); }
function __construct(\Puzzlout\Framework\Core\Application $app, $data) { parent::__construct($app); $this->rootDirectory = Config::Init($this->app)->Get(\Puzzlout\Framework\Enums\AppSettingKeys::RootDocumentUpload); //@todo: webDirectory is different from context: is it a document or an image? $this->webDirectory = Config::Init($this->app)->Get(\Puzzlout\Framework\Enums\AppSettingKeys::DefaultUrl) . Config::Init($this->app)->Get(\Puzzlout\Framework\Enums\AppSettingKeys::RootDocumentUpload); $this->dataPost = array_key_exists("dataPost", $data) ? $data["dataPost"] : []; }
/** * * @param \Puzzlout\Framework\Core\Application $app * @param string $url * @throws \Exception */ public function __construct(Application $app) { if (is_null($app)) { throw new \Exception('$app cannot be null!', 0, null); } parent::__construct($app); $request = new Request($app); $this->url = $request->RequestUriExist() ? $request->requestURI() : ""; }
/** * Instantiate the class. * * @param \Puzzlout\Framework\Core\Application $app The application object * @param string $module The current module * @param string $action The current action */ public function __construct(\Puzzlout\Framework\Core\Application $app, $module, $action) { parent::__construct($app); $this->managers = $app->dal(); $this->page = new \Puzzlout\Framework\Core\Page($app); $this->user = $app->user(); $this->setModule($module); $this->setAction($action); }
public function __construct(\Puzzlout\Framework\Core\Application $app) { parent::__construct($app); }
public function __construct(Application $app) { parent::__construct($app); }
/** * Instanciate the class * * * @param \Puzzlout\Framework\Core\Application $app */ public function __construct(\Puzzlout\Framework\Core\Application $app) { parent::__construct($app); $typeOfCache = \Puzzlout\Framework\Core\Config::Init($app)->Get(\Puzzlout\Framework\Enums\AppSettingKeys::CACHETYPEUSED); $this->cacheType = constant("\\Puzzlout\\Framework\\Core\\Cache\\BaseCache::{$typeOfCache}"); }
public function __construct(Application $app) { parent::__construct($app); //@todo: get the following outside of the constructor //$this->loadToolTipMessagefromXML(); }
public function __construct(Application $app) { parent::__construct($app); $this->context = new Context($app); }
public function __construct(\Puzzlout\Framework\Core\Application $app) { parent::__construct($app); $this->rootDirectory = Config::Init($this->app)->Get(\Puzzlout\Framework\Enums\AppSettingKeys::RootDocumentUpload); }