예제 #1
0
 /**
  * @return string
  */
 public function getContent()
 {
     if ($this->options) {
         return parent::getContent();
     }
     $this->labelHtmlOptions['class'] = (isset($this->labelHtmlOptions['class']) ? $this->labelHtmlOptions['class'] . ' ' : '') . $this->labelClass;
     return $this->getInput() . $this->getHTMLError();
 }
예제 #2
0
 public function getValue()
 {
     $parent = parent::getValue();
     return $parent ? $parent : date('Y-m-d', strtotime('-' . $this->defaulAge . ' years'));
 }
예제 #3
0
 /**
  * Overwrite field getContent to add hints
  * @return string
  */
 public function getContent()
 {
     return parent::getContent() . $this->getHint() . $this->getPreview();
 }
예제 #4
0
 public function getValue()
 {
     return parent::getValue();
 }