コード例 #1
0
ファイル: Char.php プロジェクト: rokite/windwalker
 /**
  * Class init.
  *
  * @param string $name
  * @param int    $length
  * @param bool   $allowNull
  * @param string $default
  * @param string $comment
  * @param array  $options
  */
 public function __construct($name = null, $length = 255, $allowNull = false, $default = null, $comment = '', $options = array())
 {
     $options['length'] = $length;
     parent::__construct($name, DataType::CHAR, Column::SIGNED, $allowNull, $default, $comment, $options);
 }
コード例 #2
0
ファイル: Primary.php プロジェクト: im286er/windwalker
 /**
  * Class init.
  *
  * @param string $name
  * @param string $comment
  * @param array  $options
  */
 public function __construct($name = null, $comment = '', $options = array())
 {
     $options['primary'] = true;
     parent::__construct($name, DataType::INTEGER, Column::UNSIGNED, Column::NOT_NULL, null, $comment, $options);
 }
コード例 #3
0
ファイル: Float.php プロジェクト: im286er/windwalker
 /**
  * Class init.
  *
  * @param string $name
  * @param string $length
  * @param bool   $signed
  * @param bool   $allowNull
  * @param string $default
  * @param string $comment
  * @param array  $options
  */
 public function __construct($name = null, $length = null, $signed = false, $allowNull = false, $default = null, $comment = '', $options = array())
 {
     $options['length'] = $length;
     parent::__construct($name, DataType::FLOAT, $signed, $allowNull, $default, $comment, $options);
 }
コード例 #4
0
ファイル: Longtext.php プロジェクト: im286er/windwalker
 /**
  * Class init.
  *
  * @param string $name
  * @param bool   $allowNull
  * @param string $default
  * @param string $comment
  * @param array  $options
  */
 public function __construct($name = null, $allowNull = false, $default = null, $comment = '', $options = array())
 {
     parent::__construct($name, DataType::LONGTEXT, Column::SIGNED, $allowNull, $default, $comment, $options);
 }
コード例 #5
0
ファイル: Datetime.php プロジェクト: im286er/windwalker
 /**
  * Class init.
  *
  * @param string $name
  * @param bool   $allowNull
  * @param string $default
  * @param string $comment
  * @param array  $options
  */
 public function __construct($name = null, $allowNull = false, $default = null, $comment = '', $options = array())
 {
     parent::__construct($name, DataType::DATETIME, true, $allowNull, $default, $comment, $options);
 }