private function setOptionsForSelect($aElements, $sDefaultValue, $featArray = null)
    {
        if (is_null($featArray)) {
            $featArray = [];
        }
        $sReturn  = [];
        $crtGroup = null;
        foreach ($aElements as $key => $value) {
            $aFH       = $this->setOptionGroupFooterHeader($featArray, $value, $crtGroup);
            $crtGroup  = $aFH['crtGroup'];
            $sReturn[] = $aFH['groupFooterHeader']
                . '<option value="' . $key . '"' . $this->setOptionSelected($key, $sDefaultValue)
                . $this->featureArraySimpleTranslated($featArray, 'styleForOption') . '>'
                . str_replace(['&', $crtGroup], ['&amp;', ''], $value) . '</option>';
        }
        $sReturn[] = $this->setOptionGroupEnd($crtGroup, $featArray);
        return $this->featureArraySimpleTranslated($featArray, 'include_null') . implode('', $sReturn);
    }
private function setOptionsForSelect($aElements, $sDefaultValue, $featArray = null)
    {
        if (is_null($featArray)) {
            $featArray = [];
        }
        $sReturn  = [];
        $crtGroup = null;
        foreach ($aElements as $key => $value) {
            $aFH       = $this->setOptionGroupFooterHeader($featArray, $value, $crtGroup);
            $crtGroup  = $aFH['crtGroup'];
            $sReturn[] = $aFH['groupFooterHeader']
                . '<option value="' . $key . '"' . $this->setOptionSelected($key, $sDefaultValue)
                . $this->featureArraySimpleTranslated($featArray, 'styleForOption') . '>'
                . str_replace(['&', $crtGroup], ['&amp;', ''], $value) . '</option>';
        }
        $sReturn[] = $this->setOptionGroupEnd($crtGroup, $featArray);
        return $this->featureArraySimpleTranslated($featArray, 'include_null') . implode('', $sReturn);
    }
private function setOptionsForSelect ( $ aElements , $ sDefaultValue , $ featArray = null ) { if ( is_null ( $ featArray ) ) { $ featArray = [ ] ; } $ sReturn = [ ] ; $ crtGroup = null ; foreach ( $ aElements as $ key => $ value ) { $ aFH = $ this -> setOptionGroupFooterHeader ( $ featArray , $ value , $ crtGroup ) ; $ crtGroup = $ aFH [ 'crtGroup' ] ; $ sReturn [ ] = $ aFH [ 'groupFooterHeader' ] . '<option value="' . $ key . '"' . $ this -> setOptionSelected ( $ key , $ sDefaultValue ) . $ this -> featureArraySimpleTranslated ( $ featArray , 'styleForOption' ) . '>' . str_replace ( [ '&' , $ crtGroup ] , [ '&amp;' , '' ] , $ value ) . '</option>' ; } $ sReturn [ ] = $ this -> setOptionGroupEnd ( $ crtGroup , $ featArray ) ; return $ this -> featureArraySimpleTranslated ( $ featArray , 'include_null' ) . implode ( '' , $ sReturn ) ; }
Creates all the child tags required to populate a SELECT tag

@param array $aElements
@param string|array $sDefaultValue
@param array $featArray
@return string
Creates all the child tags required to populate a SELECT tag