/** * The constructor instantiate the Page object * @param application * @param module * @param type */ public function __construct(Application $app, $module, $type) { parent::__construct($app); $this->page = new Page($app, $type); $this->module = $module; $this->type = $type; $this->setView(); }
/** * Initialize the back controller. * @param Application $app The application. * @param string $module The module. * @param string $action The action. */ public function __construct(Application $app, $module, $action) { parent::__construct($app); $this->setModule($module); $this->setAction($action); $daos = new Daos($app); $this->managers = new Managers($daos); }
public function __construct(Application $app, $module, $action = '') { parent::__construct($app); $this->managers = new Managers('PDO', PDOFactory::getMysqlConnexion()); $this->page = new Page($app); $this->setModule($module); $this->setAction($action); $this->setView($action); }
public function __construct(Application $app, $module, $action) { parent::__construct($app); $this->managers = new Managers('PDO', PDOFactory::getMysqlConnexion()); $this->page = new Page($app); $this->cache = new Cache(__DIR__ . '/../../tmp/cache/datas', __DIR__ . '/../../tmp/cache/views'); $this->setModule($module); $this->setAction($action); $this->setView($action); }
public function __construct($app, $name) { parent::__construct($app); $this->dom = new \DOMDocument(); $this->file = '../../Applications/' . $this->app->name() . '/Config/' . $name . '.xml'; if (file_exists($this->file)) { $this->dom->load($this->file); $this->setVars(); } else { throw new \Exception(ErrorMessage::config(0, $this->file)); } }
/** * Initialize the back controller. * @param Application $app The application. * @param string $module The module. * @param string $action The action. */ public function __construct(Application $app, $module, $action) { parent::__construct($app); $this->setModule($module); $this->setAction($action); $daos = new Daos(); $this->managers = new Managers($daos); $this->config = new ModuleConfig($app, $module); $this->translation = new ModuleTranslation($app, $module, $action); $this->responseContent = new Page($app, $module, $action); $this->responseContent->setTranslation($this->translation); }
public function __construct(Application $app, $module, $action) { parent::__construct($app); $this->managers = new Managers('pdo', PDOFactory::getMysqlConnexion()); $this->page = new Page($app); $this->setModule($module); $this->setAction($action); $this->setView($action); if ($this->app->name() == 'frontend') { $this->initUser(); } else { $this->initAdmin(); } }
public function __construct(Application $app, $module, $action, $resxfile) { parent::__construct($app); $this->managers = new \Library\DAL\Managers('PDO', $app); $this->page = new Page($app); $this->user = $app->user(); $this->setModule($module); $this->setAction($action); $this->setView($action); $this->setResxFile($resxfile); $this->setDataPost($this->app->HttpRequest()->retrievePostAjaxData(FALSE)); $this->resxData = $this->app->i8n->getLocalResourceArray($this->resxfile); $this->setUploadingFiles(); $this->toolTips[\Applications\PMTool\Resources\Enums\ViewVariables\Popup::ellipsis_tooltip_settings] = \Applications\PMTool\Helpers\PopUpHelper::getTooltipEllipsisSettings('{"targetcontroller":"' . $this->module . '","targetaction": "' . $this->action . '"}', $app->name()); }
/** * Constructor: set the appPrefix to set in front of all session values * @param \Puzzlout\Framework\Core\Application $app */ public function __construct(Application $app) { parent::__construct($app); $this->appPrefix = strtolower($app->name()); }
public function __construct(Application $app) { parent::__construct($app); }
public function __construct(Application $App) { parent::__construct($App); $this->template = 'layout.php'; }
/** * Initialize the module's component. * @param Application $app The application. * @param string $module The module. */ public function __construct(Application $app, $module) { parent::__construct($app); $this->module = $module; }
public function __construct($rootda, $domainda, $appname, $name, $basedir) { parent::__construct($rootda, $domainda, $appname, $name, $basedir); }
public function __construct($app) { parent::__construct($app); $this->config = new Config($app, 'routes'); }
/** * The constructor sets the variable template * @param application * @param template */ public function __construct(Application $app, $template) { parent::__construct($app); $this->template = $template; }