Overview

Packages

  • admin
  • classes
    • media
  • CodeIgniter
    • Libraries
  • core
  • functions
  • JSMin
  • None
  • OpenID
  • PHP
  • PHPMailer
  • plugins
    • admin
    • development
    • feed
    • mail
    • media
    • misc
    • seo
    • spam
    • uploader
    • users
    • zenpage
    • zenphoto
      • news
  • Services
    • JSON

Classes

  • Album
  • AlbumBase
  • Comment
  • dynamicAlbum
  • feed
  • Gallery
  • Image
  • MediaObject
  • PersistentObject
  • SearchEngine
  • ThemeObject
  • Transientimage
  • Zenphoto_Administrator
  • Zenphoto_Authority

Functions

  • isAlbumClass
  • isImageClass
  • newAlbum
  • newImage
  • search_quote
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated

Class Comment

PersistentObject
Extended by Comment
Package: classes
Located at zp-extensions/comment_form/class-comment.php
Methods summary
public Comment
# __construct( integer $id = NULL )

Constructor for a comment

Constructor for a comment

Parameters

$id
set to the ID of the comment if not a new one.

Returns

Comment

Overrides

PersistentObject::__construct()
public
# setDefaults( )

Sets up default items on new comment objects

Sets up default items on new comment objects

Overrides

PersistentObject::setDefaults()
public string
# getDateTime( )

returns the comment date/time

returns the comment date/time

Returns

string
public
# setDateTime( string $datetime )

Sets a comment date/time value

Sets a comment date/time value

Parameters

$datetime
public integer
# getOwnerID( )

Returns the id of the comment owner

Returns the id of the comment owner

Returns

integer
public
# setOwnerID( integer $value )

Sets the id of the owner of the comment

Sets the id of the owner of the comment

Parameters

$value
public string
# getName( )

Returns the commentor's name

Returns the commentor's name

Returns

string
public
# setName( string $value )

Sets the commentor's name

Sets the commentor's name

Parameters

$value
public string
# getEmail( )

returns the email address of the commentor

returns the email address of the commentor

Returns

string
public
# setEmail( string $value )

Sets the email address of the commentor

Sets the email address of the commentor

Parameters

$value
public string
# getWebsite( )

returns the Website of the commentor

returns the Website of the commentor

Returns

string
public
# setWebsite( string $value )

Stores the website of the commentor

Stores the website of the commentor

Parameters

$value
public string
# getComment( )

Returns the comment text

Returns the comment text

Returns

string
public
# setComment( string $value )

Stores the comment text

Stores the comment text

Parameters

$value
public integer
# getInModeration( )

Returns true if the comment is marked for moderation

Returns true if the comment is marked for moderation

Returns

integer
public
# setInModeration( integer $value )

Sets the moderation flag of the comment

Sets the moderation flag of the comment

Parameters

$value
public string
# getType( )

Returns the 'type' of the comment. i.e. the class of the owner object

Returns the 'type' of the comment. i.e. the class of the owner object

Returns

string
public
# setType( string $type )

Sets the 'type' field of the comment

Sets the 'type' field of the comment

Parameters

$type
public string
# getIP( )

Returns the IP address of the comment poster

Returns the IP address of the comment poster

Returns

string
public
# setIP( string $value )

Sets the IP address field of the comment

Sets the IP address field of the comment

Parameters

$value
public boolean
# getPrivate( )

Returns true if the comment is flagged private

Returns true if the comment is flagged private

Returns

boolean
public
# setPrivate( boolean $value )

Sets the private flag of the comment

Sets the private flag of the comment

Parameters

$value
public boolean
# getAnon( )

Returns true if the comment is flagged anonymous

Returns true if the comment is flagged anonymous

Returns

boolean
public
# setAnon( boolean $value )

Sets the anonymous flag of the comment

Sets the anonymous flag of the comment

Parameters

$value
public string
# getCustomData( )

Returns the custom data field of the comment

Returns the custom data field of the comment

Returns

string
public
# setCustomData( string $value )

Stores the custom data field of the comment

Stores the custom data field of the comment

Parameters

$value
Methods inherited from PersistentObject
__toString(), copy(), get(), getData(), getID(), instantiate(), move(), remove(), save(), set()
Properties summary
public $comment_error_text
# NULL
Properties inherited from PersistentObject
$exists, $id, $loaded, $table, $transient
Zenphoto doc API documentation generated by ApiGen