private function getAboutLink($itemid) { $name = resourceString("about"); $image = SERVER_HOST_AND_PATH . "image/img/group.png"; $imageover = SERVER_HOST_AND_PATH . "image/img/group_over.png"; $url = SERVER_HOST_AND_PATH . "php/index.php?action=" . ViewAboutPageAction::getActionName() . URL_AMP . "PHPSESID=" . session_id(); return '<item>' . "\n" . ' <title><![CDATA[' . $name . ']]></title>' . "\n" . ' <subtitle>' . strtoupper($name) . '</subtitle>' . "\n" . ' <description><![CDATA[' . resourceString("show") . " " . $name . ']]></description>' . "\n" . ' <link>' . $url . '</link>' . "\n" . ' <itemid>' . $itemid . '</itemid>' . "\n" . ' <media:thumbnail url="' . $image . '" />' . "\n" . ' <image>' . $image . '</image>' . "\n" . ' <imageover>' . $imageover . '</imageover>' . "\n" . '</item>' . "\n"; }
public function dispatchAction($action) { $this->action = $action; //---------------------------------------------------------------- //------ VIEW RSS ACTIONS if ($action == ViewAboutPageAction::getActionName()) { $implAction = new ViewAboutPageAction(); // } else { if ($action == ViewBookmarksPageAction::getActionName()) { $implAction = new ViewBookmarksPageAction(); // } else { if ($action == ViewHomePageAction::getActionName()) { $implAction = new ViewHomePageAction(); // } else { if ($action == ViewPlaylistPageAction::getActionName()) { $implAction = new ViewPlaylistPageAction(); // } else { if ($action == ViewSetupPageAction::getActionName()) { $implAction = new ViewSetupPageAction(); // } else { if ($action == ViewWebsitesPageAction::getActionName()) { $implAction = new ViewWebsitesPageAction(); // // //----- VIEW WEB ACTIONS -------------------------------------- } else { if ($action == ViewWebHomePageAction::getActionName()) { $implAction = new ViewWebHomePageAction(); // } else { if ($action == ViewPlaylistWebPageAction::getActionName()) { $implAction = new ViewPlaylistWebPageAction(); // } else { if ($action == ViewScraperMegavideoPageAction::getActionName()) { $implAction = new ViewScraperMegavideoPageAction(); // } else { if ($action == SetupXvodPageAction::getActionName()) { $implAction = new SetupXvodPageAction(); // } else { if ($action == ViewScraperPageAction::getActionName()) { $implAction = new ViewScraperPageAction(); // } else { if ($action == ViewCookiePageAction::getActionName()) { $implAction = new ViewCookiePageAction(); // } else { if ($action == ViewFavouritePageAction::getActionName()) { $implAction = new ViewFavouritePageAction(); // } else { if ($action == ViewInformationPageAction::getActionName()) { $implAction = new ViewInformationPageAction(); } } } } } } } } } } } } } } //---------------------------------------------------------------- //------ NON VIEW RSS ACTIONS if (!$implAction) { if ($action == SaveBookmarkAction::getActionName()) { $implAction = new SaveBookmarkAction(); // } else { if ($action == DeleteBookmarkAction::getActionName()) { $implAction = new DeleteBookmarkAction(); // } else { if ($action == SaveFavouriteWebsiteAction::getActionName()) { $implAction = new SaveFavouriteWebsiteAction(); // } } } } //---------------------------------------------------------------- //Execute action if ($implAction) { $implAction->dispatch(); } else { } }