oxfunctions.php File Reference

Go to the source code of this file.

Functions

 __autoload ($sClass)
 warningHandler ($iErrorNr, $sErrorText)
 dumpVar ($mVar, $blToFile=false)
 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)

Variables

 $sReturn = "Page not found."
return $blAdmin
return false
 $sString = var_export( $mVar, true )
 $sRequest = preg_replace( '/&$/', '', $sRequest )


Function Documentation

__autoload ( sClass  ) 

Includes $sClass class file

Parameters:
string $sClass classname
Returns:
null

Definition at line 10 of file oxfunctions.php.

cmpart ( a,
b 
)

Sorting for crossselling

Parameters:
object $a first compare item
object $b second compre item
Returns:
integer

Definition at line 185 of file oxfunctions.php.

dumpVar ( mVar,
blToFile = false 
)

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

Parameters:
mixed $mVar variable
bool $blToFile marker to write log info to file (must be true to log)
Returns:
null

Definition at line 112 of file oxfunctions.php.

getDb ( blAssoc = true  ) 

Returns current DB handler

Parameters:
bool $blAssoc data fetch mode
Returns:
oxDb

Definition at line 269 of file oxfunctions.php.

getStr (  ) 

Returns string handler

Returns:
oxStr

Definition at line 279 of file oxfunctions.php.

ox_get_secure ( sTplName,
oSmarty 
)

Assumes all templates are secure, returns true.

Parameters:
string $sTplName not used here
object $oSmarty not used here
Returns:
bool

Definition at line 333 of file oxfunctions.php.

ox_get_template ( sTplName,
&$  sTplSource,
oSmarty 
)

Sets template name to passed reference, returns true.

Parameters:
string $sTplName name of template
string &$sTplSource Template source
object $oSmarty not used here
Returns:
bool

Definition at line 293 of file oxfunctions.php.

ox_get_timestamp ( sTplName,
&$  iTplTimestamp,
oSmarty 
)

Sets timestamt to passed timestamp object, returns true.

Parameters:
string $sTplName name of template
string &$iTplTimestamp template timestamp referense
object $oSmarty not used here
Returns:
bool

Definition at line 312 of file oxfunctions.php.

ox_get_trusted ( sTplName,
oSmarty 
)

Does nothing.

Parameters:
string $sTplName not used here
object $oSmarty not used here
Returns:
null

Definition at line 347 of file oxfunctions.php.

oxNew ( sClassName,
sParams = null 
)

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

Parameters:
string $sClassName Name of class
string $sParams Parameters to object
Exceptions:
oxSystemComponentException in case that class does not exists
Returns:
object

Definition at line 242 of file oxfunctions.php.

oxNewArticle ( sArtId  ) 

Creates, loads returns oxarticle object

Parameters:
string $sArtId product id
Returns:
oxarticle

Definition at line 257 of file oxfunctions.php.

startProfile ( sProfileName  ) 

Start profiling

Parameters:
string $sProfileName name of profile
Returns:
null

Definition at line 200 of file oxfunctions.php.

stopProfile ( sProfileName  ) 

Stop profiling

Parameters:
string $sProfileName name of profile
Returns:
null

Definition at line 221 of file oxfunctions.php.

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 $iErrorNr error number
string $sErrorText error message
Returns:
null

Definition at line 99 of file oxfunctions.php.


Variable Documentation

return $blAdmin

Definition at line 142 of file oxfunctions.php.

$sRequest = preg_replace( '/&$/', '', $sRequest )

Definition at line 396 of file oxfunctions.php.

$sReturn = "Page not found."

Definition at line 73 of file oxfunctions.php.

$sString = var_export( $mVar, true )

Definition at line 172 of file oxfunctions.php.

Definition at line 145 of file oxfunctions.php.


Generated on Mon Oct 26 20:07:20 2009 for OXID eShop CE by  doxygen 1.5.5