Jak mam wywołać tą funkcję odpowiadającą za submenu?
/** * Displays a sub menu * @return string * @param int $iPageParent * @param int $iDepth */ public function listPagesSubMenu( $iPageParent, $iDepth = 1 ){ $content = null; foreach( $this->aPagesChildrens[$iPageParent] as $iElement => $iPage ){ $aParametersExt['sSubMenu'] = ( isset( $this->aPagesChildrens[$iPage] ) && ( ( isset( $this->aMenuParams['bExpanded'] ) || ( isset( $config['current_page_id'] ) && ( $iPage == $config['current_page_id'] || isset( $this->aPagesAllChildrens[$iPage][$config['current_page_id']] ) ) ) ) && $this->aMenuParams['iDepthLimit'] > $iDepth ) ? $this->listPagesSubMenu( $iPage, $iDepth + 1 ) : null ); $aParametersExt['iElement'] = $iElement; $content .= $this->aMenuParams['sFunctionView']( $this->Pages[$iPage], $aParametersExt ); } // end foreach return '<ul>TESTESTETESSTESTETESTETEST'.$content.'</ul>'; } } } // end function listPagesSubMenu