This is the API documentation for concrete5 version 5.6 and earlier. View Current API Documentation

Class Concrete5_Controller_Block_GuestbookEntry

An object for individual Guestbook responses.

Direct known subclasses

GuestBookBlockEntry

Package: Blocks\Guestbook
Copyright: Copyright (c) 2003-2012 Concrete5. (http://www.concrete5.org)
License: MIT License
Author: Ryan Tyler ryan@concrete5.org
Author: Andrew Embler andrew@concrete5.org
Located at core/controllers/blocks/guestbook_entry.php

Methods summary

public
# __construct( $bID, $cID = NULL )
public boolean
# loadData( integer $entryID )

Loads the object data from the db

public
# addEntry( string $comment, string $name, string $email, $approved, $cID, $uID = 0 )

Adds an entry to the guestbook for the current block

public
# updateEntry( integer $entryID, string $comment, string $name, string $email, string $uID = 0 )

Updates the given guestbook entry for the current block

public
# removeEntry( integer $entryID )

Deletes the given guestbook entry for the current block

public
# approveEntry( $entryID )
public
# unApproveEntry( $entryID )
public
# removeAllEntries( $cID )

Deletes all the entries for the current block

public static array
# getAll( integer $bID, string $cID, $order = "ASC" )

gets all entries for the current block

Properties summary

public integer $bID

blocks bID

#
public integer $cID

page collectionID

#
public integer $uID

blocks uID user id

#
public integer $entryID

the entry id

#
public string $user_name

the user's name

#
public string $user_email

the user's email address

#
public string $commentText

the text for the comment

#