コード例 #1
0
ファイル: elementlist.php プロジェクト: romuland/khparts
 /**
  * this really does get just the default value (as defined in the element's settings)
  * @return unknown_type
  */
 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;
 }