pictcode / lib / Cake / Console / Templates / default / classes / fixture.ctp @ 635eef61
履歴 | 表示 | アノテート | ダウンロード (1.316 KB)
| 1 |
<?php |
|---|---|
| 2 |
/** |
| 3 |
* Fixture Template file |
| 4 |
* |
| 5 |
* Fixture Template used when baking fixtures with bake |
| 6 |
* |
| 7 |
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org) |
| 8 |
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) |
| 9 |
* |
| 10 |
* Licensed under The MIT License |
| 11 |
* For full copyright and license information, please see the LICENSE.txt |
| 12 |
* Redistributions of files must retain the above copyright notice. |
| 13 |
* |
| 14 |
* @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) |
| 15 |
* @link http://cakephp.org CakePHP(tm) Project |
| 16 |
* @package Cake.Console.Templates.default.classes |
| 17 |
* @since CakePHP(tm) v 1.3 |
| 18 |
* @license http://www.opensource.org/licenses/mit-license.php MIT License |
| 19 |
*/ |
| 20 |
|
| 21 |
echo "<?php\n"; |
| 22 |
?> |
| 23 |
/** |
| 24 |
* <?php echo $model; ?> Fixture |
| 25 |
*/ |
| 26 |
class <?php echo $model; ?>Fixture extends CakeTestFixture {
|
| 27 |
|
| 28 |
<?php if ($table): ?> |
| 29 |
/** |
| 30 |
* Table name |
| 31 |
* |
| 32 |
* @var string |
| 33 |
*/ |
| 34 |
public $table = '<?php echo $table; ?>'; |
| 35 |
|
| 36 |
<?php endif; ?> |
| 37 |
<?php if ($import): ?> |
| 38 |
/** |
| 39 |
* Import |
| 40 |
* |
| 41 |
* @var array |
| 42 |
*/ |
| 43 |
public $import = <?php echo $import; ?>; |
| 44 |
|
| 45 |
<?php endif; ?> |
| 46 |
<?php if ($schema): ?> |
| 47 |
/** |
| 48 |
* Fields |
| 49 |
* |
| 50 |
* @var array |
| 51 |
*/ |
| 52 |
public $fields = <?php echo $schema; ?>; |
| 53 |
|
| 54 |
<?php endif; ?> |
| 55 |
<?php if ($records): ?> |
| 56 |
/** |
| 57 |
* Records |
| 58 |
* |
| 59 |
* @var array |
| 60 |
*/ |
| 61 |
public $records = <?php echo $records; ?>; |
| 62 |
|
| 63 |
<?php endif; ?> |
| 64 |
} |