Class PageCommentInterface
Represents an interface for viewing and adding page comments Create one, passing the page discussed to the constructor. It can then be inserted into a template.
- Object
-
ViewableData
implements
IteratorAggregate
-
RequestHandler
-
PageCommentInterface
Methods summary
public
|
#
__construct(
Create a new page comment interface |
public
|
|
public static
|
|
public static
|
#
set_comments_require_permission( string $permission )
|
public static
|
#
set_show_comments_when_disabled( boolean $state )
|
public static
|
|
public static
|
|
public
|
|
public static
boolean
|
|
public
boolean
|
#
PostingRequiresPermission( )
if this page comment form requires users to have a valid permission code in order to post (used to customize the error message). |
public
|
|
public
|
|
public
|
|
public
|
|
public
|
#
DeleteAllLink( )
A link to PageComment_Controller.deleteallcomments() which deletes all comments on a page referenced by the url param pageid |
Methods inherited from RequestHandler
allowedActions(),
checkAccessAction(),
getRequest(),
handleRequest(),
hasAction(),
httpError()
Methods inherited from ViewableData
ATT_val(),
BaseHref(),
CSSClasses(),
ColumnBreak(),
ColumnCalc(),
ColumnNumber(),
ColumnPad(),
ColumnPos(),
CurrentMember(),
CurrentPage(),
Debug(),
Even(),
EvenOdd(),
First(),
FirstLast(),
HasPerm(),
IsAjax(),
JS_val(),
Last(),
Me(),
Middle(),
MiddleString(),
Modulus(),
MultipleOf(),
Odd(),
Pos(),
RAW_val(),
SQL_val(),
ThemeDir(),
ThemeName(),
Top(),
TotalItems(),
XML_val(),
__get(),
__isset(),
__set(),
buildCastingCache(),
cachedCall(),
castingClass(),
castingHelper(),
castingHelperPair(),
castingObjectCreator(),
castingObjectCreatorPair(),
customise(),
defineMethods(),
escapeTypeForField(),
getField(),
getIterator(),
getSecurityID(),
getXMLValues(),
hasField(),
hasValue(),
i18nLocale(),
iteratorProperties(),
obj(),
renderWith(),
setCustomisedObj(),
setField()
Methods inherited from Object
__call(),
__toString(),
__wakeup(),
addMethodsFrom(),
addStaticVars(),
addWrapperMethod(),
add_extension(),
add_static_var(),
allMethodNames(),
cacheToFile(),
cacheToFileWithArgs(),
clearCache(),
combined_static(),
create(),
createMethod(),
create_from_string(),
exists(),
extInstance(),
extend(),
getCustomClass(),
getExtensionInstance(),
getExtensionInstances(),
get_extensions(),
get_static(),
hasExtension(),
hasMethod(),
has_extension(),
invokeWithExtensions(),
is_a(),
loadCache(),
parentClass(),
parse_class_spec(),
remove_extension(),
sanitiseCachename(),
saveCache(),
set_stat(),
set_static(),
set_uninherited(),
stat(),
strong_create(),
uninherited(),
uninherited_static(),
useCustomClass()
Magic methods summary
Properties summary
public static
array
|
$url_handlers |
#
The default URL handling rules. This specifies that the next component of the URL corresponds to a method to be called on this RequestHandlingData object. |
public static
array
|
$allowed_actions |
#
Define a list of action handling methods that are allowed to be called directly by URLs. The variable should be an array of action names. This sample shows the different values that it can contain: |
protected
mixed
|
$controller | |
protected
mixed
|
$methodName | |
protected
mixed
|
$page | |
public static
boolean
|
$comments_require_login |
#
If this is true, you must be logged in to post a comment (and therefore, you don't need to specify a 'Your name' field unless your name is blank) |
public static
string
|
$comments_require_permission |
#
If this is a valid permission code, you must be logged in and have the appropriate permission code on your account before you can post a comment. |
public static
boolean
|
$use_ajax_commenting |
#
If this is true it will include the javascript for AJAX commenting. If it is set to false then it will not load the files required and it will fall back |
public static
boolean
|
$show_comments_when_disabled |
#
If this is true then we should show the existing comments on the page even when we have disabled the comment form. |
public static
String
|
$order_comments_by |
#
Define how you want to order page comments by. By default order by newest to oldest. |
public static
array
|
$required_fields |
#
Required fields for Comment Form |
Properties inherited from RequestHandler
Properties inherited from ViewableData
$casting,
$customisedObject,
$default_cast,
$failover,
$iteratorPos,
$iteratorTotalItems