|
OXID eShop CE
6.1.0
|
Functions | |
| isAdmin () | |
| warningHandler ($iErrorNr, $sErrorText) | |
| dumpVar ($mVar, $blToFile=false) | |
| debug ($mVar) | |
| cmpart ($a, $b) | |
| oxNew ($className) | |
| getDb ($blAssoc=true) | |
| getStr () | |
| ox_get_template ($sTplName, &$sTplSource, $oSmarty) | |
| ox_get_timestamp ($sTplName, &$iTplTimestamp, $oSmarty) | |
| ox_get_secure ($sTplName, $oSmarty) | |
| ox_get_trusted ($sTplName, $oSmarty) | |
| cmpart | ( | $a, | |
| $b | |||
| ) |
Sorting for crossselling
| object | $a | first compare item |
| object | $b | second compre item |
| debug | ( | $mVar | ) |
prints anything given into a file, for debugging
| mixed | $mVar | variable to debug |
| dumpVar | ( | $mVar, | |
$blToFile = false |
|||
| ) |
Dumps $mVar information to vardump.txt file. Used in debugging.
| mixed | $mVar | variable |
| bool | $blToFile | marker to write log info to file (must be true to log) |
| getDb | ( | $blAssoc = true | ) |
Returns current DB handler
| bool | $blAssoc | data fetch mode |
| getStr | ( | ) |
Returns string handler
| isAdmin | ( | ) |
Returns true in case framework is called from shop administrator environment.
| ox_get_secure | ( | $sTplName, | |
| $oSmarty | |||
| ) |
Dummy function, required for smarty plugin registration.
| string | $sTplName | not used here |
| object | $oSmarty | not used here |
| ox_get_template | ( | $sTplName, | |
| & | $sTplSource, | ||
| $oSmarty | |||
| ) |
Sets template content from cache. In demoshop enables security mode.
| string | $sTplName | name of template |
| string | &$sTplSource | Template source |
| object | $oSmarty | not used here |
| ox_get_timestamp | ( | $sTplName, | |
| & | $iTplTimestamp, | ||
| $oSmarty | |||
| ) |
Sets time for smarty templates recompilation. If oxidtimecache is set, smarty will cache templates for this period. Otherwise templates will always be compiled.
| string | $sTplName | name of template |
| string | &$iTplTimestamp | template timestamp referense |
| object | $oSmarty | not used here |
| ox_get_trusted | ( | $sTplName, | |
| $oSmarty | |||
| ) |
Dummy function, required for smarty plugin registration.
| string | $sTplName | not used here |
| object | $oSmarty | not used here |
| oxNew | ( | $className | ) |
Creates and returns new object. If creation is not available, dies and outputs error message.
| string | $className | Name of class |
| mixed | ...$args constructor arguments |
| warningHandler | ( | $iErrorNr, | |
| $sErrorText | |||
| ) |
Displays 'nice' HTML formatted user error. Later this method is hooked as error handler by calling set_error_handler('warningHandler', E_USER_WARNING); #T2008-07-22 Not used yet
| int | $iErrorNr | error number |
| string | $sErrorText | error message |