Internal loader function availability
One of the loader's internal methods has been renamed and made available. This allows components to be loaded from e.g. arrays directly.
This commit is contained in:
parent
29a026e71a
commit
dd87433f82
1 changed files with 5 additions and 5 deletions
|
@ -409,7 +409,7 @@ final class Loader
|
|||
return $cName;
|
||||
}
|
||||
|
||||
private static function creator( $type , $convert , $args )
|
||||
public static function DirectCreate( $type , $convert , $args )
|
||||
{
|
||||
$name = array_shift( $args );
|
||||
$cName = $convert ? Loader::convertName( $type , $name ) : $name;
|
||||
|
@ -466,22 +466,22 @@ final class Loader
|
|||
|
||||
public static function Create( )
|
||||
{
|
||||
return Loader::creator( 'extra' , false , func_get_args( ) );
|
||||
return Loader::DirectCreate( 'extra' , false , func_get_args( ) );
|
||||
}
|
||||
|
||||
public static function View( )
|
||||
{
|
||||
return Loader::creator( 'view' , true , func_get_args( ) );
|
||||
return Loader::DirectCreate( 'view' , true , func_get_args( ) );
|
||||
}
|
||||
|
||||
public static function Ctrl( )
|
||||
{
|
||||
return Loader::creator( 'ctrl' , true , func_get_args( ) );
|
||||
return Loader::DirectCreate( 'ctrl' , true , func_get_args( ) );
|
||||
}
|
||||
|
||||
public static function Page( )
|
||||
{
|
||||
return Loader::creator( 'page' , true , func_get_args( ) );
|
||||
return Loader::DirectCreate( 'page' , true , func_get_args( ) );
|
||||
}
|
||||
|
||||
public static function DAO( $name )
|
||||
|
|
Loading…
Reference in a new issue