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);
}
}