コード例 #1
0
ファイル: Controller.class.php プロジェクト: rootfs/robinhood
 /**
  * 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();
 }
コード例 #2
0
 /**
  * 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);
 }
コード例 #3
0
 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);
 }
コード例 #4
0
 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);
 }
コード例 #5
0
 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));
     }
 }
コード例 #6
0
 /**
  * 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);
 }
コード例 #7
0
 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();
     }
 }
コード例 #8
0
 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());
 }
コード例 #9
0
ファイル: User.php プロジェクト: Puzzlout/FrameworkMvcLegacy
 /**
  * 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());
 }
コード例 #10
0
 public function __construct(Application $app)
 {
     parent::__construct($app);
 }
コード例 #11
0
ファイル: Page.php プロジェクト: eneel87/formation
 public function __construct(Application $App)
 {
     parent::__construct($App);
     $this->template = 'layout.php';
 }
コード例 #12
0
 /**
  * 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;
 }
コード例 #13
0
 public function __construct($rootda, $domainda, $appname, $name, $basedir)
 {
     parent::__construct($rootda, $domainda, $appname, $name, $basedir);
 }
コード例 #14
0
 public function __construct($app)
 {
     parent::__construct($app);
     $this->config = new Config($app, 'routes');
 }
コード例 #15
0
ファイル: Page.class.php プロジェクト: rootfs/robinhood
 /**
  * The constructor sets the variable template
  * @param application
  * @param template 
  */
 public function __construct(Application $app, $template)
 {
     parent::__construct($app);
     $this->template = $template;
 }