public function options() {
        $result = array();
        foreach ($this->items as $itemid => $item) {
            $result[$itemid] = $item->get_name();
        }
        return $result;
    }
public function options() {
        $result = array();
        foreach ($this->items as $itemid => $item) {
            $result[$itemid] = $item->get_name();
        }
        return $result;
    }
public function options ( ) { $ result = array ( ) ; foreach ( $ this -> items as $ itemid => $ item ) { $ result [ $ itemid ] = $ item -> get_name ( ) ; } return $ result ; }
Convert the list of items to a list of options.

@return array
Convert the list of items to a list of options .