public function __construct($passthru = false, $ajax = false) { date_default_timezone_set('EST'); if ($ajax) { $this->ajax = true; } $this->passthru = $passthru; error_reporting(E_ERROR | E_WARNING | E_PARSE); openlog(config::APP_NAMESPACE, 0, LOG_LOCAL0); $this->logFile = fopen(config::LOG_FILE, "a+"); $this->initDB(); // Bring up the database connection $this->initMemcache(); $this->validateSession(); // Session startup and login validator $this->escapeVars(); // Sanitation $this->htmlData = base::init(); if (!$passthru) { $this->buildUserObject(); } // Build User Object if ($this->getSetting('stripe_private')) { Stripe::setApiKey($this->getSetting('stripe_private')); } }
/** * * * @param * @access public * @return void */ function init() { parent::init(); $this->webtod = new webtodtunnel(); $this->titlePage = 'Le Réseau'; $param = array('avec_arretslv' => false, 'avec_arretsdz' => true, 'accesreservation' => true); $reponse = $this->webtod->getResponseParse('reseau', 'ServiceListerLignes', $param, 'reseau', 'ServiceListerLignes-answer.xml'); $this->Treelignes = $this->getTreeLignes($reponse); }
/** * * * @param * @access public * @return void */ function init() { parent::init(); $this->webtod = new webtodtunnel(); $this->titlePage = 'Le Réseau'; //création du tableau des réservation $param = array('code_adherent' => $GLOBALS['front']->user->code_adherent); $reponse = $this->webtod->getResponseParse('reservation', 'ServiceListerReservationsParAdherent', $param, 'reservation', 'ServiceListerReservationsParAdherent_Response.xml'); $this->makeArrayReservation($reponse); //création du tableau des arrets $param = array('avec_arretslv' => true, 'avec_arretsdz' => false, 'accesreservation' => true); $reponse = $this->webtod->getResponseParse('reseau', 'ServiceListerArrets', $param, 'reseau', 'ServiceListerArrets_Response_LV.xml'); $this->makeArrayArrets($reponse); }
/** * * * @param * @access public * @return void */ function init($ref) { $this->type = $ref[0]; $this->module = $ref[1]; parent::init(); }