Example #1
0
 public function __construct()
 {
     parent::__construct();
     $this->getModel();
     $this->model->getModelAccess();
     $this->getControllerSession();
 }
Example #2
0
 public function __construct()
 {
     parent::__construct();
     if (!isset($_SESSION)) {
         //TODO arreglar esto para que no salte en PhpUnit tests
         //trigger_error("[ERROR ".get_class($this)."::".__FUNCTION__."::".__LINE__."] No se ha iniciado sesiĆ³n para crear tokens", E_USER_NOTICE);
     }
 }
Example #3
0
 /**
  * __construct
  * Creamos el modelo e instanciamos la clase de acceso para evaluar posteriormente los niveles de acceso
  *
  * @var bool
  * @access protected
  */
 public function __construct()
 {
     $this->getModel();
     $this->getControllerMenu();
     $this->model->getModelPage();
     $this->getControllerAccess();
     parent::__construct();
 }
Example #4
0
 public function __construct()
 {
     parent::__construct();
     if (class_exists('\\Olif\\ControllerRequest')) {
         $this->req = ControllerRequest::getInstance();
     } else {
         die("[ERROR " . get_class($this) . "::" . __FUNCTION__ . "::" . __LINE__ . "] No existe ControllerRequest");
     }
     // echo "Clase Dev:".print_r($this->page->model);
 }
Example #5
0
 /**
  * __construct
  * Constructor de la clase
  */
 public function __construct()
 {
     parent::__construct();
     require_once CORE_ROOT . THREEPARTY . 'PHPMailer/PHPMailerAutoload.php';
     $this->h_mail = new \phpmailer();
     $this->h_mail->PluginDir = CORE_ROOT . THREEPARTY . "PHPMailer/";
     $this->h_mail->Host = MAILER_HOST;
     $this->h_mail->Port = MAILER_PORT;
     $this->h_mail->Username = MAILER_USER;
     $this->h_mail->Password = MAILER_PASS;
     $this->h_mail->SMTPAuth = true;
     // authentication enabled
     if (MAILER_USE_SLL) {
         $this->h_mail->SMTPSecure = 'ssl';
     }
     // secure transfer enabled REQUIRED for Gmail
     $this->h_mail->Timeout = 50;
     $this->h_mail->Mailer = "smtp";
     $this->h_mail->IsSMTP();
     $this->h_mail->IsHTML(true);
     $this->h_mail->CharSet = "UTF-8";
     $this->h_mail->SMTPDebug = 0;
 }
Example #6
0
 public function __construct()
 {
     parent::__construct();
     $this->getControllerAccess();
 }