Horde_Registry::hasView PHP Method

hasView() public method

Does the given application have the queried view?
public hasView ( integer $view, string $app = null ) : boolean
$view integer The view type (VIEW_* constant).
$app string The application to check (defaults to current app).
return boolean True if the view is available in the application.
    public function hasView($view, $app = null)
    {
        switch ($view) {
            case self::VIEW_BASIC:
                // For now, consider all apps to have BASIC view.
                return true;
            case self::VIEW_DYNAMIC:
                return $this->hasFeature('dynamicView', $app);
            case self::VIEW_MINIMAL:
                return $this->hasFeature('minimalView', $app);
            case self::VIEW_SMARTMOBILE:
                return $this->hasFeature('smartmobileView', $app);
        }
    }