1 | <?php |
||
16 | class AnimeClient { |
||
17 | |||
18 | use \Aviat\Ion\Di\ContainerAware; |
||
19 | |||
20 | const SESSION_SEGMENT = 'Aviat\AnimeClient\Auth'; |
||
21 | |||
22 | private static $form_pages = [ |
||
23 | 'edit', |
||
24 | 'add', |
||
25 | 'update', |
||
26 | 'update_form', |
||
27 | 'login', |
||
28 | 'logout' |
||
29 | ]; |
||
30 | |||
31 | /** |
||
32 | * HTML selection helper function |
||
33 | * |
||
34 | * @param string $a - First item to compare |
||
35 | * @param string $b - Second item to compare |
||
36 | * @return string |
||
37 | */ |
||
38 | public static function is_selected($a, $b) |
||
42 | |||
43 | /** |
||
44 | * Inverse of selected helper function |
||
45 | * |
||
46 | * @param string $a - First item to compare |
||
47 | * @param string $b - Second item to compare |
||
48 | * @return string |
||
49 | */ |
||
50 | public static function is_not_selected($a, $b) |
||
54 | |||
55 | /** |
||
56 | * Determine whether to show the sub-menu |
||
57 | * |
||
58 | * @return bool |
||
59 | */ |
||
60 | public function is_view_page() |
||
70 | |||
71 | /** |
||
72 | * Determine whether the page is a page with a form, and |
||
73 | * not suitable for redirection |
||
74 | * |
||
75 | * @return boolean |
||
76 | */ |
||
77 | public function is_form_page() |
||
81 | |||
82 | } |
||
83 | // End of anime_client.php |