Rev 1086 | Rev 1131 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1086 | Rev 1116 | ||
---|---|---|---|
Line 23... | Line 23... | ||
23 | \defined('INSIDE_OIDPLUS') or die; |
23 | \defined('INSIDE_OIDPLUS') or die; |
24 | // phpcs:enable PSR1.Files.SideEffects |
24 | // phpcs:enable PSR1.Files.SideEffects |
25 | 25 | ||
26 | class OIDplusPageRaObjectLog extends OIDplusPagePluginRa { |
26 | class OIDplusPageRaObjectLog extends OIDplusPagePluginRa { |
27 | 27 | ||
- | 28 | /** |
|
- | 29 | * @param bool $html |
|
- | 30 | * @return void |
|
- | 31 | */ |
|
28 | public function init($html=true) { |
32 | public function init(bool $html=true) { |
29 | } |
33 | } |
30 | 34 | ||
- | 35 | /** |
|
- | 36 | * @param string $id |
|
- | 37 | * @param array $out |
|
- | 38 | * @param bool $handled |
|
- | 39 | * @return void |
|
- | 40 | */ |
|
31 | public function gui($id, &$out, &$handled) { |
41 | public function gui(string $id, array &$out, bool &$handled) { |
32 | } |
42 | } |
33 | 43 | ||
- | 44 | /** |
|
- | 45 | * @param array $json |
|
- | 46 | * @param string|null $ra_email |
|
- | 47 | * @param bool $nonjs |
|
- | 48 | * @param string $req_goto |
|
- | 49 | * @return bool |
|
- | 50 | */ |
|
34 | public function tree(&$json, $ra_email=null, $nonjs=false, $req_goto='') { |
51 | public function tree(array &$json, string $ra_email=null, bool $nonjs=false, string $req_goto=''): bool { |
35 | //if (!$ra_email) return false; |
52 | //if (!$ra_email) return false; |
36 | //if (!OIDplus::authUtils()->isRaLoggedIn($ra_email) && !OIDplus::authUtils()->isAdminLoggedIn()) return false; |
53 | //if (!OIDplus::authUtils()->isRaLoggedIn($ra_email) && !OIDplus::authUtils()->isAdminLoggedIn()) return false; |
37 | 54 | ||
38 | return false; |
55 | return false; |
39 | } |
56 | } |
40 | 57 | ||
- | 58 | /** |
|
- | 59 | * @param string $id |
|
- | 60 | * @return bool |
|
- | 61 | */ |
|
41 | public function implementsFeature($id) { |
62 | public function implementsFeature(string $id): bool { |
42 | if (strtolower($id) == '1.3.6.1.4.1.37476.2.5.2.3.2') return true; // modifyContent |
63 | if (strtolower($id) == '1.3.6.1.4.1.37476.2.5.2.3.2') return true; // modifyContent |
43 | return false; |
64 | return false; |
44 | } |
65 | } |
45 | 66 | ||
46 | public function modifyContent($id, &$title, &$icon, &$text) { |
- | |
- | 67 | /** |
|
47 | // Interface 1.3.6.1.4.1.37476.2.5.2.3.2 |
68 | * Implements interface 1.3.6.1.4.1.37476.2.5.2.3.2 |
- | 69 | * @param string $id |
|
- | 70 | * @param string $title |
|
- | 71 | * @param string $icon |
|
- | 72 | * @param string $text |
|
- | 73 | * @return void |
|
- | 74 | * @throws \ViaThinkSoft\OIDplus\OIDplusException |
|
48 | 75 | */ |
|
- | 76 | public function modifyContent(string $id, string &$title, string &$icon, string &$text) { |
|
49 | $obj = OIDplusObject::parse($id); |
77 | $obj = OIDplusObject::parse($id); |
50 | if (!$obj) return; |
78 | if (!$obj) return; |
51 | if (!$obj->userHasWriteRights()) return; |
79 | if (!$obj->userHasWriteRights()) return; |
52 | 80 | ||
53 | // TODO: I want that this content comes before the WHOIS modifyContent. |
81 | // TODO: I want that this content comes before the WHOIS modifyContent. |
Line 80... | Line 108... | ||
80 | $text .= '<p>'._L('Currently there are no log entries').'</p>'; |
108 | $text .= '<p>'._L('Currently there are no log entries').'</p>'; |
81 | } |
109 | } |
82 | 110 | ||
83 | } |
111 | } |
84 | 112 | ||
- | 113 | /** |
|
- | 114 | * @param string $request |
|
- | 115 | * @return array|false |
|
- | 116 | */ |
|
85 | public function tree_search($request) { |
117 | public function tree_search(string $request) { |
86 | return false; |
118 | return false; |
87 | } |
119 | } |
88 | } |
120 | } |
89 | 121 |