protected static function override(&$class)
    {
        $map = gplcart_config_get(GC_FILE_CONFIG_COMPILED_OVERRIDE);

        if (isset($map[$class])) {
            $override = end($map[$class]);
            $class = $override;
        }

        return $class;
    }
protected static function override(&$class)
    {
        $map = gplcart_config_get(GC_FILE_CONFIG_COMPILED_OVERRIDE);

        if (isset($map[$class])) {
            $override = end($map[$class]);
            $class = $override;
        }

        return $class;
    }
protected static function override ( & $ class ) { $ map = gplcart_config_get ( GC_FILE_CONFIG_COMPILED_OVERRIDE ) ; if ( isset ( $ map [ $ class ] ) ) { $ override = end ( $ map [ $ class ] ) ; $ class = $ override ; } return $ class ; }
Override a class namespace
@param string $class
@return string
Override a class namespace