TIP_Comments

Introduction

Comment module

Source file
/Type/module/content/comments.php
Extends
TIP_Content

Properties

master : TIP_Content

A reference to the master module

access
protected

parent_field : string

The field to be joined to the master primary key

access
protected

master_count : string

The field of 'master' that holds the comment counter

access
protected

Methods

checkOptions (&$options)

&$options
lines
51 - 70
static
yes
access
protected

__construct ($options)

Constructor

$options
array
Properties values
lines
79 - 82
access
protected

Initializes a TIP_Comments instance.

tagAdd ($params) : string|null

Add a comments form

$params
string
Parameters of the tag
lines
101 - 132
access
protected

Allows to show an inline form in the middle of a page.

If the form is validated, the result is rendered in the page. Also, the cancel button in the invalidated form is removed (it is not useful for inline forms). $params must contain the id of the master row.

actionAdd ($id, [$options]) : bool

Perform an add action

$id
mixed
The identifier of the row to duplicate
$options
array [ = array() ]
Options to pass to the form() call
lines
149 - 171
access
protected

Overrides the default add action, assuring the 'browse_field' has a valid value.

TIP_Comments was last modified by TiP on Mon 25 May 2009 06:22:25 PM CEST
Hosted by BerliOS Developer Logo