OXID eShop CE  7.0.0
oxfunctions.php File Reference

Functions

 isAdmin ()
 
 warningHandler ($iErrorNr, $sErrorText)
 
 dumpVar ($mVar, $blToFile=false)
 
 debug ($mVar)
 
 oxNew ($className,... $args)
 

Function Documentation

◆ debug()

debug (   $mVar)

prints anything given into a file, for debugging

Parameters
mixed$mVarvariable to debug

◆ dumpVar()

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)

◆ isAdmin()

isAdmin ( )

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

Returns
bool

◆ oxNew()

oxNew (   $className,
  $args 
)

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

@template T

Parameters
class-string<T>$className param mixed ...$args constructor arguments
Returns
T

◆ warningHandler()

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