Пример #1
0
 /**
  * This really does get just the default value (as defined in the element's settings)
  *
  * @param   array  $data  Form data
  *
  * @return mixed
  */
 public function getDefaultValue($data = array())
 {
     $params = $this->getParams();
     $opts = $params->get('sub_options');
     if (!isset($this->default)) {
         if (isset($opts->sub_initial_selection)) {
             $this->default = $this->getSubInitialSelection();
         } else {
             $this->default = parent::getDefaultValue($data);
         }
     }
     return $this->default;
 }