Пример #1
0
 /**
  * Adjust the standard full name, depending on the state of multiselect and expanded
  * @return string
  */
 public function getFullName()
 {
     // get the normal name
     $fullName = parent::getFullName();
     // if the control is a multiselect, non expanded control, then we need to add something
     $multiselect = $this->get('multiselect', false);
     $expanded = $this->get('expanded', false);
     if ($multiselect && !$expanded) {
         $fullName .= '[]';
     }
     return $fullName;
 }