oxGbEntry Class Reference

Inheritance diagram for oxGbEntry:
[legend]
Collaboration diagram for oxGbEntry:
[legend]

List of all members.


Detailed Description

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

Definition at line 9 of file oxgbentry.php.


Public Member Functions

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

Protected Member Functions

 _insert ()

Protected Attributes

 $_sClassName = 'oxgbentry'

Constructor & Destructor Documentation

oxGbEntry.__construct (  ) 

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

Reimplemented from oxBase.

Definition at line 30 of file oxgbentry.php.


Member Function Documentation

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 43 of file oxgbentry.php.

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.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.

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 142 of file oxgbentry.php.


Member Data Documentation

oxGbEntry.$_sClassName = 'oxgbentry' [protected]

Reimplemented from oxBase.

Definition at line 24 of file oxgbentry.php.


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

Generated on Thu Dec 4 12:05:26 2008 for OXID eShop CE by  doxygen 1.5.5