Exemplo n.º 1
0
 public static function getAll()
 {
     $ests = UserMapper::retrieveAllEstablecimientos();
     $toRet = NULL;
     if (isset($ests)) {
         foreach ($ests as $e) {
             $toRet[$e["idemail"]] = new Establecimiento($e["idemail"], $e["nombre"], $e["contrasena"], $e["rutaavatar"], $e["direccion"], $e["web"], $e["horario"], $e["rutaimagen"], $e["geoloc"], $e["baneado"]);
         }
     }
     return $toRet;
 }