[ Index ] |
|
Code source de Symfony 1.0.0 |
1 <?php 2 foreach ($table->getColumns() as $col) { 3 $type = $col->getDomain()->getSqlType(); 4 if ($type == "INT" || $type == "TEXT") { 5 $size = ""; 6 } else { 7 $size = $col->printSize(); 8 } 9 10 $default = $col->getDefaultSetting(); 11 $entry = $col->getName() . ' ' . $type . ' ' . $size . ' ' . $default . ' ' . $col->getNotNullString() . ' ' . $col->getAutoIncrementString(); 12 13 // collapse spaces 14 $entry = preg_replace('/[\s]+/', ' ', $entry); 15 16 // ' ,' -> ',' 17 $entry = preg_replace('/[\s]*,[\s]*/', ',', $entry); 18 ?> 19 <?php echo $entry ?>, 20 <?php } ?>
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 |