[ Index ]
 

Code source de Symfony 1.0.0

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/lib/vendor/propel-generator/templates/sql/base/mssql/ -> columns.tpl (source)

   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 } ?>


Généré le : Fri Mar 16 22:42:14 2007 par Balluche grâce à PHPXref 0.7