Exemplo n.º 1
0
 /**
  * (non-PHPdoc)
  * @see \Simplify\Form\Filter::onRender()
  */
 public function onRender(\Simplify\Form\Action $action)
 {
     $this->set('formatedSince', \Simplify\Form\DateTime::datetime($this->since));
     $this->set('formatedUntil', \Simplify\Form\DateTime::datetime($this->until));
     $this->set('sinceEnabled', $this->sinceEnabled());
     $this->set('untilEnabled', $this->untilEnabled());
     return parent::onRender($action);
 }
Exemplo n.º 2
0
 /**
  * (non-PHPdoc)
  *
  * @see \Simplify\Form\Element::getDisplayValue()
  */
 public function getDisplayValue(\Simplify\Form\Action $action, $data, $index)
 {
     $value = $this->getValue($data);
     return \Simplify\Form\DateTime::datetime($value['begin']) . ' - ' . \Simplify\Form\DateTime::datetime($value['end']);
 }
Exemplo n.º 3
0
 /**
  * (non-PHPdoc)
  * @see \Simplify\Form\Element::getDisplayValue()
  */
 public function getDisplayValue(\Simplify\Form\Action $action, $data, $index)
 {
     return \Simplify\Form\DateTime::datetime($this->getValue($data));
 }