OXID eShop CE  4.9.7
 All Classes Files Functions Variables Pages
oxGbEntry Class Reference
+ Inheritance diagram for oxGbEntry:
+ Collaboration diagram for oxGbEntry:

Public Member Functions

 __construct ()
 assign ($dbRecord)
 getAllEntries ($iStart, $iNrofCatArticles, $sSortBy)
 getEntryCount ()
 floodProtection ($sShopid=0, $sUserId=null)
- Public Member Functions inherited from oxBase
 getUseSkipSaveFields ()
 setUseSkipSaveFields ($blUseSkipSaveFields)
 __set ($sName, $sValue)
 __get ($sName)
 __isset ($mVar)
 __clone ()
 oxClone ($oObject)
 getUpdateSeo ()
 setUpdateSeo ($blUpdateSeo)
 init ($sTableName=null, $blForceAllFields=false)
 getClassName ()
 getCoreTableName ()
 getId ()
 setId ($sOXID=null)
 setShopId ($iShopId)
 getShopId ()
 getViewName ($blForceCoreTableUsage=null)
 modifyCacheKey ($sCacheKey, $blOverride=false)
 disableLazyLoading ()
 isDerived ()
 setIsDerived ($blVal)
 isMultilang ()
 load ($sOXID)
 isLoaded ()
 buildSelectString ($aWhere=null)
 assignRecord ($sSelect)
 getFieldData ($sFieldName)
 getSelectFields ($blForceCoreTableUsage=null)
 delete ($sOxId=null)
 save ()
 allowDerivedUpdate ()
 allowDerivedDelete ()
 exists ($sOXID=null)
 getSqlActiveSnippet ($blForceCoreTable=null)
 beforeUpdate ($sOXID=null)
 onChange ($iAction=null, $sOXID=null)
 setInList ()
 isOx ()
 isReadOnly ()
 setReadOnly ($blReadOnly)
 getFieldNames ()
 addFieldName ($sName)
 getLanguage ()
- Public Member Functions inherited from oxSuperCfg
 __call ($sMethod, $aArgs)
 getConfig ()
 setConfig ($oConfig)
 getSession ()
 setSession ($oSession)
 getUser ()
 setUser ($oUser)
 isAdmin ()
 setAdminMode ($blAdmin)

Protected Member Functions

 _insert ()
- Protected Member Functions inherited from oxBase
 _setUpdateSeoOnFieldChange ($sField)
 _removeElement2ShopRelations ($sOxId)
 _isInList ()
 _getObjectViewName ($sTable, $sShopID=null)
 _getTableFields ($sTable, $blReturnSimple=false)
 _getAllFields ($blReturnSimple=false)
 _initDataStructure ($blForceFullStructure=false)
 _getNonCachedFieldNames ($blForceFullStructure=false)
 _getFieldStatus ($sFieldName)
 _addField ($sName, $iStatus, $sType=null, $sLength=null)
 _getFieldLongName ($sFieldName)
 _setFieldData ($sFieldName, $sValue, $iDataType=oxField::T_TEXT)
 _canFieldBeNull ($sFieldName)
 _getFieldDefaultValue ($sFieldName)
 _getUpdateFieldValue ($sFieldName, $oField)
 _getUpdateFields ($blUseSkipSaveFields=true)
 _update ()
 _isDisabledFieldCache ()
 _addSkippedSaveFieldsForMapping ()
 _disableLazyLoadingForCaching ()

Protected Attributes

 $_sClassName = 'oxgbentry'
- Protected Attributes inherited from oxBase
 $_sOXID = null
 $_iShopId = null
 $_blIsSimplyClonable = true
 $_sClassName = 'oxbase'
 $_sCoreTable = null
 $_sViewTable = null
 $_aFieldNames = array('oxid' => 0)
 $_sCacheKey = null
 $_blUseLazyLoading = false
 $_aSkipSaveFields = array('oxtimestamp')
 $_blUseSkipSaveFields = true
 $_sExistKey = 'oxid'
 $_blIsDerived = null
 $_blIsSeoObject = false
 $_blUpdateSeo = true
 $_blReadOnly = false
 $_blIsInList = false
 $_isLoaded = false
 $_aInnerLazyCache = null
 $_blEmployMultilanguage = false

Additional Inherited Members

- Static Protected Attributes inherited from oxBase
static $_blDisableFieldCaching = array()

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

Member Function Documentation

oxGbEntry::_insert ( )

Inserts new guestbook entry. Returns true on success.


Reimplemented from oxBase.

Definition at line 61 of file oxgbentry.php.

oxGbEntry::assign (   $dbRecord)

Calls parent::assign and assigns gb entry writer data

array$dbRecorddatabase record

Reimplemented from oxBase.

Definition at line 43 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.

string$sShopidshops OXID @param string $sUserId users OXID
bool result

Definition at line 149 of file oxgbentry.php.

oxGbEntry::getAllEntries (   $iStart,

Loads guestbook entries returns them.

integer$iStartstart for sql limit
integer$iNrofCatArticlesnr of items per page
string$sSortByorder by
array $oEntries guestbook entries

Definition at line 78 of file oxgbentry.php.

oxGbEntry::getEntryCount ( )

Returns count of all entries.

integer $iRecCnt

Definition at line 116 of file oxgbentry.php.

Member Data Documentation

oxGbEntry::$_sClassName = 'oxgbentry'

Definition at line 24 of file oxgbentry.php.

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