63 $this->Cache =
get_package(
'cache' ,
'last' , __FILE__ );
64 $this->CachedMultyFS =
get_package(
'cached_multy_fs' ,
'last' , __FILE__ );
65 $this->Database =
get_package(
'database' ,
'last' , __FILE__ );
66 $this->DatabaseAlgorithms =
get_package(
'database::database_algorithms' ,
'last' , __FILE__ );
67 $this->MenuAccess =
get_package(
'menu::menu_access' ,
'last' , __FILE__ );
68 $this->Security =
get_package(
'security' ,
'last' , __FILE__ );
110 $MenuName = $Options->get_setting(
'menu_name' );
111 $DataName =
"menu_$MenuName";
112 $this->Output = $this->Cache->get_data( $DataName );
114 if( $this->Output ===
false )
116 $this->Output = $this->CachedMultyFS->get_template( __FILE__ ,
'menu_header.tpl' );
117 $Result = $this->MenuAccess->get_menu_items( $MenuName );
118 foreach( $Result as $r )
120 $this->Output .=
get_field( $r ,
'href' );
122 $this->Output .= $this->CachedMultyFS->get_template( __FILE__ ,
'menu_footer.tpl' );
123 $this->Cache->add_data( $DataName , $this->Output );
126 catch( Exception $e )
154 $ContextSet =
get_package(
'gui::context_set' ,
'last' , __FILE__ );
156 $ContextSet->add_context( dirname( __FILE__ ).
'/conf/show_menu' );
158 if( $ContextSet->execute( $Options , $this ) )
return( $this->Output );
160 return( $this->Output );
162 catch( Exception $e )