phpDocumentor pivotx
[ class tree: pivotx ] [ index: pivotx ] [ all elements ]

Procedural File: data.php

Source Location: /data.php

Page Details
Functions
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


[ Top ]
checkDBVersion  [line 1188]

void checkDBVersion( )

Check if the current version of the DB is updated to the latest version, and update it if it isn't..



[ Top ]
compareMenuItem  [line 533]

void compareMenuItem( array &$a, array &$b  )

Compare two menu items

Parameters:
array   &$a: 
array   &$b: 


[ Top ]
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.



[ Top ]
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.



[ Top ]
getDefaultPages  [line 779]

void getDefaultPages( )

Get the default pages. We need this for setting up PivotX: if the file is not present, we use this to recreate it.



[ Top ]
getDefaultWeblog  [line 761]

void getDefaultWeblog( )

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.



[ Top ]
getDefaultWidgetStyles  [line 801]

array getDefaultWidgetStyles( )

Get the default styles for the widgets.



[ Top ]
getMenus  [line 21]

void getMenus( )

Set up the menus that are used in the PivotX interface. (version 2)

Version 2 now has full seperation of form and content.



[ Top ]
makeCategoriesTable  [line 1157]

void makeCategoriesTable( link $sql  )

Create the SQL table for Categories.

Parameters:
link   $sql: 


[ Top ]
makeChaptersTable  [line 892]

void makeChaptersTable( link $sql  )

Create the SQL table for Chapters.

Parameters:
link   $sql: 


[ Top ]
makeCommentsTable  [line 1045]

void makeCommentsTable( link $sql  )

Create the SQL table for Entries.

Parameters:
link   $sql: 


[ Top ]
makeEntriesTable  [line 938]

void makeEntriesTable( link $sql  )

Create the SQL table for Entries.

Parameters:
link   $sql: 


[ Top ]
makeExtrafieldsTable  [line 1011]

void makeExtrafieldsTable( link $sql  )

Create the SQL table for the Extra fields in Entries and Pages.

Parameters:
link   $sql: 


[ Top ]
makePagesTable  [line 818]

void makePagesTable( link $sql  )

Create the SQL table for Pages.

Parameters:
link   $sql: 


[ Top ]
makeTagsTable  [line 1126]

void makeTagsTable( link $sql  )

Create the SQL table for Tags.

Parameters:
link   $sql: 


[ Top ]
makeTrackbacksTable  [line 1092]

void makeTrackbacksTable( link $sql  )

Create the SQL table for Trackbacks.

Parameters:
link   $sql: 


[ Top ]
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


[ Top ]
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: 


[ Top ]


Documentation generated on Tue, 05 Sep 2017 01:06:00 +0200 by phpDocumentor 1.4.3