Class Loader
	
	
Handles the loading of various files and objects
	 
	
		Final
		
		
		Package: minPHP\
lib
		Located at lib/loader.php
	
 
		Methods summary
		
		
			| 
				 protected 
				
				
				 | 
			#
			__construct( )
				
Protected constructor to prevent instance creation 
				
Protected constructor to prevent instance creation | 
		
			| 
				 public static
				
				
				 | 
			#
			loadModels( object & $parent, array $models )
				
Loads models, which may or may not exist within a plugin of the same name.
First looks in the plugin directory, if no match is found, looks in the models
directory. 
				
Loads models, which may or may not exist within a plugin of the same name.
First looks in the plugin directory, if no match is found, looks in the models
directory. Parameters
						$parentobject$parent The object to which to attach the given models
$modelsarray$models An array of models to load and initialize
Throws | 
		
			| 
				 public static
				
				
				 | 
			#
			loadComponents( object & $parent, array $components )
				
Loads the given components, attaching them to the given parent object. 
				
Loads the given components, attaching them to the given parent object. Parameters
						$parentobject$parent The parent to which to attach the given components
$componentsarray$components An array of components and [optionally] their parameters
 | 
		
			| 
				 public static
				
				
				 | 
			#
			loadHelpers( object & $parent, array $helpers )
				
Loads the given helpers, attaching them to the given parent object. 
				
Loads the given helpers, attaching them to the given parent object. Parameters
						$parentobject$parent The parent to which to attach the given helpers
$helpersarray$helpers An array of helpers and [optionally] their parameters
 | 
		
			| 
				 public static
				string
				
				 | 
			#
			toCamelCase( string $str )
				
Convert a string to "CamelCase" from "file_case" 
				
Convert a string to "CamelCase" from "file_case" Parameters
						$strstring$str the string to convert
Returns
						stringthe converted string
 
 | 
		
			| 
				 public static
				string
				
				 | 
			#
			fromCamelCase( string $str )
				
Convert a string to "file_case" from "CamelCase". 
				
Convert a string to "file_case" from "CamelCase". Parameters
						$strstring$str the string to convert
Returns
						stringthe converted string
 
 | 
		
			| 
				 public static
				boolean
				
				 | 
			#
			load( string $file )
				
Attempts to include the given file, if it exists. 
				
Attempts to include the given file, if it exists. Parameters
						$filestring$file The file to include
Returns
						booleanReturns true if the file exists and could be included, false otherwise
 
 | 
		
		Magic methods summary