Rev 1086 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1086 | Rev 1116 | ||
---|---|---|---|
Line 22... | Line 22... | ||
22 | // phpcs:disable PSR1.Files.SideEffects |
22 | // phpcs:disable PSR1.Files.SideEffects |
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 | abstract class OIDplusPagePlugin extends OIDplusPlugin { |
26 | abstract class OIDplusPagePlugin extends OIDplusPlugin { |
27 | public function htmlHeaderUpdate(&$head_elems) {} |
- | |
28 | public function htmlPostprocess(&$html) {} |
- | |
29 | public function action($actionID, $params) {} |
- | |
30 | public function gui($id, &$out, &$handled) {} |
- | |
31 | public function tree(&$json, $ra_email=null, $nonjs=false, $req_goto='') {} |
- | |
32 | public function tree_search($request) {} |
- | |
33 | public function handle404($request) { return false; } |
- | |
34 | 27 | ||
- | 28 | /** |
|
- | 29 | * @param string $id |
|
- | 30 | * @param array $out |
|
- | 31 | * @param bool $handled |
|
- | 32 | * @return void |
|
- | 33 | */ |
|
35 | public function csrfUnlock($actionID) { |
34 | public function gui(string $id, array &$out, bool &$handled) {} |
- | 35 | ||
- | 36 | /** |
|
- | 37 | * @param array $json |
|
36 | // override this method if you want that your plugin |
38 | * @param string|null $ra_email |
- | 39 | * @param bool $nonjs |
|
- | 40 | * @param string $req_goto To which node should be auto-expanded to? (Special values: ""=no auto expand. "*"=expand all.) |
|
- | 41 | * @return bool |
|
- | 42 | */ |
|
- | 43 | public function tree(array &$json, string $ra_email=null, bool $nonjs=false, string $req_goto=''): bool { |
|
- | 44 | return false; |
|
- | 45 | } |
|
- | 46 | ||
- | 47 | /** |
|
- | 48 | * @param string $request |
|
- | 49 | * @return array|false |
|
- | 50 | */ |
|
37 | // can accept ajax.php requests from outside, without CSRF check |
51 | public function tree_search(string $request) { |
38 | return false; |
52 | return false; |
39 | } |
53 | } |
40 | 54 | ||
41 | } |
55 | } |