Пример #1
0
 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"));
 }
Пример #2
0
 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"] : [];
 }
Пример #3
0
 /**
  * 
  * @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);
 }
Пример #5
0
 public function __construct(\Puzzlout\Framework\Core\Application $app)
 {
     parent::__construct($app);
 }
Пример #6
0
 public function __construct(Application $app)
 {
     parent::__construct($app);
 }
Пример #7
0
 /**
  * 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();
 }
Пример #9
0
 public function __construct(Application $app)
 {
     parent::__construct($app);
     $this->context = new Context($app);
 }
Пример #10
0
 public function __construct(\Puzzlout\Framework\Core\Application $app)
 {
     parent::__construct($app);
     $this->rootDirectory = Config::Init($this->app)->Get(\Puzzlout\Framework\Enums\AppSettingKeys::RootDocumentUpload);
 }