menu_manager-admin-functions.php
Menu manager admin functions
Table of Contents
- updateItemsSortorder() : mixed
- Updates the sortorder of the pages list in the database
- printItemsListTable() : mixed
- Prints the table part of a single page item for the sortable pages list
- printItemsList() : bool
- Prints the sortable pages list returns true if nesting levels exceede the database container
- printItemEditLink() : mixed
- Prints the link to the edit page of a menu item. For gallery and Zenpage items it links to their normal edit pages, for custom pages and custom links to menu specific edit page.
- printItemStatusDropdown() : mixed
- Prints the item status selector to choose if all items or only hidden or visible should be listed
- getMenuSetSelector() : mixed
- returns the menu set selector
- publishItem() : mixed
- Sets a menu item to published/visible
- addSubalbumMenus() : mixed
- adds (sub)albums to menu base with their gallery sorting order intact
- addalbumsToDatabase() : int
- Adds albums to the menu set. Returns the next sort order base
- addPagesToDatabase() : int
- Adds Zenpage pages to the menu set
- addCategoriesToDatabase() : mixed
- Adds Zenpage news categories to the menu set
- addItem() : array<string|int, mixed>
- Adds an menu item set via POST
- updateMenuItem() : mixed
- Updates a menu item (custom link, custom page only) set via POST
- deleteItem() : mixed
- Deletes a menu item set via GET
- printAlbumsSelector() : string
- Prints all albums of the Zenphoto gallery as a partial drop down menu (<option></option> parts).
- printZenpagePagesSelector() : string
- Prints all available pages in Zenpage
- printZenpageNewsCategorySelector() : string
- Prints all available articles or categories in Zenpage
- printCustomPageSelector() : string
- Prints the selector for custom pages
- unpublishedZenphotoItemCheck() : string
- checks if a album or image is un-published and returns a '*'
- processMenuBulkActions() : mixed
- Processes the check box bulk actions
Functions
updateItemsSortorder()
Updates the sortorder of the pages list in the database
updateItemsSortorder() : mixed
Return values
mixed —printItemsListTable()
Prints the table part of a single page item for the sortable pages list
printItemsListTable(mixed $item, bool $flag) : mixed
Parameters
- $item : mixed
- $flag : bool
-
set to true to flag the element as having a problem with nesting level
Return values
mixed —printItemsList()
Prints the sortable pages list returns true if nesting levels exceede the database container
printItemsList(mixed $items) : bool
Parameters
- $items : mixed
Return values
bool —printItemEditLink()
Prints the link to the edit page of a menu item. For gallery and Zenpage items it links to their normal edit pages, for custom pages and custom links to menu specific edit page.
printItemEditLink(array<string|int, mixed> $item) : mixed
Parameters
- $item : array<string|int, mixed>
-
Array of the menu item
Return values
mixed —printItemStatusDropdown()
Prints the item status selector to choose if all items or only hidden or visible should be listed
printItemStatusDropdown() : mixed
Return values
mixed —getMenuSetSelector()
returns the menu set selector
getMenuSetSelector(string $active) : mixed
Parameters
- $active : string
-
true if changing the selection shuld reload to the new selection
Return values
mixed —publishItem()
Sets a menu item to published/visible
publishItem(int $id, string $show, string $menuset) : mixed
Parameters
- $id : int
-
id of the item
- $show : string
-
published status.
- $menuset : string
-
chosen menu set
Return values
mixed —addSubalbumMenus()
adds (sub)albums to menu base with their gallery sorting order intact
addSubalbumMenus(string $menuset, int $id, string $link, string $sort) : mixed
Parameters
- $menuset : string
-
chosen menu set
- $id : int
-
table id of the parent.
- $link : string
-
folder name of the album
- $sort : string
-
xxx-xxx-xxx style sort order for album
Return values
mixed —addalbumsToDatabase()
Adds albums to the menu set. Returns the next sort order base
addalbumsToDatabase(string $menuset[, string $base = NULL ]) : int
Parameters
- $menuset : string
-
current menu set
- $base : string = NULL
-
starting "sort order"
Return values
int —addPagesToDatabase()
Adds Zenpage pages to the menu set
addPagesToDatabase(string $menuset[, mixed $base = NULL ]) : int
Parameters
- $menuset : string
-
current menu set
- $base : mixed = NULL
Return values
int —addCategoriesToDatabase()
Adds Zenpage news categories to the menu set
addCategoriesToDatabase(string $menuset[, mixed $base = NULL ]) : mixed
Parameters
- $menuset : string
-
chosen menu set
- $base : mixed = NULL
Return values
mixed —addItem()
Adds an menu item set via POST
addItem(mixed &$reports) : array<string|int, mixed>
Parameters
- $reports : mixed
Return values
array<string|int, mixed> —updateMenuItem()
Updates a menu item (custom link, custom page only) set via POST
updateMenuItem(mixed &$reports) : mixed
Parameters
- $reports : mixed
Return values
mixed —deleteItem()
Deletes a menu item set via GET
deleteItem(mixed &$reports) : mixed
Parameters
- $reports : mixed
Return values
mixed —printAlbumsSelector()
Prints all albums of the Zenphoto gallery as a partial drop down menu (<option></option> parts).
printAlbumsSelector(string $current) : string
Parameters
- $current : string
-
set to the album name selected (if any)
Return values
string —printZenpagePagesSelector()
Prints all available pages in Zenpage
printZenpagePagesSelector(string $current) : string
Parameters
- $current : string
-
set to the page selected (if any)
Return values
string —printZenpageNewsCategorySelector()
Prints all available articles or categories in Zenpage
printZenpageNewsCategorySelector(string $current) : string
Parameters
- $current : string
-
set to category selected (if any)
Return values
string —printCustomPageSelector()
Prints the selector for custom pages
printCustomPageSelector(mixed $current) : string
Parameters
- $current : mixed
Return values
string —unpublishedZenphotoItemCheck()
checks if a album or image is un-published and returns a '*'
unpublishedZenphotoItemCheck(mixed $obj[, mixed $dropdown = true ]) : string
Parameters
- $obj : mixed
- $dropdown : mixed = true
Return values
string —processMenuBulkActions()
Processes the check box bulk actions
processMenuBulkActions() : mixed