diff options
| author | Patrick Seeger <pseeger@ccwn.org> | 2012-04-13 23:11:05 +0200 |
|---|---|---|
| committer | Patrick Seeger <pseeger@ccwn.org> | 2012-04-13 23:11:05 +0200 |
| commit | 341cc4dd9c53ffbfb863e026dd58549c1082c7a7 (patch) | |
| tree | 1bbbed20313bafb9b063b6b4d894fe580d8b000f /framework/cli/views/shell/model/fixture.php | |
Diffstat (limited to 'framework/cli/views/shell/model/fixture.php')
| -rw-r--r-- | framework/cli/views/shell/model/fixture.php | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/framework/cli/views/shell/model/fixture.php b/framework/cli/views/shell/model/fixture.php new file mode 100644 index 0000000..a159585 --- /dev/null +++ b/framework/cli/views/shell/model/fixture.php @@ -0,0 +1,25 @@ +<?php +/** + * This is the template for generating the fixture file for a model class. + * The following variables are available in this template: + * - $table: the table schema + */ +?> +<?php echo "<?php\n"; ?> + +return array( + /* + 'sample1'=>array( +<?php foreach($table->columns as $name=>$column) { + if($table->sequenceName===null || $table->primaryKey!==$column->name) + echo "\t\t'$name' => '',\n"; +} ?> + ), + 'sample2'=>array( +<?php foreach($table->columns as $name=>$column) { + if($table->sequenceName===null || $table->primaryKey!==$column->name) + echo "\t\t'$name' => '',\n"; +} ?> + ), + */ +); |
