addtoTopMenu [line 480]
void addtoTopMenu(
array &$menu, mixed $top, array $items
)
|
|
Add a menu to pivotx top-menu
Creates the menu if it doesn't exist. If top is given as a 'name' (= string) it is converted to a menu-item. If menu-item is not complete, it is automatically filled:
- missing 'sortorder', defaults to 2500
- missing 'uri', defaults to lowercased name and anything other than alphanumeric characters are stripped
- missing 'description', defaults to name
- missing 'href', is given the value of the first item (href or uri-variant)
Parameters:
|
array |
&$menu: |
the menu to edit |
|
mixed |
$top: |
either a menu name or an array of a menu-item |
|
array |
$items: |
the items to add to the top-menu |
checkDBVersion [line 1276]
Check if the current version of the DB is updated to the latest version, and update it if it isn't..
compareMenuItem [line 533]
void compareMenuItem(
array &$a, array &$b
)
|
|
Compare two menu items
Parameters:
getDefaultCategories [line 631]
array getDefaultCategories(
)
|
|
Get the default categories. We need this for setting up PivotX: if the file is not present, we use this to recreate it.
getDefaultConfig [line 673]
array getDefaultConfig(
)
|
|
Get the default configuration. We need this for setting up PivotX: if the file is not present, we use this to recreate it.
We also use this to check if the required values haven't been deleted accidentily.
getDefaultPages [line 779]
Get the default pages. We need this for setting up PivotX: if the file is not present, we use this to recreate it.
getDefaultWeblog [line 761]
Get the default weblog. We need this for setting up PivotX: if the file is not present, we use this to recreate it.
Also, if we're creating a new weblog from scratch, we can use this to do so.
getDefaultWidgetStyles [line 801]
array getDefaultWidgetStyles(
)
|
|
Get the default styles for the widgets.
getMenus [line 21]
Set up the menus that are used in the PivotX interface. (version 2)
Version 2 now has full seperation of form and content.
makeCategoriesTable [line 1161]
void makeCategoriesTable(
link $sql
)
|
|
Create the SQL table for Categories.
Parameters:
makeChaptersTable [line 893]
void makeChaptersTable(
link $sql
)
|
|
Create the SQL table for Chapters.
Parameters:
makeCommentsTable [line 1048]
void makeCommentsTable(
link $sql
)
|
|
Create the SQL table for Entries.
Parameters:
makeEntriesTable [line 939]
void makeEntriesTable(
link $sql
)
|
|
Create the SQL table for Entries.
Parameters:
makeExtrafieldsTable [line 1013]
void makeExtrafieldsTable(
link $sql
)
|
|
Create the SQL table for the Extra fields in Entries and Pages.
Parameters:
makeMLEntriesTable [line 1222]
void makeMLEntriesTable(
link $sql
)
|
|
Create the SQL table for ML Entries.
Parameters:
makeMLPagesTable [line 1249]
void makeMLPagesTable(
link $sql
)
|
|
Create the SQL table for ML Pages.
Parameters:
makePagesTable [line 818]
void makePagesTable(
link $sql
)
|
|
Create the SQL table for Pages.
Parameters:
makeTagsTable [line 1130]
void makeTagsTable(
link $sql
)
|
|
Create the SQL table for Tags.
Parameters:
makeTaxonomiesTable [line 1190]
void makeTaxonomiesTable(
link $sql
)
|
|
Create the SQL table for Taxonomies.
Parameters:
makeTrackbacksTable [line 1096]
void makeTrackbacksTable(
link $sql
)
|
|
Create the SQL table for Trackbacks.
Parameters:
modifyMenu [line 395]
void modifyMenu(
array &$menu, string $path, array $item
)
|
|
Modify menu items
Parameters:
|
array |
&$menu: |
root of the menu |
|
string |
$path: |
the 'uri-path' to the menu item to modify |
|
array |
$item: |
the modifications |
organizeMenuLevel [line 555]
void organizeMenuLevel(
array $in, $currentuserlevel, [ $path = false], [ $level = 0]
)
|
|
Organize a single menu level of the menu structure
- sorts the level
- applies user-level restrictions
- converts uri's to href's
- removes 'disabled' items
- create 'have_menu' booleans for menu's with subs
Parameters:
|
array |
$in: |
menu level (and subs) |
|
|
$currentuserlevel: |
|
|
|
$path: |
|
|
|
$level: |
|