source/Application/Model/SelectList.php
public function setActiveSelectionByIndex($iIdx)
    {
        if (($aSelections = $this->getSelections())) {
            $iSelIdx = 0;
            foreach ($aSelections as $oSelection) {
                $oSelection->setActiveState($iSelIdx == $iIdx);
                if ($iSelIdx == $iIdx) {
                    $this->_oActiveSelection = $oSelection;
                }
                $iSelIdx++;
            }
        }
    }
public function setActiveSelectionByIndex($iIdx)
    {
        if (($aSelections = $this->getSelections())) {
            $iSelIdx = 0;
            foreach ($aSelections as $oSelection) {
                $oSelection->setActiveState($iSelIdx == $iIdx);
                if ($iSelIdx == $iIdx) {
                    $this->_oActiveSelection = $oSelection;
                }
                $iSelIdx++;
            }
        }
    }
public function setActiveSelectionByIndex ( $ iIdx ) { if ( ( $ aSelections = $ this -> getSelections ( ) ) ) { $ iSelIdx = 0 ; foreach ( $ aSelections as $ oSelection ) { $ oSelection -> setActiveState ( $ iSelIdx == $ iIdx ) ; if ( $ iSelIdx == $ iIdx ) { $ this -> _oActiveSelection = $ oSelection ; } $ iSelIdx ++ ; } } }
Activates given by index selection

@param int $iIdx selection index
Activates given by index selection