Overview

Packages

  • admin
    • development
  • classes
  • CodeIgniter
    • Libraries
  • comment-form
  • core
  • elfinder
  • functions
  • JSMin
  • None
  • PHP
  • PHPMailer
  • plugins
    • admin-approval
    • auto-backup
    • bxslider-thumb-nav
    • cachemanager
    • check-for-update
    • class-anyfile
    • class-textobject
    • class-video
    • class-webdocs
    • clonezenphoto
    • colorbox-js
    • comment-form
    • contact-form
    • cookieconsent
    • crop-image
    • defaultcodeblocks
    • deprecated-functions
    • downloadlist
    • dynamic-locale
    • elfinder
    • email-newuser
    • examplemacros
    • favoriteshandler
    • flag-thumbnail
    • galleryarticles
    • googlemap
    • hitcounter
    • html-meta-tags
    • image-album-statistiscs
    • ipblocker
    • jplayer
    • macrolist
    • markrelease
    • Matomo
    • menu-manager
    • mergedrss
    • mobiletheme
    • multiple-layouts
    • openstreetmap
    • paged-thumbs-nav
    • phpmailer
    • print-album-menu
    • publishcontent
    • quota-manager
    • rating
    • recaptcha
    • register-user
    • related-items
    • rewriterules
    • rewritetokens
    • rss
    • scriptless-socialsharing
    • search-statistics
    • security-logger
    • seo-cleanup
    • seo-locale
    • seo-null
    • seo-zenphoto
    • show-not-logged-in
    • simplespam
    • site-upgrade
    • sitemap-extended
    • slideshow2
    • static-html-cache
    • tag-extras
    • tag-suggest
    • themeswitcher
    • tinymce4
    • trivialspam
    • uploader-http
    • uploader-jquery
    • user-expiry
    • user-groups
    • user-login-out
    • user-mailing-list
    • xmpmetadata
    • zenpage
    • zenphoto-news
    • zenphoto-sendmail
    • zenphotodonate
  • Services
    • JSON

Classes

  • Comment

Functions

  • comment_form_addComment
  • comment_form_handle_comment
  • comment_form_PaginationJS
  • comment_form_postcomment
  • comment_form_print10Most
  • comment_form_visualEditor
  • commentFormUseCaptcha
  • commentReply
  • getCommentAddress
  • getCommentAuthorEmail
  • getCommentAuthorLink
  • getCommentAuthorName
  • getCommentAuthorSite
  • getCommentBody
  • getCommentCount
  • getCommentDateTime
  • getCommentErrors
  • getCommentStored
  • getLatestComments
  • next_comment
  • printCommentAuthorLink
  • printCommentErrors
  • printEditCommentLink
  • printLatestComments
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated

Class Comment

PersistentObject
Extended by Comment
Package: plugins\comment-form
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
public $dataconfirmation
# null
Properties inherited from PersistentObject
$exists, $id, $loaded, $table, $transient
Zenphoto doc API documentation generated by ApiGen