Exemple #1
0
 /**
  * Returns SQL types string of single type.
  *
  * @param string $type SQL type.
  * @param integer $length Length of the SQL types string.
  *
  * @return string
  * @throws DBFieldTypeException If invalid type passed.
  */
 public static function sqlSingleTypeString($type, $length)
 {
     $type = DBField::castType($type);
     $typesString = "";
     while ($length > 0) {
         $typesString .= $type;
         $length--;
     }
     return $typesString;
 }