Public Member Functions | Protected Member Functions | Protected Attributes

oxGbEntry Class Reference

Inheritance diagram for oxGbEntry:
Collaboration diagram for oxGbEntry:

List of all members.

Public Member Functions

 __construct ()
 assign ($dbRecord)
 getAllEntries ($iStart, $iNrofCatArticles, $sSortBy)
 getEntryCount ()
 floodProtection ($sShopid=0, $sUserId=null)

Protected Member Functions

 _insert ()

Protected Attributes

 $_sClassName = 'oxgbentry'

Detailed Description

Guestbook entry object manager. Loads available guestbook entries, performs some SQL queries.

Definition at line 8 of file oxgbentry.php.


Constructor & Destructor Documentation

oxGbEntry.__construct (  ) 

Class constructor, executes parent method parent.oxI18n().

Reimplemented from oxBase.

Definition at line 29 of file oxgbentry.php.


Member Function Documentation

oxGbEntry._insert (  )  [protected]

Inserts new guestbook entry. Returns true on success.

Returns:
bool

Reimplemented from oxBase.

Definition at line 60 of file oxgbentry.php.

oxGbEntry.assign ( dbRecord  ) 

Calls parent.assign and assigns gb entry writer data

Parameters:
array $dbRecord database record
Returns:
bool

Reimplemented from oxBase.

Definition at line 42 of file oxgbentry.php.

oxGbEntry.floodProtection ( sShopid = 0,
sUserId = null 
)

Method protects from massive message flooding. Max number of posts per day is limited in Admin next to max number of posts per page.

Parameters:
string $sShopid shop`s OXID
string $sUserId user`s OXID
Returns:
bool result

Definition at line 143 of file oxgbentry.php.

oxGbEntry.getAllEntries ( iStart,
iNrofCatArticles,
sSortBy 
)

Loads guestbook entries returns them.

Parameters:
integer $iStart start for sql limit
integer $iNrofCatArticles nr of items per page
string $sSortBy order by
Returns:
array $oEntries guestbook entries

Definition at line 76 of file oxgbentry.php.

oxGbEntry.getEntryCount (  ) 

Returns count of all entries.

Returns:
integer $iRecCnt

Definition at line 111 of file oxgbentry.php.


Member Data Documentation

oxGbEntry.$_sClassName = 'oxgbentry' [protected]

Reimplemented from oxBase.

Definition at line 23 of file oxgbentry.php.


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