Context/SelectContext.php
private function makeOptions(array $result)
    {
        $options = (null !== $this->options['default_option']) ? [0 => $this->options['default_option']] : [];
        
        foreach ($result as $row) {
            $this->makeOption($row, $options);
        }
        
        return $options;
    }
private function makeOptions(array $result)
    {
        $options = (null !== $this->options['default_option']) ? [0 => $this->options['default_option']] : [];
        
        foreach ($result as $row) {
            $this->makeOption($row, $options);
        }
        
        return $options;
    }
private function makeOptions ( array $ result ) { $ options = ( null !== $ this -> options [ 'default_option' ] ) ? [ 0 => $ this -> options [ 'default_option' ] ] : [ ] ; foreach ( $ result as $ row ) { $ this -> makeOption ( $ row , $ options ) ; } return $ options ; }
Processes dataset rows as select options

@param array $result

@return array
Processes dataset rows as select options