1 | <?php |
||
19 | class Kirki_Autoload { |
||
20 | |||
21 | /** |
||
22 | * The transient name. |
||
23 | * |
||
24 | * @access private |
||
25 | * @since 3.0.10 |
||
26 | * @var string |
||
27 | */ |
||
28 | private $transient_name = 'kirki_autoload_paths'; |
||
29 | |||
30 | /** |
||
31 | * Cached paths. |
||
32 | * |
||
33 | * @access private |
||
34 | * @since 3.0.10 |
||
35 | * @var array |
||
36 | */ |
||
37 | private $cached_paths = array(); |
||
38 | |||
39 | /** |
||
40 | * Class constructor. |
||
41 | * |
||
42 | * @access public |
||
43 | * @since 3.0.10 |
||
44 | */ |
||
45 | public function __construct() { |
||
50 | |||
51 | /** |
||
52 | * The Kirki class autoloader. |
||
53 | * Finds the path to a class that we're requiring and includes the file. |
||
54 | * |
||
55 | * @access protected |
||
56 | * @since 3.0.10 |
||
57 | * @param string $class_name The name of the class we're trying to load. |
||
58 | */ |
||
59 | protected function autoload( $class_name ) { |
||
84 | |||
85 | /** |
||
86 | * Get an array of possible paths for the file. |
||
87 | * |
||
88 | * @access protected |
||
89 | * @since 3.0.10 |
||
90 | * @param string $class_name The name of the class we're trying to load. |
||
91 | * @return array |
||
92 | */ |
||
93 | protected function get_paths( $class_name ) { |
||
123 | } |
||
124 |