It handles module loading, initialization, template stuff, and much more.
Definition at line 14 of file basejumper.inc.php.
Public Member Functions | |
__construct ($defaultTemplate= 'DefaultTemplate', $defaultClass= 'Main') | |
here is our constructor. | |
addModule ($module) | |
this function adds a module to the list of modules that BaseJumper will serve up. | |
addModules ($modules) | |
this function will add a whole bunch of modules in at the same time. | |
removeModule ($module) | |
this function removes a module from the list of modules that BaseJumper will serve, effectively disabling it. | |
hasModule ($module) | |
this function tells us if we have a module loaded or not. | |
start () | |
this is the main hook of the library. | |
setModule (BaseModule $module) | |
this sets our module for the page we're drawing. | |
getCreateHitTrackingTable () | |
this function gets the create syntax for the module usage tracking table. | |
trackPageHit ($module=null, $page=null) | |
this will track a hit to a certain page in a certain module in the database | |
clearHits () | |
remove all the hit tracking records from the db. | |
getModulesArray () | |
this returns a sorted array of all the module names this BaseJumper knows how to handle | |
getModulesXml () | |
this function gets the xml string describing all the modules in our system. | |
Static Public Member Functions | |
getDbTables () | |
get an array of all the tables in our database... | |
getDbTable ($table) | |
get an array of data about our table... | |
getTableIndexes ($table) | |
get an array of index information about our table. | |
dbHasTable ($table) | |
tells us if we have a table in the database or not. | |
tableHasField ($table, $field) | |
tells us if a table in the database has a field or not. | |
autoload ($class) | |
This function tries to autoload our class files!! | |
Public Attributes | |
$defaultClass | |
The name of our default class. | |
$defaultTemplate | |
The name of our default template. | |
$object | |
Our instance of the module object. | |
Static Public Attributes | |
$tables = null | |
our database tables - overview array | |
$tableData = array() | |
our list of data for each table. | |
$tableCacheLife = 3000000 | |
how long do we cache our table structure data for? (in seconds) | |
$trackHits = true | |
do we track hits to the site on module / page basis? | |
$hitTrackingTable = 'site_hits' | |
table to track hits to the site on. | |
Protected Member Functions | |
checkCredentials () | |
this function sets up and initializes our global user. | |
checkHost () | |
this function checks to make sure we're on the right host and redirects us if we're not. | |
filterFinalOutput ($output) | |
this function adds in stuff liek runtime, queries, etc to the body. | |
init () | |
This function initializes everything. | |
getPage () | |
check our parameters and figure out what our page is. | |
getParams () | |
check our request vars to get our parameters. | |
getGlobalTemplate ($params) | |
this function will check our request to see if they want a special template. | |
checkAuthCode ($params) | |
this fucntion checks to see if an authorization code was passed in. | |
loadModule ($module=null) | |
This function loads the object. | |
Static Private Member Functions | |
lookupDbTables () | |
this function looks up all of the tables contained in the database and stores them in our static variable. | |
lookupDbTable ($table) | |
this function looks up detailed information about a table in our database and stores it on our static array. | |
Private Attributes | |
$modules = array() | |
this is our list of module names in string form. |
|
here is our constructor. you provide the default class and default template, it handles the rest.
Definition at line 67 of file basejumper.inc.php. References Config::get(). |
|
this function adds a module to the list of modules that BaseJumper will serve up.
Definition at line 84 of file basejumper.inc.php. |
|
this function will add a whole bunch of modules in at the same time.
Definition at line 98 of file basejumper.inc.php. |
|
This function tries to autoload our class files!!
Definition at line 595 of file basejumper.inc.php. |
|
this fucntion checks to see if an authorization code was passed in. if it does, it attempts to use it to authenticate our user. if it fails, ti will trigger an error. on success, it jsut logs the user in.
Definition at line 536 of file basejumper.inc.php. |
|
this function sets up and initializes our global user.
Definition at line 281 of file basejumper.inc.php. |
|
this function checks to make sure we're on the right host and redirects us if we're not.
Definition at line 293 of file basejumper.inc.php. References Config::get(), and Util::redirect(). |
|
remove all the hit tracking records from the db.
Definition at line 673 of file basejumper.inc.php. References dbExecute(). |
|
tells us if we have a table in the database or not.
Definition at line 188 of file basejumper.inc.php. Referenced by BaseObject::checkTable(). |
|
this function adds in stuff liek runtime, queries, etc to the body. %BJ_RUNTIME%% gets replaces with the time in seconds, &&BJ_CACHE_HITS%% gets replaced with the number of cache hits, and %BJ_QUERIES%% gets replaces with the number of db queries used.
Definition at line 372 of file basejumper.inc.php. |
|
this function gets the create syntax for the module usage tracking table. this will track all the hits your site is getting by module and page in that module.
Definition at line 630 of file basejumper.inc.php. |
|
get an array of data about our table... basically the result form DESCRIBE $table
Definition at line 151 of file basejumper.inc.php. Referenced by BaseObject::getDbFields(). |
|
get an array of all the tables in our database... used for autodetection stuff Definition at line 137 of file basejumper.inc.php. |
|
this function will check our request to see if they want a special template. if so, then return that, otherwise give us a default template. the 'template' variable is checked and if found it will be used and then unset.
Definition at line 513 of file basejumper.inc.php. |
|
this returns a sorted array of all the module names this BaseJumper knows how to handle
Definition at line 683 of file basejumper.inc.php. |
|
this function gets the xml string describing all the modules in our system.
Definition at line 696 of file basejumper.inc.php. |
|
check our parameters and figure out what our page is.
Definition at line 463 of file basejumper.inc.php. |
|
check our request vars to get our parameters. this is unvalidated, just the raw request.
Definition at line 477 of file basejumper.inc.php. References Config::get(). |
|
get an array of index information about our table. based on SHOW INDEXES
Definition at line 165 of file basejumper.inc.php. References dbFetchAssoc(), and dbQuery(). |
|
this function tells us if we have a module loaded or not.
Definition at line 127 of file basejumper.inc.php. |
|
This function initializes everything. It creates the object that does the actual drawing and initializes it.
Definition at line 395 of file basejumper.inc.php. |
|
This function loads the object. It supports auto loading of modules so you dont have to include them off the bat.
Definition at line 559 of file basejumper.inc.php. |
|
this function looks up detailed information about a table in our database and stores it on our static array.
Definition at line 243 of file basejumper.inc.php. References dbFetchAssoc(), dbQuery(), CacheBot::get(), and CacheBot::set(). |
|
this function looks up all of the tables contained in the database and stores them in our static variable.
Definition at line 214 of file basejumper.inc.php. References dbFetchArray(), dbQuery(), CacheBot::get(), and CacheBot::set(). |
|
this function removes a module from the list of modules that BaseJumper will serve, effectively disabling it.
Definition at line 109 of file basejumper.inc.php. |
|
this sets our module for the page we're drawing. it loads the default template and such.
Definition at line 449 of file basejumper.inc.php. |
|
this is the main hook of the library. it tells the object to draw itself. hefty work indeed. Definition at line 304 of file basejumper.inc.php. References Config::get(), BaseModule::getCachedPage(), ErrorHandler::handleException(), and BaseModule::setCachedPage(). |
|
tells us if a table in the database has a field or not.
Definition at line 203 of file basejumper.inc.php. Referenced by BaseObject::hasField(). |
|
this will track a hit to a certain page in a certain module in the database
Definition at line 649 of file basejumper.inc.php. References dbEscape(), and dbExecute(). |
|
The name of our default class.
Definition at line 19 of file basejumper.inc.php. |
|
The name of our default template.
Definition at line 24 of file basejumper.inc.php. |
|
table to track hits to the site on.
Definition at line 54 of file basejumper.inc.php. |
|
this is our list of module names in string form.
Definition at line 59 of file basejumper.inc.php. |
|
Our instance of the module object.
Definition at line 29 of file basejumper.inc.php. |
|
how long do we cache our table structure data for? (in seconds)
Definition at line 44 of file basejumper.inc.php. |
|
our list of data for each table.
Definition at line 39 of file basejumper.inc.php. |
|
our database tables - overview array
Definition at line 34 of file basejumper.inc.php. |
|
do we track hits to the site on module / page basis?
Definition at line 49 of file basejumper.inc.php. |