public static function subViewFactory($subview, $params = array())
 {
     list($module, $class) = explode(".", $subview);
     //print_r($module.' ' . $class);
     //owa_lib::moduleRequireOnce($module, $class);
     $subview = owa_lib::moduleFactory($subview, 'View', $params);
     $subview->is_subview = true;
     return $subview;
 }
Beispiel #2
0
 /**
  * Displays a View without user authentication. Takes array of data as input
  *
  * @param array $data
  * @deprecated 
  */
 public static function displayView($data, $params = array())
 {
     $view = owa_lib::moduleFactory($data['view'], 'View', $params);
     return $view->assembleView($data);
 }