コード例 #1
0
 /**
  * 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));
 }
コード例 #2
0
ファイル: Column.php プロジェクト: ketheriel/ETVA
 public function isDefaultSqlType(PropelPlatformInterface $platform = null)
 {
     if (null === $this->domain || null === $this->domain->getSqlType() || null === $platform) {
         return true;
     }
     $defaultSqlType = $platform->getDomainForType($this->getType())->getSqlType();
     if ($defaultSqlType == $this->getDomain()->getSqlType()) {
         return true;
     }
     return false;
 }
コード例 #3
0
ファイル: Column.php プロジェクト: rubensayshi/propelsandbox
 /**
  * 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);
 }