public function getOptions($key = null)
    {
        if ($key == null) {
            return $this->options;
        } else {
            return $this->options[$key];
        }
    }
public function getOptions($key = null)
    {
        if ($key == null) {
            return $this->options;
        } else {
            return $this->options[$key];
        }
    }
public function getOptions ( $ key = null ) { if ( $ key == null ) { return $ this -> options ; } else { return $ this -> options [ $ key ] ; } }
Returns current options for a matched controller

@param string $key
@return array
Returns current options for a matched controller