Exemple #1
0
 /**
  * Construct Method
  *
  * @param array $options
  */
 public function __construct($options = [])
 {
     parent::__construct($options);
     $this->StyleSheets = [];
     $this->JavaScripts = [];
     $this->Positions = [];
 }
Exemple #2
0
 /**
  * @param array $URI
  */
 public function __construct($URI)
 {
     parent::__construct([]);
     if (is_string($URI)) {
         $this->URI = $URI;
         $this->parse($URI);
     }
 }
Exemple #3
0
 /**
  * Load the active cookies of the current session
  *
  * @param array $Options
  */
 public function __construct($Options = [])
 {
     parent::__construct($Options);
     if (!isset($this->Cookies)) {
         $this->Cookies =& $_COOKIE;
     }
     $this->newCookies = [];
 }
Exemple #4
0
 /**
  * @param array $Identities
  */
 public function __construct($Identities)
 {
     parent::__construct([]);
     $this->Identities = [];
     if (is_string($Identities)) {
         $Identities = json_decode($Identities, true);
     }
     $this->mergeIdentities($Identities);
 }
Exemple #5
0
 /**
  * @param mixed $Rules
  */
 public function __construct($Rules = null)
 {
     parent::__construct([]);
     $this->Actions = [];
     if (is_string($Rules)) {
         $this->merge(json_decode($Rules, true));
     } elseif (is_object($Rules) || is_array($Rules)) {
         $this->mergeCollection((array) $Rules);
     }
 }
Exemple #6
0
 /**
  * @param string $TemplateDir
  * @param string $Template
  * @param string $Position
  * @param array  $Variables
  * @param bool   $Buffer
  */
 public function __construct($TemplateDir, $Template, $Position, $Variables = [], $Buffer = true)
 {
     parent::__construct([]);
     $this->TemplateDir = $TemplateDir;
     $this->Template = $Template;
     $this->Position = $Position;
     $this->blBuffer = $Buffer;
     $this->Variables = [];
     $this->VariablesByRef = [];
     $this->assign($Variables);
 }
Exemple #7
0
 /**
  * Set the Property $this->Modules to an empty array()
  * Set the Content type to text/html
  * Verify if an XML HTTP Request have been sent (AJAX)
  *
  * @param array $Options
  */
 public function __construct($Options = [])
 {
     parent::__construct($Options);
     $this->Modules = [];
     $this->ContentType = 'text/html';
     if (php_sapi_name() == 'cli') {
         $this->CLIMode = true;
         $this->setCLIOptions();
     } else {
         $this->CLIMode = false;
     }
     if (isset($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest' && !$this->CLIMode) {
         $this->XHRequest = true;
     } else {
         $this->XHRequest = false;
     }
 }
Exemple #8
0
 /**
  * @param array $ApplicationID
  */
 public function __construct($ApplicationID)
 {
     parent::__construct(['ApplicationID' => $ApplicationID]);
 }
Exemple #9
0
 /**
  * @param array $Options
  */
 public function __construct($Options = [])
 {
     parent::__construct($Options);
     $this->arRouteMaps = $this->getRouteMaps();
     $this->defaultRouteMap = $this->getDefaultRouteMap();
 }
Exemple #10
0
 /**
  * @param array $ApplicationID
  */
 public function __construct($ApplicationID)
 {
     parent::__construct(['ApplicationID' => $ApplicationID]);
     $this->Modules;
     $this->AvailableMenuIDs = [];
 }
Exemple #11
0
 /**
  * @param array $Options
  */
 public function __construct($Options = [])
 {
     parent::__construct($Options);
     $this->clearStatics();
 }