/** * Date column constructor. * @param string column's textual caption * @param string date format supported by PHP strftime() * @return void */ public function __construct($caption = NULL, $format = '%x') { parent::__construct($caption); $this->format = $format; $this->getHeaderPrototype()->style('width: 80px'); }
/** * @param string $caption column's textual caption */ public function __construct($caption = NULL) { throw new \Nette\NotImplementedException('Class was not implemented yet.'); parent::__construct($caption); }
/** * @param string $caption column's textual caption * @param string $format date format supported by $func * @param string $func function to format date */ public function __construct($caption = NULL, $format = '%x', $func = 'strftime') { parent::__construct($caption); $this->format = $format; $this->func = \Nette\Utils\Callback::check($func); }
/** * Date column constructor. * @param string column's textual caption * @param string date format supported by PHP strftime() * @return void */ public function __construct($caption = NULL, $format = '%x') { parent::__construct($caption); $this->format = $format; }