public function get_all_folder_items(MediaURL $media_url, &$plugin_cookies)
 {
     $defs = array(array(KtvVodListScreen::get_media_url_str('last'), 'Last', 'mov_last.png'), array(KtvVodListScreen::get_media_url_str('best'), 'Best', 'mov_best.png'), array(VodFavoritesScreen::get_media_url_str(), 'My Movies', 'mov_favorites.png'), array(VodGenresScreen::get_media_url_str(), 'Genres', 'mov_genres.png'), array(VodSearchScreen::get_media_url_str(), 'Search', 'mov_search.png'));
     $items = array();
     foreach ($defs as $def) {
         $items[] = array(PluginRegularFolderItem::media_url => $def[0], PluginRegularFolderItem::caption => $def[1], PluginRegularFolderItem::view_item_params => array(ViewItemParams::icon_path => $this->session->get_icon($def[2])));
     }
     return $items;
 }
 public function handle_user_input(&$user_input, &$plugin_cookies)
 {
     hd_print('Movie: handle_user_input:');
     foreach ($user_input as $key => $value) {
         hd_print("  {$key} => {$value}");
     }
     if ($user_input->control_id == 'favorites') {
         $movie_id = $user_input->movie_id;
         $is_favorite = $this->vod->is_favorite_movie_id($movie_id);
         if ($is_favorite) {
             $this->vod->remove_favorite_movie($movie_id, $plugin_cookies);
         } else {
             $this->vod->add_favorite_movie($movie_id, $plugin_cookies);
         }
         $message = $is_favorite ? 'Movie has been removed from My Movies' : 'Movie has been added to My Movies';
         return ActionFactory::show_title_dialog($message, ActionFactory::invalidate_folders(array(self::get_media_url_str($movie_id), VodFavoritesScreen::get_media_url_str())));
     }
     return null;
 }