Skip to content
This repository was archived by the owner on Jun 9, 2023. It is now read-only.

Commit f29d518

Browse files
committed
Added in the navigation controller.
1 parent e345799 commit f29d518

File tree

1 file changed

+183
-0
lines changed

1 file changed

+183
-0
lines changed

Client/Controller/Navigation.php

Lines changed: 183 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,183 @@
1+
<?php
2+
3+
/**
4+
* Plex Client Navigation Controller
5+
*
6+
* @category php-plex
7+
* @package Plex_Client
8+
* @subpackage Plex_Client_Controller
9+
* @author <[email protected]> Nick Bartkowiak
10+
* @copyright (c) 2012 Nick Bartkowiak
11+
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU Public Licence (GPLv3)
12+
* @version 0.0.1
13+
*
14+
* This file is part of php-plex.
15+
*
16+
* php-plex is free software: you can redistribute it and/or modify
17+
* it under the terms of the GNU General Public License as published by
18+
* the Free Software Foundation, either version 3 of the License, or
19+
* (at your option) any later version.
20+
*
21+
* php-plex is distributed in the hope that it will be useful,
22+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
23+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24+
* GNU General Public License for more details.
25+
*/
26+
27+
/**
28+
* Represents a Plex client on the network.
29+
*
30+
* @category php-plex
31+
* @package Plex_Client
32+
* @subpackage Plex_Client_Controller
33+
* @author <[email protected]> Nick Bartkowiak
34+
* @copyright (c) 2012 Nick Bartkowiak
35+
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU Public Licence (GPLv3)
36+
* @version 0.0.1
37+
*/
38+
class Plex_Client_Controller_Navigation extends Plex_Client_ControllerAbstract
39+
{
40+
/**
41+
* Executes the move up command.
42+
*
43+
* @uses Plex_Client_ControllerAbstract::executeCommand()
44+
*
45+
* @return void
46+
*/
47+
public function moveUp()
48+
{
49+
$this->executeCommand();
50+
}
51+
52+
/**
53+
* Executes the move down command.
54+
*
55+
* @uses Plex_Client_ControllerAbstract::executeCommand()
56+
*
57+
* @return void
58+
*/
59+
public function moveDown()
60+
{
61+
$this->executeCommand();
62+
}
63+
64+
/**
65+
* Executes the move left command.
66+
*
67+
* @uses Plex_Client_ControllerAbstract::executeCommand()
68+
*
69+
* @return void
70+
*/
71+
public function moveLeft()
72+
{
73+
$this->executeCommand();
74+
}
75+
76+
/**
77+
* Executes the move right command.
78+
*
79+
* @uses Plex_Client_ControllerAbstract::executeCommand()
80+
*
81+
* @return void
82+
*/
83+
public function moveRight()
84+
{
85+
$this->executeCommand();
86+
}
87+
88+
/**
89+
* Executes the page up command.
90+
*
91+
* @uses Plex_Client_ControllerAbstract::executeCommand()
92+
*
93+
* @return void
94+
*/
95+
public function pageUp()
96+
{
97+
$this->executeCommand();
98+
}
99+
100+
/**
101+
* Executes the page down command.
102+
*
103+
* @uses Plex_Client_ControllerAbstract::executeCommand()
104+
*
105+
* @return void
106+
*/
107+
public function pageDown()
108+
{
109+
$this->executeCommand();
110+
}
111+
112+
/**
113+
* Executes the next letter command.
114+
*
115+
* @uses Plex_Client_ControllerAbstract::executeCommand()
116+
*
117+
* @return void
118+
*/
119+
public function nextLetter()
120+
{
121+
$this->executeCommand();
122+
}
123+
124+
/**
125+
* Executes the previous letter command.
126+
*
127+
* @uses Plex_Client_ControllerAbstract::executeCommand()
128+
*
129+
* @return void
130+
*/
131+
public function previousLetter()
132+
{
133+
$this->executeCommand();
134+
}
135+
136+
/**
137+
* Executes the select command.
138+
*
139+
* @uses Plex_Client_ControllerAbstract::executeCommand()
140+
*
141+
* @return void
142+
*/
143+
public function select()
144+
{
145+
$this->executeCommand();
146+
}
147+
148+
/**
149+
* Executes the back command.
150+
*
151+
* @uses Plex_Client_ControllerAbstract::executeCommand()
152+
*
153+
* @return void
154+
*/
155+
public function back()
156+
{
157+
$this->executeCommand();
158+
}
159+
160+
/**
161+
* Executes the context menu command.
162+
*
163+
* @uses Plex_Client_ControllerAbstract::executeCommand()
164+
*
165+
* @return void
166+
*/
167+
public function contextMenu()
168+
{
169+
$this->executeCommand();
170+
}
171+
172+
/**
173+
* Executes the toggle OSD command.
174+
*
175+
* @uses Plex_Client_ControllerAbstract::executeCommand()
176+
*
177+
* @return void
178+
*/
179+
public function toggleOSD()
180+
{
181+
$this->executeCommand();
182+
}
183+
}

0 commit comments

Comments
 (0)