System/Handlers/Loader/Source/Classes/Loader.php
/**
     * @todo add docementation
     * @param array $filesToLoad
     * @param boolean $createFileNameNode
     * @return boolean
     */
@todo add docementation
@param array $filesToLoad
@param boolean $createFileNameNode
@return boolean
@todo add docementation @param array $filesToLoad @param boolean $createFileNameNode @return boolean
private function loadActual(array $filesToLoad, $createFileNameNode){
        $tempFileResult = array();
        if(empty($filesToLoad)){
            return FALSE;
        }else{
            if($createFileNameNode){
                foreach($filesToLoad as $file){
                    $fileName = str_replace('.php','',array_pop(explode('/', trim($file,'/'))));
                    $tempFileResult[$fileName] = require $file;
                }
            }else{
                foreach($filesToLoad as $file){
                    $tempFileResult[] = require $file;
                }
            }
        }
        return $tempFileResult;
    }
private function loadActual ( array $ filesToLoad , $ createFileNameNode ) { $ tempFileResult = array ( ) ; if ( empty ( $ filesToLoad ) ) { return FALSE ; } else { if ( $ createFileNameNode ) { foreach ( $ filesToLoad as $ file ) { $ fileName = str_replace ( '.php' , '' , array_pop ( explode ( '/' , trim ( $ file , '/' ) ) ) ) ; $ tempFileResult [ $ fileName ] = require $ file ; } } else { foreach ( $ filesToLoad as $ file ) { $ tempFileResult [ ] = require $ file ; } } } return $ tempFileResult ; }
@todo add docementation
 @param array $filesToLoad
 @param boolean $createFileNameNode
 @return boolean
@todo add docementation @param array $filesToLoad @param boolean $createFileNameNode @return boolean