Example #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, PropelPlatformInterface $platform)
 {
     $list = array();
     foreach ($columns as $col) {
         if ($col instanceof Column) {
             $col = $col->getName();
         }
         $list[] = $platform->quoteIdentifier($col);
     }
     return implode(", ", $list);
 }
 /**
  * Gets PDOStatement of query to fetch all data from a table.
  *
  * @param string                  $tableName
  * @param PropelPlatformInterface $platform
  *
  * @return PDOStatement
  */
 private function getTableDataStmt($tableName, PropelPlatformInterface $platform)
 {
     return $this->conn->query("SELECT * FROM " . $platform->quoteIdentifier($tableName));
 }