예제 #1
0
파일: Int.php 프로젝트: nikolas/db_type
 public function __construct(DB_Type_Abstract_Base $type, $given)
 {
     parent::__construct($type, "output", "int32 value", $given, 0);
 }
예제 #2
0
파일: Range.php 프로젝트: nikolas/db_type
 public function __construct(DB_Type_Abstract_Base $type, $givenFrom, $givenTo)
 {
     parent::__construct($type, "output", "item `{$type->getKeyFrom()}` <= item `{$type->getKeyTo()}`", "{$givenFrom} > {$givenTo}", 0);
 }
예제 #3
0
파일: Date.php 프로젝트: nikolas/db_type
 public function __construct(DB_Type_Abstract_Base $type, $given)
 {
     parent::__construct($type, "output", "YY (or YYYY) or YY-MM or YY-MM-DD", $given, 0);
 }
예제 #4
0
파일: Length.php 프로젝트: nikolas/db_type
 public function __construct(DB_Type_Abstract_Base $type, $given)
 {
     parent::__construct($type, "output", "length within [{$type->getMin()}, {$type->getMax()}]", $given, 0);
 }
예제 #5
0
파일: Enum.php 프로젝트: nikolas/db_type
 public function __construct(DB_Type_Abstract_Base $type, $given)
 {
     $items = join(',', $type->getItems());
     parent::__construct($type, "output", "one of [{$items}]", $given, 0);
 }