/**
  * Sets default value for control and remake subtree of components
  * @param mixed
  */
 public function setDefaultValue($value)
 {
     if (!$this->hasEmptyValue() && $this->hasAnyParentEmptyValue()) {
         throw new LogicException("Cant set value of dependent component when parent have no value ! (Control: '{$this->name}')");
     }
     parent::setDefaultValue($value);
     $this->refresh(false);
     return $this;
 }
示例#2
0
 public function setDefaultValue($value)
 {
     $form = $this->getForm(FALSE);
     if ($form) {
         $this->refresh($form);
     }
     parent::setDefaultValue($value);
     return $this;
 }