OXID eShop CE  4.9.11
 All Classes Files Functions Variables Pages
oxfunctions.php File Reference

Go to the source code of this file.

Functions

 oxAutoload ($sClass)
 getClassDirs ($sBasePath)
if(!function_exists('registerShopAutoLoad'))
if(!function_exists('registerComposerAutoLoad'))
if(!function_exists('getShopBasePath')) 
isAdmin ()
 setPhpIniParams ()
if(!function_exists('error_404_handler')) warningHandler ($iErrorNr, $sErrorText)
 dumpVar ($mVar, $blToFile=false)
if(!function_exists('isSearchEngineUrl')) debug ($mVar)
 cmpart ($a, $b)
if(!function_exists('startProfile'))
if(!function_exists('stopProfile')) 
oxNew ($sClassName)
 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)

Function Documentation

cmpart (   $a,
  $b 
)

Sorting for crossselling

Parameters
object$afirst compare item
object$bsecond compre item
Returns
integer

Definition at line 289 of file oxfunctions.php.

if (!function_exists('isSearchEngineUrl')) debug (   $mVar)

prints anything given into a file, for debugging

Parameters
mixed$mVarvariable to debug

Definition at line 273 of file oxfunctions.php.

dumpVar (   $mVar,
  $blToFile = false 
)

Dumps $mVar information to vardump.txt file. Used in debugging.

Parameters
mixed$mVarvariable
bool$blToFilemarker to write log info to file (must be true to log)

Definition at line 240 of file oxfunctions.php.

getClassDirs (   $sBasePath)

Return array with classes paths.

Parameters
string$sBasePathpath to shop base ddirectory.
Returns
array

Definition at line 117 of file oxfunctions.php.

getDb (   $blAssoc = true)

Returns current DB handler

Parameters
bool$blAssocdata fetch mode
Returns
oxDb

Definition at line 364 of file oxfunctions.php.

getStr ( )

Returns string handler

Returns
oxStr

Definition at line 374 of file oxfunctions.php.

if (!function_exists('registerShopAutoLoad')) if (!function_exists('registerComposerAutoLoad')) if (!function_exists('getShopBasePath')) isAdmin ( )

Returns true in case framework is called from shop administrator environment.

Returns
bool

Definition at line 183 of file oxfunctions.php.

ox_get_secure (   $sTplName,
  $oSmarty 
)

Assumes all templates are secure, returns true.

Parameters
string$sTplNamenot used here
object$oSmartynot used here
Returns
bool

Definition at line 428 of file oxfunctions.php.

ox_get_template (   $sTplName,
$sTplSource,
  $oSmarty 
)

Sets template name to passed reference, returns true.

Parameters
string$sTplNamename of template
string&$sTplSourceTemplate source
object$oSmartynot used here
Returns
bool

Definition at line 388 of file oxfunctions.php.

ox_get_timestamp (   $sTplName,
$iTplTimestamp,
  $oSmarty 
)

Sets timestamt to passed timestamp object, returns true.

Parameters
string$sTplNamename of template
string&$iTplTimestamptemplate timestamp referense
object$oSmartynot used here
Returns
bool

Definition at line 407 of file oxfunctions.php.

ox_get_trusted (   $sTplName,
  $oSmarty 
)

Does nothing.

Parameters
string$sTplNamenot used here
object$oSmartynot used here

Definition at line 440 of file oxfunctions.php.

oxAutoload (   $sClass)

Includes $sClass class file

Parameters
string$sClassclassname
Returns
null

Definition at line 10 of file oxfunctions.php.

if (!function_exists('startProfile')) if (!function_exists('stopProfile')) oxNew (   $sClassName)

Creates and returns new object. If creation is not available, dies and outputs error message.

Parameters
string$sClassNameName of class
Exceptions
oxSystemComponentExceptionin case that class does not exists
Returns
object

Definition at line 347 of file oxfunctions.php.

setPhpIniParams ( )

Sets default PHP parameters.

Returns
null;

Definition at line 197 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

Parameters
int$iErrorNrerror number
string$sErrorTexterror message

Definition at line 229 of file oxfunctions.php.