# Class AutoLoader

The AutoLoader class can be used to scan a directory and register any classes found in the PHP files there, recursively.

These classes will be registered for autoloading.

This class may be built on to use a JSON cache in the future.

Namespace: WPGMZA
Located at class.auto-loader.php

Methods summary
`public` | # `__construct( )` The AutoLoader constructor. The AutoLoader constructor.
`protected` | # `updateCache( )` Updates the JSON cache of classes Updates the JSON cache of classes
`public string` | # `getClassesInFile( string $file )` Gets the first class defined in the specified file Gets the first class defined in the specified file #### Parameters $file The file to scan for a class #### Returns string The fully qualified class, or NULL if none found NB: With thanks to netcoder - https://stackoverflow.com/questions/7153000/get-class-name-from-file
`public array` | # `getClassesInPathByFilename( string $path )` Gets all the classes in PHP files in the specified path, recursively Gets all the classes in PHP files in the specified path, recursively #### Parameters $path The path to scan #### Returns array An array of all the fully qualified
`public` | # `registerClassesInPath( string $path )` Recursively scans all PHP files in the given patch and registers any classes found. Recursively scans all PHP files in the given patch and registers any classes found. #### Parameters $path The path to scan

Properties summary
`protected` | $filenamesByClass | # ``