function __construct($id, $nombre, $descripcion, $email, $password)
 {
     $this->id = $id;
     $this->nombre = $nombre;
     $this->descripcion = $descripcion;
     $this->email = $email;
     $this->password = $password;
     $this->salt = md5(time());
     $this->slug = Helper::getSlug($nombre);
 }
Exemplo n.º 2
0
 function __construct($id, $nombre, $descripcion, $fechaCelebracion, $distancia, $fechaLimiteInscripcion, $numeroMaximoParticipantes, $imagen)
 {
     $this->id = $id;
     $this->nombre = $nombre;
     $this->descripcion = $descripcion;
     $this->fechaCelebracion = $fechaCelebracion;
     $this->distancia = $distancia;
     $this->fechaLimiteInscripcion = $fechaLimiteInscripcion;
     $this->numeroMaximoParticipantes = $numeroMaximoParticipantes;
     $this->imagen = $imagen;
     $this->slug = Helper::getSlug($nombre);
 }