public function listing($key, $label)
    {
        $data = array();
        foreach ($this->fetch() as $entity) {
            $data[$entity->{$key}] = $entity->{$label};
        }
        return $data;
    }
public function listing($key, $label)
    {
        $data = array();
        foreach ($this->fetch() as $entity) {
            $data[$entity->{$key}] = $entity->{$label};
        }
        return $data;
    }
public function listing ( $ key , $ label ) { $ data = array ( ) ; foreach ( $ this -> fetch ( ) as $ entity ) { $ data [ $ entity -> { $ key } ] = $ entity -> { $ label } ; } return $ data ; }
Returns a custom listing based on the search
results.
@param  string $key
@param  string $label
@return array
Returns a custom listing based on the search results .