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