TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Frontend\ContentObject\Menu\JavaScriptMenuContentObject Class Reference
Inheritance diagram for TYPO3\CMS\Frontend\ContentObject\Menu\JavaScriptMenuContentObject:
TYPO3\CMS\Frontend\ContentObject\Menu\AbstractMenuContentObject tslib_jsmenu

Public Member Functions

 generate ()
 
 writeMenu ()
 
 generate_level ($levels, $count, $pid, $menuItemArray='', $MP_array=array())
 
- Public Member Functions inherited from TYPO3\CMS\Frontend\ContentObject\Menu\AbstractMenuContentObject
 start (&$tmpl, &$sys_page, $id, $conf, $menuNumber, $objSuffix='')
 
 filterMenuPages (&$data, $banUidArray, $spacer)
 
 procesItemStates ($splitCount)
 
 link ($key, $altTarget='', $typeOverride='')
 
 changeLinksForAccessRestrictedPages (&$LD, $page, $mainTarget, $typeOverride)
 
 subMenu ($uid, $objSuffix='')
 
 isNext ($uid, $MPvar='')
 
 isActive ($uid, $MPvar='')
 
 isCurrent ($uid, $MPvar='')
 
 isSubMenu ($uid)
 
 isItemState ($kind, $key)
 
 accessKey ($title)
 
 userProcess ($mConfKey, $passVar)
 
 setATagParts ()
 
 getPageTitle ($title, $nav_title)
 
 getMPvar ($key)
 
 getDoktypeExcludeWhere ()
 
 getBannedUids ()
 
 menuTypoLink ($page, $oTarget, $no_cache, $script, $overrideArray='', $addParams='', $typeOverride='')
 
 getSysPage ()
 
 getParentContentObject ()
 

Additional Inherited Members

- Public Attributes inherited from TYPO3\CMS\Frontend\ContentObject\Menu\AbstractMenuContentObject
 $menuNumber = 1
 
 $entryLevel = 0
 
 $spacerIDList = '199'
 
 $doktypeExcludeList = '6'
 
 $alwaysActivePIDlist = array()
 
 $imgNamePrefix = 'img'
 
 $imgNameNotRandom = 0
 
 $debug = 0
 
 $parent_cObj
 
 $GMENU_fixKey = 'gmenu'
 
 $MP_array = array()
 
 $conf = array()
 
 $mconf = array()
 
 $tmpl
 
 $sys_page
 
 $id
 
 $nextActive
 
 $menuArr
 
 $hash
 
 $result = array()
 
 $rL_uidRegister = ''
 
 $INPfixMD5
 
 $I
 
 $WMresult
 
 $WMfreezePrefix
 
 $WMmenuItems
 
 $WMsubmenuObjSuffixes
 
 $WMextraScript
 
 $alternativeMenuTempArray = ''
 
 $nameAttribute = 'name'
 
- Protected Member Functions inherited from TYPO3\CMS\Frontend\ContentObject\Menu\AbstractMenuContentObject
 removeInaccessiblePages (array $pages)
 
 determineOriginalShortcutPage (array $page)
 
 sectionIndex ($altSortField, $pid=NULL)
 
 getCache ()
 
- Protected Attributes inherited from TYPO3\CMS\Frontend\ContentObject\Menu\AbstractMenuContentObject
 $useCacheHash = FALSE
 

Detailed Description

This file is part of the TYPO3 CMS project.

It is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, either version 2 of the License, or any later version.

For the full copyright and license information, please read the LICENSE.txt file that was distributed with this source code.

The TYPO3 project - inspiring people to share! JavaScript/Selectorbox based menus

Author
Kasper Skårhøj kaspe.nosp@m.rYYY.nosp@m.Y@typ.nosp@m.o3.c.nosp@m.om

Definition at line 22 of file JavaScriptMenuContentObject.php.

Member Function Documentation

◆ generate()

TYPO3\CMS\Frontend\ContentObject\Menu\JavaScriptMenuContentObject::generate ( )

Dummy. Should do nothing, because we don't use the result-array here!

Returns
void
Todo:
Define visibility

Definition at line 30 of file JavaScriptMenuContentObject.php.

◆ generate_level()

TYPO3\CMS\Frontend\ContentObject\Menu\JavaScriptMenuContentObject::generate_level (   $levels,
  $count,
  $pid,
  $menuItemArray = '',
  $MP_array = array() 
)

Generates a number of lines of JavaScript code for a menu level. Calls itself recursively for additional levels.

Parameters
integer$levelsNumber of levels to generate
integer$countCurrent level being generated - and if this number is less than $levels it will call itself recursively with $count incremented
integer$pidPage id of the starting point.
array$menuItemArray$this->menuArr passed along
array$MP_arrayPrevious MP vars
Returns
string JavaScript code lines. private
Todo:
Define visibility

Definition at line 99 of file JavaScriptMenuContentObject.php.

References $GLOBALS, TYPO3\CMS\Frontend\ContentObject\Menu\AbstractMenuContentObject\$MP_array, $uid, TYPO3\CMS\Frontend\ContentObject\Menu\AbstractMenuContentObject\changeLinksForAccessRestrictedPages(), TYPO3\CMS\Frontend\ContentObject\Menu\AbstractMenuContentObject\getBannedUids(), TYPO3\CMS\Core\Utility\GeneralUtility\inArray(), TYPO3\CMS\Core\Utility\GeneralUtility\inList(), TYPO3\CMS\Frontend\ContentObject\Menu\AbstractMenuContentObject\isActive(), TYPO3\CMS\Frontend\ContentObject\Menu\AbstractMenuContentObject\menuTypoLink(), and TYPO3\CMS\Core\Utility\GeneralUtility\quoteJSvalue().

Referenced by TYPO3\CMS\Frontend\ContentObject\Menu\JavaScriptMenuContentObject\writeMenu().

◆ writeMenu()

TYPO3\CMS\Frontend\ContentObject\Menu\JavaScriptMenuContentObject::writeMenu ( )

Creates the HTML (mixture of a <form> and a JavaScript section) for the JavaScript menu (basically an array of selector boxes with onchange handlers)

Returns
string The HTML code for the menu
Todo:
Define visibility

Definition at line 40 of file JavaScriptMenuContentObject.php.

References $GLOBALS, TYPO3\CMS\Core\Utility\MathUtility\forceIntegerInRange(), TYPO3\CMS\Frontend\ContentObject\Menu\JavaScriptMenuContentObject\generate_level(), and TYPO3\CMS\Core\Utility\GeneralUtility\shortMD5().