public function __construct() { parent::__construct(); if (!$_SESSION["currentuser"]) { echo "<script>window.location.replace('index.php');</script>"; } //Inicializa las variables $this->user = new User(); $this->voto = new Voto(); }
public function __construct() { parent::__construct(); //Inicializa la variable $this->user = new User(); //Inicializa la variable $this->concurso = new Concurso(); }
public function __construct() { parent::__construct(); /*if(!$_SESSION["currentuser"]){ echo "<script>window.location.replace('index.php');</script>"; }*/ $this->pincho = new Pincho(); $this->codvoto = new CodVoto(); $this->concurso = new Concurso(); }
public function __construct($user_id = 0) { $this->user_id = $user_id; parent::__construct($user_id); }
public function __construct($user_id = 0) { parent::__construct(); }
public function __construct() { parent::__construct(); }
/** * * Constructor en el que se crea la instancia del participante (singleton) * */ public function __construct() { parent::__construct(); $this->participante = new Participantes(); }