public function getOverrideMap()
    {
        gplcart_static_clear();

        $map = array();

        foreach ($this->module->getEnabled() as $module) {

            $directory = GC_DIR_MODULE . "/{$module['id']}/override/classes";

            if (!is_readable($directory)) {
                continue;
            }

            foreach ($this->scanOverrideFiles($directory) as $file) {
                $original = str_replace('/', '\\', str_replace($directory . '/', '', preg_replace('/Override$/', '', $file)));
                $override = str_replace('/', '\\', str_replace(GC_DIR_SYSTEM . '/', '', $file));
                $map["gplcart\\$original"][$module['id']] = "gplcart\\$override";
            }
        }

        return $map;
    }
public function getOverrideMap()
    {
        gplcart_static_clear();

        $map = array();

        foreach ($this->module->getEnabled() as $module) {

            $directory = GC_DIR_MODULE . "/{$module['id']}/override/classes";

            if (!is_readable($directory)) {
                continue;
            }

            foreach ($this->scanOverrideFiles($directory) as $file) {
                $original = str_replace('/', '\\', str_replace($directory . '/', '', preg_replace('/Override$/', '', $file)));
                $override = str_replace('/', '\\', str_replace(GC_DIR_SYSTEM . '/', '', $file));
                $map["gplcart\\$original"][$module['id']] = "gplcart\\$override";
            }
        }

        return $map;
    }
public function getOverrideMap ( ) { gplcart_static_clear ( ) ; $ map = array ( ) ; foreach ( $ this -> module -> getEnabled ( ) as $ module ) { $ directory = GC_DIR_MODULE . "/{$module['id']}/override/classes" ; if ( ! is_readable ( $ directory ) ) { continue ; } foreach ( $ this -> scanOverrideFiles ( $ directory ) as $ file ) { $ original = str_replace ( '/' , '\\' , str_replace ( $ directory . '/' , '' , preg_replace ( '/Override$/' , '' , $ file ) ) ) ; $ override = str_replace ( '/' , '\\' , str_replace ( GC_DIR_SYSTEM . '/' , '' , $ file ) ) ; $ map [ "gplcart\\$original" ] [ $ module [ 'id' ] ] = "gplcart\\$override" ; } } return $ map ; }
Returns an array of class name spaces to be overridden
@return array
Returns an array of class name spaces to be overridden