1 | <?php |
||
24 | trait Plugin |
||
25 | { |
||
26 | /** |
||
27 | * Register a plugin |
||
28 | * |
||
29 | * Below is a table for priorities and their description: |
||
30 | * - 0 thru 999: Plugins that are part of or extensions to the jaxon core |
||
31 | * - 1000 thru 8999: User created plugins, typically, these plugins don't care about order |
||
32 | * - 9000 thru 9999: Plugins that generally need to be last or near the end of the plugin list |
||
33 | * |
||
34 | * @param Plugin $xPlugin An instance of a plugin |
||
|
|||
35 | * @param integer $nPriority The plugin priority, used to order the plugins |
||
36 | * |
||
37 | * @return void |
||
38 | */ |
||
39 | public function registerPlugin(\Jaxon\Plugin\Plugin $xPlugin, $nPriority = 1000) |
||
43 | |||
44 | /** |
||
45 | * Register the Jaxon request plugins |
||
46 | * |
||
47 | * @return void |
||
48 | */ |
||
49 | public function registerRequestPlugins() |
||
56 | |||
57 | /** |
||
58 | * Register the Jaxon response plugins |
||
59 | * |
||
60 | * @return void |
||
61 | */ |
||
62 | public function registerResponsePlugins() |
||
67 | } |
||
68 |