1 <?php
2
3 Yii::setPathOfAlias('gtc', dirname(__FILE__).DIRECTORY_SEPARATOR.'..');
4
5 class FullModelGenerator extends CCodeGenerator {
6 public $codeModel = 'gtc.fullModel.FullModelCode';
7
8 /**
9 * Returns the table names in an array.
10 * The array is used to build the autocomplete field.
11 * An '*' is appended to the end of the list to allow the generation
12 * of models for all tables.
13 * @return array the names of all tables in the schema, plus an '*'
14 */
15 protected function getTables($dbConnection) {
16 $tables = Yii::app()->{$dbConnection}->schema->tableNames;
17 $tables[] = '*';
18 return $tables;
19 }
20
21
22
23 }
24