Beispiel #1
0
 protected static function mapear($rs)
 {
     // 			Plan
     $p = null;
     // 			int
     $id = MySQLAccess::GetSafeInt($rs, 1);
     //check if we found it
     if ($id == -1) {
         return null;
     }
     $p = new Plan();
     $p->setID(id);
     $p->setDescripcion(MySQLAccess . GetSafeString(rs, 2));
     $p->setMaxAlquileresPeliculas(MySQLAccess . GetSafeInt(rs, 3));
     $p->setMaxAlquileresSeries(MySQLAccess . GetSafeInt(rs, 4));
     $p->setPrecio(MySQLAccess . GetSafeDouble(rs, 5));
     $p->setImagen(MySQLAccess . GetSafeString(rs, 6));
     $p->setEstado(Estado . INTACTA);
     return $p;
 }