Overview

Namespaces

  • None
  • Xmf
    • Database
    • Module
      • Helper
    • Template
  • Xoops
    • Auth
    • Core
      • Cache
      • Database
        • Logging
        • Schema
      • Exception
      • Handler
        • Scheme
      • Kernel
        • Dtype
        • Handlers
        • Model
      • Lists
      • Locale
        • Punic
      • Service
        • Contract
      • Session
      • Text
        • Sanitizer
          • Extensions
      • Theme
        • Plugins
    • Form
    • Html
    • Locale
    • Module
      • Helper
      • Plugin

Classes

  • ExportVisitor
  • ImportSchema
  • PrefixStripper
  • RemovePrefixes
  • Overview
  • Namespace
  • Class
  • Tree

Class RemovePrefixes

RemovePrefixes is a Schema Visitor that builds an new Schema object without the XOOPS_DB_PREFIX. A table list can be optionally applied to filter the Schema.

This depends on PrefixStripper to do a lot of the grunt work.

Xoops\Core\Database\Schema\RemovePrefixes implements Doctrine\DBAL\Schema\Visitor\Visitor
Namespace: Xoops\Core\Database\Schema
Package: Xoops\Core
Category: Xoops\Core\Database\Schema\RemovePrefixes
Copyright: 2013 XOOPS Project (http://xoops.org)
License: GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
Author: Richard Griffith richard@geekwright.com
Version: Release: 2.6
Since: 2.6.0
Link: http://xoops.org
Located at oops_lib/Xoops/Core/Database/Schema/RemovePrefixes.php
Methods summary
public
# __construct( )

Constructor

Constructor

public Doctrine\DBAL\Schema\Schema
# getNewSchema( )

return the generated Schema

return the generated Schema

Returns

Doctrine\DBAL\Schema\Schema
the generated schema object
public
# setTableFilter( array $tableList )

set list of tables to limit schema

set list of tables to limit schema

If no list is specified, all tables will be included

Parameters

$tableList
list of tables to allow
public
# acceptSchema( Doctrine\DBAL\Schema\Schema $schema )

Accept schema - not used in this context

Accept schema - not used in this context

Parameters

$schema
a schema object
public
# acceptTable( Doctrine\DBAL\Schema\Table $table )

Accept a table with all its dependencies.

Accept a table with all its dependencies.

Parameters

$table
a table object
public
# acceptColumn( Doctrine\DBAL\Schema\Table $table, Doctrine\DBAL\Schema\Column $column )

accept a column in the schema - not used in this context

accept a column in the schema - not used in this context

Parameters

$table
a table object to accept a column into
$column
a column object to be accepted
public
# acceptForeignKey( Doctrine\DBAL\Schema\Table $localTable, Doctrine\DBAL\Schema\ForeignKeyConstraint $fkConstraint )

Accept a foreign key in the schema - not used in this context

Accept a foreign key in the schema - not used in this context

Parameters

$localTable
local table to have foreign key
$fkConstraint
foreign key constraint
public
# acceptIndex( Doctrine\DBAL\Schema\Table $table, Doctrine\DBAL\Schema\Index $index )

Accept an Index - not used in this context

Accept an Index - not used in this context

Parameters

$table
indexed table
$index
index to accept
public
# acceptSequence( Doctrine\DBAL\Schema\Sequence $sequence )

Accept a sequence

Accept a sequence

Parameters

$sequence
sequence to accept
Properties summary
protected $newSchema
#
API documentation generated by ApiGen