src/Loader.php
private function processLoad($path, $loadType = 'require_once')
    {
        $ans = false;
        if (file_exists($path)) {
            switch ($loadType) {
                default:
                case "require_once":
                    require_once($path);
                    $ans = true;
                    break;
                case "require":
                    require($path);
                    $ans = true;
                    break;
                case "include_once":
                    include_once($path);
                    $ans = true;
                    break;
                case "include":
                    include($path);
                    $ans = true;
                    break;
            }
        }
        return $ans;
    }
private function processLoad($path, $loadType = 'require_once')
    {
        $ans = false;
        if (file_exists($path)) {
            switch ($loadType) {
                default:
                case "require_once":
                    require_once($path);
                    $ans = true;
                    break;
                case "require":
                    require($path);
                    $ans = true;
                    break;
                case "include_once":
                    include_once($path);
                    $ans = true;
                    break;
                case "include":
                    include($path);
                    $ans = true;
                    break;
            }
        }
        return $ans;
    }
private function processLoad ( $ path , $ loadType = 'require_once' ) { $ ans = false ; if ( file_exists ( $ path ) ) { switch ( $ loadType ) { default : case "require_once" : require_once ( $ path ) ; $ ans = true ; break ; case "require" : require ( $ path ) ; $ ans = true ; break ; case "include_once" : include_once ( $ path ) ; $ ans = true ; break ; case "include" : include ( $ path ) ; $ ans = true ; break ; } } return $ ans ; }
@brief load file

@param string $path path to load
@param string $loadType switch of
- require_once
- require
- include_once
- include

@return bool
@brief load file