quipcomment.class.php

Classes 
package
quip
Classes
quipComment

Description

Quip

Copyright 2010-11 by Shaun McCormick shaun@modx.com

This file is part of Quip.

Quip is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

Quip is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with Quip; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

\quipComment

Extends from
\xPDOSimpleObject
package
quip
Methods
_loadLexicon
approve
getDescendants
makeUrl
notifyModerators
reject
save
sendEmail

Description

Methods

_loadLexicon

_loadLexicon( ) : boolean

Load the modLexicon service

Output
boolean
Details
visibility
protected
final
false
static
false

approve

approve( array $options = array ) : boolean

Approves comment and sends out notification to poster and watchers

Arguments
$options
array
Output
boolean
True if successful
Details
visibility
public
final
false
static
false

getDescendants

getDescendants( int $depth = 0 ) : array

Grabs all descendants of this post.

Arguments
$depth
int
If set, will limit to specified depth
Output
array
A collection of quipComment objects.
Details
visibility
public
final
false
static
false
access
public

makeUrl

makeUrl( int $resource = 0, array $params = array, array $options = array, boolean $addAnchor = true ) : string

Make a custom URL For this comment.

Arguments
$resource
int
Optional. The ID of the resource to generate the comment for. Defaults to the Thread's resource.
$params
array
Optional. An array of REQUEST parameters to add to the URL.
$options
array
Optional. An array of options, which can include 'scheme' and 'idprefix'.
$addAnchor
boolean
Whether or not to add the idprefix+id as an anchor tag to the URL
Output
string
The generated URL
Details
visibility
public
final
false
static
false

notifyModerators

notifyModerators( ) : boolean

Sends notification email to moderators telling them the comment is awaiting approval.

Output
boolean
True if successful
Details
visibility
public
final
false
static
false

reject

reject( array $options = array ) : boolean

Reject a comment

Arguments
$options
array
Output
boolean
True if successful
Details
visibility
public
final
false
static
false

save

save( boolean $cacheFlag = null ) : boolean

Overrides xPDOObject::save to handle closure table edits.

Arguments
$cacheFlag
boolean
Output
boolean
Details
visibility
public
final
false
static
false

sendEmail

sendEmail( string $subject, string $body, string $to ) : boolean

Send an email

Arguments
$subject
string
The subject of the email
$body
string
The body of the email to send
$to
string
The email address to send to
Output
boolean
Details
visibility
protected
final
false
static
false
Documentation was generated by DocBlox 0.11.2.