OXID eShop CE  6.1.5
OxidEsales\EshopCommunity\Core\Counter Class Reference

Public Member Functions

 getNext ($ident)
 
 update ($ident, $count)
 

Detailed Description

Counter class

Member Function Documentation

◆ getNext()

OxidEsales\EshopCommunity\Core\Counter::getNext (   $ident)

Return the next counter value for a given type of counter

Parameters
string$identIdentifies the type of counter. E.g. 'oxOrder'
Exceptions
Exception
Returns
int Next counter value

◆ update()

OxidEsales\EshopCommunity\Core\Counter::update (   $ident,
  $count 
)

Update the counter value for a given type of counter, but only when it is greater than the current value

Parameters
string$identIdentifies the type of counter. E.g. 'oxOrder'
integer$countNew counter value
Exceptions
Exception
Returns
int Number of affected rows

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