[ Index ] |
|
Code source de Symfony 1.0.0 |
1 2 /* ---------------------------------------------------------------------- */ 3 /* <?php echo $table->getName() ?> */ 4 /* ---------------------------------------------------------------------- */ 5 6 <?php echo $generator->parse("$basepath/drop.tpl"); ?> 7 CREATE TABLE <?php echo $table->getName()?> 8 ( 9 <?php 10 11 $cols = $generator->parse("$basepath/columns.tpl"); 12 $pk = $generator->parse("$basepath/primarykey.tpl"); 13 14 $unique = $generator->parse("$basepath/unique.tpl"); 15 16 if (empty($pk) && empty($unique)) { 17 echo preg_replace('/[ ,]+[\s]*$/', '', $cols); 18 } else { 19 echo $cols; 20 } 21 22 if (!empty($pk) && empty($unique)) { 23 echo preg_replace('/[ ,]+[\s]*$/', '', $pk); 24 } else { 25 echo $pk; 26 } 27 28 if (!empty($unique)) { 29 echo preg_replace('/[ ,]+[\s]*$/', '', $unique); 30 } 31 ?> 32 ); 33 <?php 34 $index = $generator->parse("$basepath/index.tpl"); 35 if (!empty($index)) { 36 echo $index; 37 } 38 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Fri Mar 16 22:42:14 2007 | par Balluche grâce à PHPXref 0.7 |