46 public function start( $sClass = null, $sFunction = null, $aParams = null, $aViewsChain = null )
82 if ( $oConfig->hasActiveViewsChain() ) {
84 $oConfig->dropLastActiveView();
88 $oSmarty->assign(
'oView', $oConfig->getActiveView() );
105 $aActiveViewsNames = $oConfig->getActiveViewsNames();
106 $aActiveViewsNames = array_map(
"strtolower", $aActiveViewsNames );
109 if ( is_array($aViewsChain) && !empty($aViewsChain) ) {
111 foreach ( $aViewsChain as $sParentClassName ) {
112 if ( $sParentClassName != $sClass && !in_array( strtolower($sParentClassName), $aActiveViewsNames ) ) {
114 if ( strtolower($sParentClassName) ==
'oxubase' ) {
115 $oViewObject =
oxNew(
'oxubase' );
116 $oConfig->setActiveView( $oViewObject );
118 $oViewObject =
oxNew( $sParentClassName );
119 $oViewObject->setClassName( $sParentClassName );
120 $oConfig->setActiveView( $oViewObject );
129 if ( $aParams[
'oxwtemplate'] ) {
130 $oWidgetViewObject->setTemplateName( $aParams[
'oxwtemplate'] );
133 return $oWidgetViewObject;