@@ 80-95 (lines=16) @@ | ||
77 | /** |
|
78 | * Initializes the classmap. |
|
79 | */ |
|
80 | public function set_class_paths() { |
|
81 | $active_plugins = $this->plugins_handler->get_all_active_plugins(); |
|
82 | $plugins_paths = array_map( array( $this, 'create_classmap_path_array' ), $active_plugins ); |
|
83 | ||
84 | foreach ( $plugins_paths as $path ) { |
|
85 | if ( is_readable( $path ) ) { |
|
86 | $class_map = require $path; |
|
87 | ||
88 | if ( is_array( $class_map ) ) { |
|
89 | foreach ( $class_map as $class_name => $class_info ) { |
|
90 | $this->enqueue_package_class( $class_name, $class_info['version'], $class_info['path'] ); |
|
91 | } |
|
92 | } |
|
93 | } |
|
94 | } |
|
95 | } |
|
96 | } |
|
97 |
@@ 80-95 (lines=16) @@ | ||
77 | /** |
|
78 | * Initializes the filemap. |
|
79 | */ |
|
80 | public function set_file_paths() { |
|
81 | $active_plugins = $this->plugins_handler->get_all_active_plugins(); |
|
82 | $plugins_paths = array_map( array( $this, 'create_filemap_path_array' ), $active_plugins ); |
|
83 | ||
84 | foreach ( $plugins_paths as $path ) { |
|
85 | if ( is_readable( $path ) ) { |
|
86 | $file_map = require $path; |
|
87 | ||
88 | if ( is_array( $file_map ) ) { |
|
89 | foreach ( $file_map as $file_identifier => $file_data ) { |
|
90 | $this->enqueue_package_file( $file_identifier, $file_data['version'], $file_data['path'] ); |
|
91 | } |
|
92 | } |
|
93 | } |
|
94 | } |
|
95 | } |
|
96 | ||
97 | /** |
|
98 | * Include latest version of all enqueued files. |