Exemplo n.º 1
0
 /**
  * Return a comma delimited string listing the specified columns.
  *
  * @param             columns Either a list of <code>Column</code> objects, or
  * a list of <code>String</code> objects with column names.
  * @deprecated Use the Platform::getColumnListDDL() method instead
  */
 public static function makeList($columns, PlatformInterface $platform)
 {
     $list = array();
     foreach ($columns as $col) {
         if ($col instanceof Column) {
             $col = $col->getName();
         }
         $list[] = $platform->quoteIdentifier($col);
     }
     return implode(", ", $list);
 }