| 1 | <?php namespace EmailLog\Core\UI; |
||
| 10 | class UIManager { |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @var string Plugin filename. |
||
| 14 | */ |
||
| 15 | protected $plugin_file; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var array UI Component List. |
||
| 19 | */ |
||
| 20 | protected $components = array(); |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @var array Admin pages. |
||
| 24 | */ |
||
| 25 | protected $pages = array(); |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Initialize the plugin. |
||
| 29 | */ |
||
| 30 | 2 | public function __construct( $file ) { |
|
| 33 | |||
| 34 | /** |
||
| 35 | * Load all components and setup hooks. |
||
| 36 | */ |
||
| 37 | public function load() { |
||
| 49 | |||
| 50 | /** |
||
| 51 | * Initialize UI component Objects. |
||
| 52 | * |
||
| 53 | * This method may be overwritten in tests. |
||
| 54 | * |
||
| 55 | * @access protected |
||
| 56 | */ |
||
| 57 | protected function initialize_components() { |
||
| 60 | |||
| 61 | /** |
||
| 62 | * Initialize Admin page Objects. |
||
| 63 | * |
||
| 64 | * This method may be overwritten in tests. |
||
| 65 | * |
||
| 66 | * @access protected |
||
| 67 | */ |
||
| 68 | protected function initialize_pages() { |
||
| 72 | } |