public function loadFile($path)
    {
        $result = false;

        /*
         * Don't re-include files and stat the file if it exists
         * realpath is needed to resolve symbolic links
         */
        if (!in_array(realpath($path), get_included_files()) && file_exists($path)) {
            $mask = E_ALL ^ E_WARNING;
            if (defined('E_DEPRECATED')) {
                $mask = $mask ^ E_DEPRECATED;
            }

            $old = error_reporting($mask);
            $included = include $path;
            error_reporting($old);

            if ($included) {
                $result = true;
            }
        }

        return $result;
    }
public function loadFile($path)
    {
        $result = false;

        /*
         * Don't re-include files and stat the file if it exists
         * realpath is needed to resolve symbolic links
         */
        if (!in_array(realpath($path), get_included_files()) && file_exists($path)) {
            $mask = E_ALL ^ E_WARNING;
            if (defined('E_DEPRECATED')) {
                $mask = $mask ^ E_DEPRECATED;
            }

            $old = error_reporting($mask);
            $included = include $path;
            error_reporting($old);

            if ($included) {
                $result = true;
            }
        }

        return $result;
    }
public function loadFile ( $ path ) { $ result = false ; /*
         * Don't re-include files and stat the file if it exists
         * realpath is needed to resolve symbolic links
         */ if ( ! in_array ( realpath ( $ path ) , get_included_files ( ) ) && file_exists ( $ path ) ) { $ mask = E_ALL ^ E_WARNING ; if ( defined ( 'E_DEPRECATED' ) ) { $ mask = $ mask ^ E_DEPRECATED ; } $ old = error_reporting ( $ mask ) ; $ included = include $ path ; error_reporting ( $ old ) ; if ( $ included ) { $ result = true ; } } return $ result ; }
Load a class based on a path

@param string	The file path
@return boolean  Returns TRUE on success throws exception on failure
Load a class based on a path