/** * 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 DDLBuilder->getColumnList() method instead; this will be removed in 1.3 */ public static function makeList($columns, Platform $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 Platform $platform * @return PDOStatement */ private function getTableDataStmt($tableName, Platform $platform) { return $this->conn->query("SELECT * FROM " . $platform->quoteIdentifier($tableName)); }