/** * * @param string $menu * @param int $order * @return BOL_MenuItem */ public function createEmptyItem($menu, $order) { $menuItem = new BOL_MenuItem(); $documentKey = UTIL_HtmlTag::generateAutoId('mobile_page'); $menuItem->setDocumentKey($documentKey); $menuItem->setPrefix(self::MENU_PREFIX); $menuItem->setKey($documentKey); $menuItem->setType($menu); $menuItem->setOrder($order); $this->navigationService->saveMenuItem($menuItem); $document = new BOL_Document(); $document->isStatic = true; $document->isMobile = true; $document->setKey($menuItem->getKey()); $document->setUri($menuItem->getKey()); $this->navigationService->saveDocument($document); $document->setUri("cp-" . $document->getId()); $this->navigationService->saveDocument($document); $this->editItem($menuItem, array(self::SETTING_LABEL => OW::getLanguage()->text("mobile", "admin_nav_default_menu_name"), self::SETTING_TITLE => OW::getLanguage()->text("mobile", "admin_nav_default_page_title"), self::SETTING_CONTENT => OW::getLanguage()->text("mobile", "admin_nav_default_page_content"), self::SETTING_VISIBLE_FOR => 3, self::SETTING_TYPE => "local", self::SETTING_URL => null)); return $menuItem; }