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