1 | <?php |
||
11 | class Plugin{ |
||
12 | |||
13 | /** |
||
14 | * Plugin definitions. |
||
15 | * |
||
16 | * @var object |
||
17 | */ |
||
18 | protected $definitions; |
||
19 | |||
20 | |||
21 | /** |
||
22 | * Retrieve the plugin definitions from the main plugin directory. |
||
23 | * |
||
24 | * @return object Defitions |
||
25 | */ |
||
26 | public function get_definitions() { |
||
29 | |||
30 | |||
31 | /** |
||
32 | * Set the plugin definitions. |
||
33 | * |
||
34 | * @param object $definitions Information about the plugin |
||
35 | * @return object $this |
||
36 | */ |
||
37 | public function set_definitions( $definitions ) { |
||
43 | |||
44 | |||
45 | /** |
||
46 | * Register hook function. |
||
47 | * |
||
48 | * @param object $provider Hook provider. |
||
49 | * @return object $this |
||
50 | */ |
||
51 | public function register_hooks( $provider ) { |
||
61 | |||
62 | /** |
||
63 | * Load the textdomain for this plugin if translation is available |
||
64 | * |
||
65 | * @see load_plugin_textdomain |
||
66 | */ |
||
67 | public function load_textdomain() { |
||
70 | |||
71 | } |
||
72 |