public function get_action_map(MediaURL $media_url, &$plugin_cookies) { hd_print(__METHOD__); UserInputHandlerRegistry::get_instance()->register_handler($this); $enter_action = UserInputHandlerRegistry::create_action($this, 'enter'); return array(GUI_EVENT_KEY_ENTER => $enter_action, GUI_EVENT_KEY_PLAY => $enter_action); }
/** * override method to add 'playAll event' **/ public function get_action_map(MediaURL $media_url, &$plugin_cookies) { UserInputHandlerRegistry::get_instance()->register_handler($this); $play_all_action = UserInputHandlerRegistry::create_action($this, 'playAll'); $events = parent::get_action_map($media_url, $plugin_cookies); $events[GUI_EVENT_KEY_PLAY] = $play_all_action; hd_print(__METHOD__ . ':' . print_r($events, true)); return $events; }
public function get_action_map(MediaURL $media_url, &$plugin_cookies) { hd_print(__METHOD__); // hd_print(__METHOD__ . ': ' . print_r($media_url, true)); UserInputHandlerRegistry::get_instance()->register_handler($this); $pop_up_action = UserInputHandlerRegistry::create_action($this, 'pop_up', null, 'Filtos'); // hd_print(__METHOD__ . ':' . print_r($pop_up_action, true)); $enter_action = ActionFactory::open_folder(); return array(GUI_EVENT_KEY_ENTER => $enter_action, GUI_EVENT_KEY_PLAY => $enter_action, GUI_EVENT_KEY_POPUP_MENU => $pop_up_action, GUI_EVENT_KEY_0 => $pop_up_action); }
public function __construct() { $this->tv = new ZTVTv(); $this->add_screen(new TvGroupListScreen($this->tv, ZTVConfig::GET_TV_GROUP_LIST_FOLDER_VIEWS())); $this->add_screen(new TvChannelListScreen($this->tv, ZTVConfig::GET_TV_CHANNEL_LIST_FOLDER_VIEWS())); $this->add_screen(new TvFavoritesScreen($this->tv, ZTVConfig::GET_TV_CHANNEL_LIST_FOLDER_VIEWS())); $this->entry_handler = new ZTVSetupScreen(); $this->add_screen($this->entry_handler); UserInputHandlerRegistry::get_instance()->register_handler($this->entry_handler); }
protected function __construct(Vod $vod) { parent::__construct(self::ID, $vod->get_vod_list_folder_views()); $this->vod = $vod; UserInputHandlerRegistry::get_instance()->register_handler($this); }
public function __construct(Tv $tv, $folder_views) { parent::__construct(self::ID, $folder_views); $this->tv = $tv; UserInputHandlerRegistry::get_instance()->register_handler($this); }
protected function __construct($id) { $this->id = $id; UserInputHandlerRegistry::get_instance()->register_handler($this); }
public function handle_user_input(&$user_input, &$plugin_cookies) { return UserInputHandlerRegistry::get_instance()->handle_user_input($user_input, $plugin_cookies); }
public function get_action_map(MediaURL $media_url, &$plugin_cookies) { // hd_print(__METHOD__); UserInputHandlerRegistry::get_instance()->register_handler($this); $show_resume_menu_action = UserInputHandlerRegistry::create_action($this, 'show_resume_menu'); $info_action = UserInputHandlerRegistry::create_action($this, 'info'); $pop_up_action = UserInputHandlerRegistry::create_action($this, 'pop_up', null, 'Filtos'); $a = array(GUI_EVENT_KEY_ENTER => $show_resume_menu_action, GUI_EVENT_KEY_PLAY => $show_resume_menu_action, GUI_EVENT_KEY_POPUP_MENU => $pop_up_action, GUI_EVENT_KEY_INFO => $info_action); // hd_print(print_r($a, true)); return $a; }
public function __construct(Vod $vod) { $this->vod = $vod; UserInputHandlerRegistry::get_instance()->register_handler($this); }
public function __construct(Vod $vod) { $this->vod = $vod; parent::__construct(self::ID, $vod->get_vod_genres_folder_views()); UserInputHandlerRegistry::get_instance()->register_handler($this); }
public function __construct($session) { $this->session = $session; UserInputHandlerRegistry::get_instance()->register_handler($this); }
public function __construct() { UserInputHandlerRegistry::get_instance()->register_handler($this); }
function __construct() { // hd_print(__METHOD__); parent::__construct(self::ID, $this->get_folder_views()); UserInputHandlerRegistry::get_instance()->register_handler($this); }