Beispiel #1
0
 /**
  * Returns view instance.
  *
  * @return View_Interface
  * @todo   Think about registerView
  */
 public function getView()
 {
     if (!$this->view) {
         /*
         $data = new Deepelopment_EventData(
             array('class' => 'View_HTML')
         );
         if (!$this->_skip) {
             $this->_evt->fire('bebeetle_on_get_view', $data);
         }
         $this->_view = new $data->class($this->_settings);
         */
         $this->view = new View_HTML($this->settings);
         /*
         if (!($this->_view instanceof View_Interface)){
             throw new Exception(
                 $data->class .
                     " must implement View_Interface interface",
                 Exception::INVALID_CLASS_INTERFACE
             );
         }
         */
         $this->view->setTab($this->tab);
     }
     return $this->view;
 }