Admidio API
  • Package
  • Class
  • Tree
  • Deprecated
  • Todo

Packages

  • com
    • tecnick
      • tcpdf
  • None
  • PHPMailer
    • easypeasyics
  • PHPWavUtils
  • Securimage
    • classes

Classes

  • AutoLogin
  • Component
  • ComponentUpdate
  • ConditionParser
  • Database
  • DateTimeExtended
  • Email
  • Folder
  • FormValidation
  • FunctionClass
  • Htaccess
  • HtmlDiv
  • HtmlElement
  • HtmlForm
  • HtmlFormBasic
  • HtmlFormInstallation
  • HtmlList
  • HtmlNavbar
  • HtmlPage
  • HtmlTable
  • HtmlTableBasic
  • Image
  • Inventory
  • InventoryFields
  • Language
  • LanguageData
  • ListConfiguration
  • Menu
  • Message
  • ModuleAnnouncements
  • ModuleDates
  • ModuleLists
  • ModuleMenu
  • ModuleMessages
  • Modules
  • ModuleWeblinks
  • MyFiles
  • Navigation
  • ntlm_sasl_client_class
  • Organization
  • Participants
  • PasswordHash
  • PasswordHashing
  • ProfileFields
  • RoleDependency
  • RolesRights
  • RSSfeed
  • Session
  • SystemMail
  • TableAccess
  • TableAnnouncement
  • TableCategory
  • TableDate
  • TableFile
  • TableFolder
  • TableGuestbook
  • TableGuestbookComment
  • TableInventory
  • TableInventoryField
  • TableLists
  • TableMembers
  • TableMessage
  • TablePhotos
  • TableRoles
  • TableRooms
  • TableText
  • TableUserField
  • TableUsers
  • TableWeblink
  • UploadHandlerDownload
  • UploadHandlerPhoto
  • User
  • UserRegistration

Exceptions

  • AdmException
  • WavFileException
  • WavFormatException

Functions

  • admFuncAutoload
  • admFuncGeneratePagination
  • admFuncGetBytesFromSize
  • admFuncGetDirectoryEntries
  • admFuncMaxUploadSize
  • admFuncProcessableImageSize
  • admFuncShowCreateChangeInfoById
  • admFuncShowCreateChangeInfoByName
  • admFuncVariableIsValid
  • admReadTemplateFile
  • admStrIsValidFileName
  • admStrStripTagsSpecial
  • admStrToLower
  • admStrToUpper
  • bzip2Version
  • checkDatabaseVersion
  • checkPhpVersion
  • EmailAttachment
  • FileSizeNiceDisplay
  • FormattedTimeRemaining
  • FunctionIsDisabled
  • getFormerRolesFromDatabase
  • getFutureRolesFromDatabase
  • getmicrotime
  • getRoleMemberships
  • getRolesFromDatabase
  • gzipVersion
  • hasRole
  • hl_attrval
  • hl_bal
  • hl_cmtcd
  • hl_ent
  • hl_prot
  • hl_regex
  • hl_spec
  • hl_tag
  • hl_tag2
  • hl_tidy
  • hl_version
  • htmLawed
  • HTMLFilter
  • isGroupLeader
  • isMember
  • kses
  • kses_hook
  • MySQLdumpVersion
  • OutputInformation
  • SafeExec
  • showNotice
  • strAddSlashesDeep
  • strNextLetter
  • strStripSlashesDeep
  • strStripTags
  • strValidCharacters
  • tln_body2div
  • tln_casenormalize
  • tln_deent
  • tln_defang
  • tln_findnxreg
  • tln_findnxstr
  • tln_fixatts
  • tln_fixstyle
  • tln_fixurl
  • tln_getnxtag
  • tln_sanitize
  • tln_skipspace
  • tln_tagprint
  • tln_unspace
  • version_compare_replacement
  • version_compare_replacement_sub

Class Menu

Copyright: 2004-2016 The Admidio Team
License: GNU General Public License v2.0 only **********************************************************************************************
Class:

Menu Create, modify and display menus. Each menu item is defined by

 - $id   : identifier of the menu item
 - $link : URL, relative to the admidio root directory, starting with a /
           or full URL with http or https protocol
 - $text : menu text
 - $icon : URL, relative to the theme plugin, starting with a /
         : or full URL with http or https protocol
 - $desc : (optional) long description of the menu item

Located at menu.php

Methods summary

public
# __construct( string $id, string $title )

constructor

constructor

Parameters

$id
$title
private array<string,string|array>
# mkItem( string $id, string $link, string $text, string $icon, string $desc = '' )

Parameters

$id
$link
$text
$icon
$desc

Returns

array<string,string|array>
public
# addItem( string $id, string $link, string $text, string $icon, string $desc = '' )

Parameters

$id
$link
$text
$icon
$desc
public
# addSubItem( string $parentId, string $id, string $link, string $text )

Parameters

$parentId
$id
$link
$text
public integer|false
# getPosition( string $id )

gets the position of a given ID in the menu

gets the position of a given ID in the menu

Parameters

$id

Returns

integer|false
public
# insertItem( integer $position, string $id, string $link, string $text, string $icon, string $desc = '' )

inserts a new menu entry before the named position

inserts a new menu entry before the named position

Parameters

$position
$id
$link
$text
$icon
$desc
public string
# show( boolean $complex = false )

Create the html menu from the internal array that must be filled before. You have the option to create a simple menu with icon and link or a more complex menu with submenu and description text.

Create the html menu from the internal array that must be filled before. You have the option to create a simple menu with icon and link or a more complex menu with submenu and description text.

Parameters

$complex

Create a @b simple menu as default. If you set the param to @b true then you will create a menu with submenus and description

Returns

string
Return the html code of the form.

Properties summary

protected $id
#
protected $title
#
protected $items
#
protected $root_path
#
Admidio API API documentation generated by ApiGen