From dd87433f82f3207e3581b5ba9b174090312aa633 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emmanuel=20Beno=C3=AEt?= Date: Sun, 5 Feb 2012 17:49:54 +0100 Subject: [PATCH] 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. --- includes/loader.inc.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/includes/loader.inc.php b/includes/loader.inc.php index ce3b866..c82a15c 100644 --- a/includes/loader.inc.php +++ b/includes/loader.inc.php @@ -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 )