function getCurrentPincho($idNombre) { return Pincho::getByIdnombre($idNombre); }
public static function pinchoConsumed() { global $l; if (!isset($_SESSION)) { session_start(); } if (get_class($_SESSION["user"]) != "JuradoPopular") { header("Location: ../view/403.php"); exit; } if ($_POST["markeatenpincho_probado_idpincho"] && $_POST["markeatenpincho_probado_idemail"]) { $pincho = Pincho::getByIdnombre($_POST["markeatenpincho_probado_idpincho"]); $pincho->toggleMarcado($_POST["markeatenpincho_probado_idemail"]); if ($pincho->isProbado($_POST["markeatenpincho_probado_idemail"])) { $_SESSION["alert"]["success"] = $l["alertify_eatenPincho_eaten"]; } else { $_SESSION["alert"]["success"] = $l["alertify_eatenPincho_noEaten"]; } header("Location: ../view/list.php"); } else { header("Location: ../view/404.php"); exit; } }
public function getGanadoresProfesionales() { $tuplas = ConcursoMapper::retrieveGanadoresProfesionales(); $toRet = NULL; foreach ($tuplas as $key => $values) { $toRet[$key] = Pincho::getByIdnombre($values); } return $toRet; }
public static function getPinchoFromCode($code) { return Pincho::getByIdnombre(PinchoMapper::getPinchoIdFromCode($code)); }
function validate_pincho() { $idnombre = $_GET["idnombre"]; $target = Pincho::getByIdnombre($idnombre); $target->setEstadopropuesta($_GET["estado"]); header("Location: ../view/view_admin_propuestas.php"); }