3.7. Accessing PivotX data
All data in PivotX should be accessed via the global variable $PIVOTX. That variable contains pointers to all objects/class instances that you need. The most important are:
$PIVOTX['config'] -> a Config instance $PIVOTX['db'] -> a db instance $PIVOTX['pages'] -> a Pages instance $PIVOTX['users'] -> a Users instance $PIVOTX['weblogs'] -> a Weblogs instance $PIVOTX['categories'] -> a Categories instance $PIVOTX['multisite'] -> a MultiSite instance $PIVOTX['session'] -> a Session instance
Each class defines methods to fetch, update and query the associated data:
Config - giving access to the general configuration of the PivotX installation
db - giving access to all entries (with comments and trackbacks) in the PivotX installation.
Pages - giving access to all pages in the PivotX installation.
Users - giving access to all users in the PivotX installation.
Weblogs - giving access to all weblogs in the PivotX installation and their data/configuration.
Categories - giving access to all categories in the PivotX installation and their settings.
Multisite - giving access to multi-site status for the PivotX installation.
Session - handles logging in and out and giving access to all sessions in the PivotX installation.
In addition there is
which is an array containing all paths - file system and URLs - used/needed by PivotX.
Instead of maintaining a list of all methods (in each class) and their signature, please read the always up-to-date class documentation: