/**
  * PageColumn constructor.
  *
  * @param int $sort
  * @param Date $type
  * @param string $table
  */
 public function __construct($sort, Date $type, $table = '')
 {
     if ($type->isMulti()) {
         throw new StructException('RevisionColumns can not be multi value types!');
     }
     parent::__construct($sort, $type, 0, true, $table);
 }
 /**
  * Return the editor to edit a single value
  *
  * @param string $name the form name where this has to be stored
  * @param string $rawvalue the current value
  * @return string html
  */
 public function valueEditor($name, $rawvalue)
 {
     if ($this->config['prefilltoday'] && !$rawvalue) {
         $rawvalue = date('Y-m-d H:i:s');
     }
     return parent::valueEditor($name, $rawvalue);
 }
 /**
  * @dataProvider validate_fail
  * @expectedException \dokuwiki\plugin\struct\meta\ValidationException
  */
 public function test_validation_fail($input)
 {
     $date = new Date();
     $date->validate($input);
 }