public static function unprefixTable($table)
    {
        static $prefixTable = null;
        if (is_null($prefixTable)) {
            $prefixTable = Config::getInstance()->database['tables_prefix'];
        }
        if (empty($prefixTable)
            || strpos($table, $prefixTable) !== 0
        ) {
            return $table;
        }
        $count = 1;
        return str_replace($prefixTable, '', $table, $count);
    }
public static function unprefixTable($table)
    {
        static $prefixTable = null;
        if (is_null($prefixTable)) {
            $prefixTable = Config::getInstance()->database['tables_prefix'];
        }
        if (empty($prefixTable)
            || strpos($table, $prefixTable) !== 0
        ) {
            return $table;
        }
        $count = 1;
        return str_replace($prefixTable, '', $table, $count);
    }
public static function unprefixTable ( $ table ) { static $ prefixTable = null ; if ( is_null ( $ prefixTable ) ) { $ prefixTable = Config :: getInstance ( ) -> database [ 'tables_prefix' ] ; } if ( empty ( $ prefixTable ) || strpos ( $ table , $ prefixTable ) !== 0 ) { return $ table ; } $ count = 1 ; return str_replace ( $ prefixTable , '' , $ table , $ count ) ; }
Removes the prefix from a table name and returns the result.

The table prefix is determined by the `[database] tables_prefix` INI config
option.

@param string $table The prefixed table name, eg "piwik-production_log_visit".
@return string The unprefixed table name, eg "log_visit".
@api
Removes the prefix from a table name and returns the result .