OXID eShop CE  4.9.6
 All Classes Files Functions Variables Pages
oxCounter Class Reference

Public Member Functions

 getNext ($sIdent)
 update ($sIdent, $iCount)

Detailed Description

Counter class

Definition at line 7 of file oxcounter.php.

Member Function Documentation

oxCounter::getNext (   $sIdent)

Returns next counter value

Parameters
string$sIdentcounter ident
Returns
int

Definition at line 17 of file oxcounter.php.

oxCounter::update (   $sIdent,
  $iCount 
)

update counter value, only when it is greater than old one, if counter ident not exist creates counter and sets value

Parameters
string$sIdentcounter ident
integer$iCountvalue
Returns
int

Definition at line 47 of file oxcounter.php.


The documentation for this class was generated from the following file: