Class MenuAdminService

Description

Class used for administrating BIGACE "Menu" Items

  • version: $Id: MenuAdminService.php,v 1.10 2006/11/26 22:03:59 kpapst Exp $
  • copyright: Copyright (C) 2002-2006 Kevin Papst
  • author: Kevin Papst
  • license: GNU Public License
MasterItemType
   |
   --Itemtype
      |
      --ItemService
         |
         --ItemAdminService
            |
            --MenuAdminService
Variable Summary
Method Summary
MenuAdminService MenuAdminService ()
void createItemLanguageVersion ( $id,  $copyLangID,  $data)
the createMenu ( $data)
void updateItemContent ( $id,  $langid,  $content, [ $data = array()])
void updateMenuContent ( $id,  $langid,  $content, [ $data = array()])
Variables
mixed $COPY_CONTENT = 1 (line 40)
mixed $EMPTY_CONTENT = 2 (line 41)
Methods
Constructor MenuAdminService (line 46)

Instantiates a MenuAdminService.

MenuAdminService MenuAdminService ()
createItemLanguageVersion (line 87)
void createItemLanguageVersion ( $id,  $copyLangID,  $data)
  • $id
  • $copyLangID
  • $data
createMenu (line 56)

Creates Menu with given values.

  • return: new Menu ID or FALSE
the createMenu ( $data)
  • $data
updateItemContent (line 141)

Overwritten to make sure to get each update.

void updateItemContent ( $id,  $langid,  $content, [ $data = array()])
  • $id
  • $langid
  • $content
  • $data

Redefinition of:
ItemAdminService::updateItemContent()
Overwrite this method to pipe update Calls to your ItemService implementation.
updateMenuContent (line 115)

This method prepares the Conent and Meta information to be saved correctly.

If you update Menu Content, always use this method and NOT the generic method

!

  • Absolute links will be eplaced by relative ones
  • Removes all possible Session IDs from links and image tags
  • Fetches the prepared Search Content
Then saves the Menu with these Informations.

void updateMenuContent ( $id,  $langid,  $content, [ $data = array()])
  • $id
  • $langid
  • $content
  • $data

Inherited Methods

Inherited From ItemAdminService

ItemAdminService::ItemAdminService()
ItemAdminService::addCategoryLink()
ItemAdminService::changeItem()
ItemAdminService::createItem()
ItemAdminService::createLanguageVersion()
ItemAdminService::deleteAllProjectNum()
ItemAdminService::deleteAllProjectText()
ItemAdminService::deleteItem()
ItemAdminService::deleteItemLanguage()
ItemAdminService::getMaxPositionForParentID()
ItemAdminService::initItemAdminService()
ItemAdminService::isAllowed()
ItemAdminService::lowerPosition()
ItemAdminService::moveItem()
ItemAdminService::raisePosition()
ItemAdminService::refreshHistoryVersionContent()
ItemAdminService::registerUploadedFile()
ItemAdminService::removeAllCategoryLinks()
ItemAdminService::removeCategoryLink()
ItemAdminService::setItemPosition()
ItemAdminService::setProjectNum()
ItemAdminService::setProjectText()
ItemAdminService::updateContent()
ItemAdminService::updateItemContent()
ItemAdminService::updateItemWithUpload()

Inherited From ItemService

ItemService::ItemService()
ItemService::countAllItems()
ItemService::countLevel()
ItemService::getItem()
ItemService::getItemLanguageEnumeration()
ItemService::getItemtype()
ItemService::getLastEditedItems()
ItemService::getLightTree()
ItemService::getLightTreeForLanguage()
ItemService::getTree()
ItemService::getTreeForLanguage()
ItemService::getTreeWalker()
ItemService::getWayHome()
ItemService::initItemService()
ItemService::isChildOf()
ItemService::isLeaf()

Inherited From Itemtype

Itemtype::Itemtype()
Itemtype::getClass()
Itemtype::getClassName()
Itemtype::getCommand()
Itemtype::getDirectory()
Itemtype::getItemtypeID()
Itemtype::initItemtype()

Inherited From MasterItemType

MasterItemType::MasterItemType()
MasterItemType::countItemtypes()
MasterItemType::getClassForItemType()
MasterItemType::getClassNameForItemType()
MasterItemType::getCommandForItemType()
MasterItemType::getDirectoryForItemType()
MasterItemType::getItemTypeForCommand()
MasterItemType::getSelectColumns()

Documentation generated by phpDocumentor 1.3.1