1 | <?php |
||
7 | class Manifest_Handler { |
||
8 | |||
9 | /** |
||
10 | * An array of the active plugin paths we want to search. |
||
11 | * |
||
12 | * @var array |
||
13 | */ |
||
14 | private $active_plugin_paths; |
||
15 | |||
16 | /** |
||
17 | * The Version_Selector object. |
||
18 | * |
||
19 | * @var Version_Selector |
||
20 | */ |
||
21 | private $version_selector; |
||
22 | |||
23 | /** |
||
24 | * The constructor. |
||
25 | * |
||
26 | * @param array $active_plugin_paths An array of the active plugin paths we want to search. |
||
27 | * @param Version_Selector $version_selector The Version_Selector object. |
||
28 | */ |
||
29 | public function __construct( $active_plugin_paths, $version_selector ) { |
||
33 | |||
34 | /** |
||
35 | * Registers all of the paths in a given manifest. |
||
36 | * |
||
37 | * @param string $manifest_path The path that we're loading the manifest from in each plugin. |
||
38 | * @param array $path_map The path map to add the contents of the manifests to. |
||
39 | * |
||
40 | * @return array $path_map The path map we've built using the manifests in each plugin. |
||
41 | */ |
||
42 | public function register_plugin_manifests( $manifest_path, &$path_map ) { |
||
56 | |||
57 | /** |
||
58 | * Registers a plugin's manifest file with the path map. |
||
59 | * |
||
60 | * @param string $manifest_path The absolute path to the manifest that we're loading. |
||
61 | * @param array $path_map The path map to add the contents of the manifest to. |
||
62 | */ |
||
63 | protected function register_manifest( $manifest_path, &$path_map ) { |
||
77 | |||
78 | /** |
||
79 | * Registers an entry from the manifest in the path map. |
||
80 | * |
||
81 | * @param string $key The identifier for the entry we're registering. |
||
82 | * @param array $data The data for the entry we're registering. |
||
83 | * @param array $path_map The path map to add the contents of the manifest to. |
||
84 | */ |
||
85 | protected function register_record( $key, $data, &$path_map ) { |
||
99 | } |
||
100 |