Exemplo n.º 1
0
 /**
  * @param string $type
  * @param CBitrixComponent $obMenuComponent
  * @return string
  */
 function __GetMenuString($type = "left", $obMenuComponent)
 {
     /** @var CMenuCustom*/
     global $BX_MENU_CUSTOM;
     $sReturn = "";
     if ($GLOBALS["APPLICATION"]->buffer_manual) {
         $arMenuCustom = $BX_MENU_CUSTOM->GetItems($type);
         if (is_array($arMenuCustom)) {
             $obMenuComponent->arResult = array_merge($obMenuComponent->arResult, $arMenuCustom);
         }
         ob_start();
         $obMenuComponent->IncludeComponentTemplate();
         $sReturn = ob_get_contents();
         ob_end_clean();
     }
     return $sReturn;
 }