1 | <?php |
||
7 | class Manifest_Reader { |
||
8 | |||
9 | /** |
||
10 | * The Version_Selector object. |
||
11 | * |
||
12 | * @var Version_Selector |
||
13 | */ |
||
14 | private $version_selector; |
||
15 | |||
16 | /** |
||
17 | * The constructor. |
||
18 | * |
||
19 | * @param Version_Selector $version_selector The Version_Selector object. |
||
20 | */ |
||
21 | public function __construct( $version_selector ) { |
||
24 | |||
25 | /** |
||
26 | * Reads all of the manifests in the given plugin paths. |
||
27 | * |
||
28 | * @param array $plugin_paths The paths to the plugins we're loading the manifest in. |
||
29 | * @param string $manifest_path The path that we're loading the manifest from in each plugin. |
||
30 | * @param array $path_map The path map to add the contents of the manifests to. |
||
31 | * |
||
32 | * @return array $path_map The path map we've built using the manifests in each plugin. |
||
33 | */ |
||
34 | public function read_manifests( $plugin_paths, $manifest_path, &$path_map ) { |
||
48 | |||
49 | /** |
||
50 | * Registers a plugin's manifest file with the path map. |
||
51 | * |
||
52 | * @param string $manifest_path The absolute path to the manifest that we're loading. |
||
53 | * @param array $path_map The path map to add the contents of the manifest to. |
||
54 | */ |
||
55 | protected function register_manifest( $manifest_path, &$path_map ) { |
||
69 | |||
70 | /** |
||
71 | * Registers an entry from the manifest in the path map. |
||
72 | * |
||
73 | * @param string $key The identifier for the entry we're registering. |
||
74 | * @param array $data The data for the entry we're registering. |
||
75 | * @param array $path_map The path map to add the contents of the manifest to. |
||
76 | */ |
||
77 | protected function register_record( $key, $data, &$path_map ) { |
||
91 | } |
||
92 |