Procedural File: BitBase.php
Source Location: /kernel/BitBase.php
Classes:
BitCacheable
Virtual base for BitCacheable.
BitBase
Virtual base class (as much as one can have such things in PHP) for all derived bitweaver classes that require database access.
Page Details:
Virtual bitweaver base class
Tags:
Includes:
STORAGE_BINARY [line 25]
STORAGE_IMAGE [line 26]
debugMarkTime [line 255]
debugOutput [line 259]
void debugOutput(
$pString)
|
|
Parameters
display [line 338]
none display(
string $pPackage, $pTemplate)
|
|
This method should be THE method used to display a template. php files should not access $gBitSmarty directly.
Tags:
Parameters
string |
$pPackage |
pMsg error message to be displayed |
|
$pTemplate |
|
getCacheUuid [line 186]
getCacheUuidFromKey [line 190]
void getCacheUuidFromKey(
[ $pCacheUuid = ''])
|
|
Parameters
getClass [line 217]
getConfig [line 221]
void getConfig(
$pName, [ $pDefault = NULL])
|
|
Parameters
getDb [line 251]
Return pointer to current Database
getField [line 380]
void getField(
pFieldName $pFieldName, [pDefault $pDefault = NULL])
|
|
Returns entry from the mInfo hash if field exists
Parameters
pFieldName |
$pFieldName |
the hash key to retrieve the value |
pDefault |
$pDefault |
the value to return of there is now hash value present |
getObjectById [line 177]
void getObjectById(
$pObjectId)
|
|
Parameters
getParameter [line 320]
TRUE getParameter(
&$pParamHash, $pKey, [ $pDefaultValue = NULL], associativearray $pParamHash, string $pHashKey, string $pDefault)
|
|
getParameter Gets a hash value it exists, or returns an optional default
Tags:
Parameters
associativearray |
$pParamHash |
Hash of key=>value pairs |
string |
$pHashKey |
Key used to search for value |
string |
$pDefault |
Default value to return if not found. NULL if nothing is passed in. |
|
&$pParamHash |
|
|
$pKey |
|
|
$pDefaultValue |
|
isCacheableClass [line 205]
isCacheableObject [line 201]
void isCacheableObject(
)
|
|
isCacheActive [line 196]
isCached [line 209]
isDatabaseValid [line 244]
Determines if there is a valide database connection
isFeatureActive [line 226]
void isFeatureActive(
$pFeatureName)
|
|
Parameters
loadFromCache [line 167]
void loadFromCache(
$pCacheKey)
|
|
Parameters
postGetList [line 487]
- postGetList(
array &$pListHash)
|
|
Updates results from any getList function to provide the control set displaying in the smarty template
Tags:
Parameters
array |
&$pListHash |
hash of parameters returned by any getList() function |
prepGetList [line 389]
the prepGetList(
pParamHash &$pListHash)
|
|
Prepares parameters with default values for any getList function
Tags:
Parameters
pParamHash |
&$pListHash |
hash of parameters for any getList() function |
setCacheableObject [line 213]
void setCacheableObject(
[ $pCacheState = TRUE])
|
|
Parameters
setDatabase [line 235]
void setDatabase(
pDB &$pDB)
|
|
Sets database mechanism for the instance
Parameters
pDB |
&$pDB |
the instance of the database mechanism |
setField [line 366]
void setField(
pFieldName $pFieldName, pValue $pValue)
|
|
Assign an entry to the mInfo hash if the current object is valid
Parameters
pFieldName |
$pFieldName |
the hash key to retrieve the value |
pValue |
$pValue |
the value of the hash key |
storeInCache [line 154]
TRUE storeInCache(
[string $pCacheKey = unique identifier for object in cache store])
|
|
storeInCache
Tags:
Parameters
string |
$pCacheKey |
unique identifier for object in cache store |
verifyId [line 295]
TRUE verifyId(
mixed $pId)
|
|
verifyId Determines if any given variable exists and is a number
Tags:
Parameters
mixed |
$pId |
this can be a string, number or array. if it's an array, all values in the array will be checked to see if they are numeric |
verifyIdParameter [line 283]
TRUE verifyIdParameter(
&$pParamHash, $pKey, mixed $pId)
|
|
verifyIdParamter Determines if any given variable exists and is a number
Tags:
Parameters
mixed |
$pId |
this can be a string, number or array. if it's an array, all values in the array will be checked to see if they are numeric |
|
&$pParamHash |
|
|
$pKey |
|
verifySortMode [line 467]
TRUE verifySortMode(
string $pSortMode, array $pValidSortModes)
|
|
verifySortMode is used to validate a given sort_mode agains an array of valid sort modes
Tags:
Parameters
string |
$pSortMode |
sort mode to check |
array |
$pValidSortModes |
array of available sort modes |
__wakeup [line 162]
|
|