Exemplo n.º 1
0
 public static function isValidView($type)
 {
     return Oops_Server_View::_getViewClass($type) !== false ? true : false;
 }
Exemplo n.º 2
0
 /**
  * Output processing class instantiation (view or presentation factory)
  * Uses $this->_extension (from ParseURI) to choose a view class.
  */
 protected function _initView()
 {
     $this->_view = Oops_Server_View::getInstance($this->_extension);
     if (!is_object($this->_view)) {
         // suggested view is not available
         $this->_response->setCode(415);
     }
 }