Ejemplo n.º 1
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;
     $this->getHeaderPrototype()->style('width: 80px');
 }
Ejemplo n.º 2
0
 /**
  * @param string $caption column's textual caption
  */
 public function __construct($caption = NULL)
 {
     throw new \Nette\NotImplementedException('Class was not implemented yet.');
     parent::__construct($caption);
 }
Ejemplo n.º 3
0
 /**
  * @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);
 }
Ejemplo n.º 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;
 }