示例#1
0
 public function setOptions($options)
 {
     parent::setOptions($options);
     if (isset($this->options['target_class'])) {
         $this->setTargetClass($this->options['target_class']);
     }
 }
示例#2
0
 /**
  * @return mixed
  */
 public function getListedValue()
 {
     $value = new \DateTime(parent::getListedValue());
     return $value->format($this->getFormat());
 }