private function getOptions(array $list)
    {
        // To be returned
        $elements = array();

        foreach ($list as $value => $text) {
            array_push($elements, $this->createOptionNode($value, $text));
        }

        return $elements;
    }
private function getOptions(array $list)
    {
        // To be returned
        $elements = array();

        foreach ($list as $value => $text) {
            array_push($elements, $this->createOptionNode($value, $text));
        }

        return $elements;
    }
private function getOptions ( array $ list ) { // To be returned $ elements = array ( ) ; foreach ( $ list as $ value => $ text ) { array_push ( $ elements , $ this -> createOptionNode ( $ value , $ text ) ) ; } return $ elements ; }
Returns a collection of prepared option elements

@param array $list
@return array
Returns a collection of prepared option elements