Go to the source code of this file.
Functions | |
oxAutoload ($sClass) | |
if(!function_exists( 'error_404_handler')) | warningHandler ($iErrorNr, $sErrorText) |
dumpVar ($mVar, $blToFile=false) | |
if(!function_exists( 'isAdmin')) if(!function_exists( 'isSearchEngineUrl')) | debug ($mVar) |
cmpart ($a, $b) | |
startProfile ($sProfileName) | |
stopProfile ($sProfileName) | |
oxNew ($sClassName, $sParams=null) | |
oxNewArticle ($sArtId) | |
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 |
Definition at line 202 of file oxfunctions.php.
prints anything given into a file, for debugging
mixed | $mVar variable to debug |
Definition at line 186 of file oxfunctions.php.
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) |
Returns false as function returning true is supposed to be defined in admin/index.php dir. In OXID you can use isAdmin() to detect if code is executed in admin. Note: It does not detect if admion is logged in just identifies the place where it is called from.
Returns search engine url status
Definition at line 129 of file oxfunctions.php.
getDb | ( | $ | blAssoc = true |
) |
Returns current DB handler
bool | $blAssoc data fetch mode |
Definition at line 286 of file oxfunctions.php.
getStr | ( | ) |
ox_get_secure | ( | $ | sTplName, | |
$ | oSmarty | |||
) |
Assumes all templates are secure, returns true.
string | $sTplName not used here | |
object | $oSmarty not used here |
Definition at line 350 of file oxfunctions.php.
ox_get_template | ( | $ | sTplName, | |
&$ | sTplSource, | |||
$ | oSmarty | |||
) |
Sets template name to passed reference, returns true.
string | $sTplName name of template | |
string | &$sTplSource Template source | |
object | $oSmarty not used here |
Definition at line 310 of file oxfunctions.php.
ox_get_timestamp | ( | $ | sTplName, | |
&$ | iTplTimestamp, | |||
$ | oSmarty | |||
) |
Sets timestamt to passed timestamp object, returns true.
string | $sTplName name of template | |
string | &$iTplTimestamp template timestamp referense | |
object | $oSmarty not used here |
Definition at line 329 of file oxfunctions.php.
ox_get_trusted | ( | $ | sTplName, | |
$ | oSmarty | |||
) |
Does nothing.
string | $sTplName not used here | |
object | $oSmarty not used here |
return the view name of the given table if a view exists, otherwise the table name itself
string | $sTable table name | |
string | $sShopId optional the shop id, otherwise config->myshopid is used |
Returns request url, which was executed to render current page view
string | $sParams Parameters to object | |
bool | $blReturnUrl If return url |
Definition at line 364 of file oxfunctions.php.
oxAutoload | ( | $ | sClass | ) |
Includes $sClass class file
string | $sClass classname |
error_404_handler handler for 404 (page not found) error
string | $sUrl url wich was given, can be not specified in some cases |
Definition at line 10 of file oxfunctions.php.
oxNew | ( | $ | sClassName, | |
$ | sParams = null | |||
) |
Creates and returns new object. If creation is not available, dies and outputs error message.
string | $sClassName Name of class | |
string | $sParams Parameters to object |
oxSystemComponentException | in case that class does not exists |
Definition at line 259 of file oxfunctions.php.
oxNewArticle | ( | $ | sArtId | ) |
Creates, loads returns oxarticle object
string | $sArtId product id |
Definition at line 274 of file oxfunctions.php.
startProfile | ( | $ | sProfileName | ) |
Start profiling
string | $sProfileName name of profile |
Definition at line 217 of file oxfunctions.php.
stopProfile | ( | $ | sProfileName | ) |
Stop profiling
string | $sProfileName name of profile |
Definition at line 238 of file oxfunctions.php.
if (!function_exists( 'error_404_handler')) 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 |
Definition at line 116 of file oxfunctions.php.