1 | <?php |
||
9 | class Autoloader_Locator { |
||
10 | |||
11 | /** |
||
12 | * The object for comparing autoloader versions. |
||
13 | * |
||
14 | * @var Version_Selector |
||
15 | */ |
||
16 | private $version_selector; |
||
17 | |||
18 | /** |
||
19 | * The constructor. |
||
20 | * |
||
21 | * @param Version_Selector $version_selector The version selector object. |
||
22 | */ |
||
23 | public function __construct( $version_selector ) { |
||
26 | |||
27 | /** |
||
28 | * Finds the path to the plugin with the latest autoloader. |
||
29 | * |
||
30 | * @param array $plugin_paths An array of plugin paths. |
||
31 | * @param string $latest_version The latest version reference. |
||
32 | * |
||
33 | * @return string|null |
||
34 | */ |
||
35 | public function find_latest_autoloader( $plugin_paths, &$latest_version ) { |
||
50 | |||
51 | /** |
||
52 | * Gets the path to the autoloader. |
||
53 | * |
||
54 | * @param string $plugin_path The path to the plugin. |
||
55 | * |
||
56 | * @return string |
||
57 | */ |
||
58 | public function get_autoloader_path( $plugin_path ) { |
||
61 | |||
62 | /** |
||
63 | * Gets the version for the autoloader. |
||
64 | * |
||
65 | * @param string $plugin_path The path to the plugin. |
||
66 | * |
||
67 | * @return string|null |
||
68 | */ |
||
69 | public function get_autoloader_version( $plugin_path ) { |
||
82 | } |
||
83 |