function getInfosFilm($id = null) { if (is_null($id)) { $id = $_REQUEST["id"]; } $o["typesearch"] = "movie"; $all = new \model\simple\Allocine($id, $o); $this->set(array("film" => $all->retourneResMovieFormat())); }
function getInfosFilm($id = null, $keyconnexion = null) { \model\simple\Utilisateur::authentificationPourRtorrent($keyconnexion); if (!\config\Conf::$user["user"]) { throw new \Exception("Non User"); } if (is_null($id)) { $id = $_REQUEST["id"]; } $o["typesearch"] = "movie"; $all = new \model\simple\Allocine($id, $o); $this->set(array("film" => $all->retourneResMovieFormat())); }
function getInfosFilm($code, $keyconnexion, $all = "") { \model\simple\Utilisateur::authentificationPourRtorrent($keyconnexion); if (!\config\Conf::$user["user"]) { throw new \Exception("Non User"); } if ($all === "") { $res = \model\mysql\Film::getByIdFormat($code); } else { $o["typesearch"] = "movie"; $all = new \model\simple\Allocine($code, $o); $res = $all->retourneResMovieFormat(); } $this->set(array("film" => $res)); }