XOOPS  2.6.0
RemovePrefixes.php
Go to the documentation of this file.
1 <?php
2 /*
3  You may not change or alter any portion of this comment or credits
4  of supporting developers from this source code or any supporting source code
5  which is considered copyrighted (c) material of the original comment or credit authors.
6 
7  This program is distributed in the hope that it will be useful,
8  but WITHOUT ANY WARRANTY; without even the implied warranty of
9  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10 */
11 
13 
21 
38 class RemovePrefixes implements Visitor
39 {
40 
41  protected $newSchema;
42 
46  public function __construct()
47  {
48  $this->newSchema = new PrefixStripper;
49  }
50 
56  public function getNewSchema()
57  {
58  return $this->newSchema;
59  }
60 
70  public function setTableFilter(array $tableList)
71  {
72  $this->newSchema->setTableFilter($tableList);
73  }
74 
82  public function acceptSchema(Schema $schema)
83  {
84 
85  }
86 
94  public function acceptTable(Table $table)
95  {
96  $this->newSchema->addTable($table);
97  }
98 
107  public function acceptColumn(Table $table, Column $column)
108  {
109 
110  }
111 
120  public function acceptForeignKey(Table $localTable, ForeignKeyConstraint $fkConstraint)
121  {
122 
123  }
124 
133  public function acceptIndex(Table $table, Index $index)
134  {
135 
136  }
137 
145  public function acceptSequence(Sequence $sequence)
146  {
147  $this->newSchema->addSequence($sequence);
148  }
149 }
$index
Definition: menu.php:41
acceptForeignKey(Table $localTable, ForeignKeyConstraint $fkConstraint)
acceptIndex(Table $table, Index $index)
acceptColumn(Table $table, Column $column)