/**
  * 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');
 }
示例#2
0
文件: ImageColumn.php 项目: lohini/cf
 /**
  * @param string $caption column's textual caption
  */
 public function __construct($caption = NULL)
 {
     throw new \Nette\NotImplementedException('Class was not implemented yet.');
     parent::__construct($caption);
 }
示例#3
0
文件: DateColumn.php 项目: lohini/cf
 /**
  * @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);
 }
示例#4
0
 /**
  * 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;
 }