Class UserGuestbookEntry

com.woltlab.wcf.user.guestbook.data.user.guestbook

Description

Represents a guestbook entry.

  • author: Marcel Werk
  • copyright: 2001-2009 WoltLab GmbH
  • license: WoltLab
DatabaseObject
   |
   --UserGuestbookEntry

Direct descendents

Class Description
UserGuestbookEntryEditor Provides functions to edit or delete guestbook entries.
ViewableUserGuestbookEntry Represents a viewable guestbook entry.

Method Summary

Return Name
UserGuestbookEntry __construct(integer $entryID, [array<mixed> $row = null])
boolean commentIsDeletable()
boolean commentIsEditable()
integer commentIsQuoted()
boolean isCommentable()
boolean isDeletable()
boolean isEditable()
integer isQuoted()

Variables


Inherited variables from DatabaseObject

DatabaseObject::$data

Methods

__construct

public UserGuestbookEntry __construct(integer $entryID, [array<mixed> $row = null])

Creates a new UserGuestbookEntry object.

Parameters:

  • $entryID
  • $row

Redefinition of: DatabaseObject::__construct()

Redefined in descendants as: ViewableUserGuestbookEntry::__construct()


commentIsDeletable

public boolean commentIsDeletable()

Returns true, if the active user can delete the comment of this entry.


commentIsEditable

public boolean commentIsEditable()

Returns true, if the active user can edit the comment of this entry.


commentIsQuoted

public integer commentIsQuoted()

Returns the number of quotes of this entry comment.


isCommentable

public boolean isCommentable()

Returns true, if the active user can comment this entry.


isDeletable

public boolean isDeletable()

Returns true, if the active user can delete this entry.


isEditable

public boolean isEditable()

Returns true, if the active user can edit this entry.


isQuoted

public integer isQuoted()

Returns the number of quotes of this entry.


Inherited methods from DatabaseObject

DatabaseObject::__construct(), DatabaseObject::handleData(), DatabaseObject::sort(), DatabaseObject::__get()