SproutCMS

This is the code documentation for the SproutCMS project

Page options:

Inherited members

class Moderate

Variables

NameVisibilityDescription
$db 
$friendly_name 

Functions

NameVisibilityDescription
__constructpublic 
approvepublicApprove the specified item.
deletepublicDelete the specified item.
getFriendlyNamepublicReturn the 'friendly' name of this item
getListpublicReturn an array of one or more items which need moderating.

public __construct

void $Moderate->__construct ( );

This function does not have a description

public approve

void $Moderate->approve ( mixed $id );

Approve the specified item.
This is called from within a transaction.

public delete

void $Moderate->delete ( mixed $id );

Delete the specified item.
Usually the best is to use the controller _deleteSave method.
This is called from within a transaction.

public getFriendlyName

unknown $Moderate->getFriendlyName ( );

Return the 'friendly' name of this item

public getList

unknown $Moderate->getList ( );

Return an array of one or more items which need moderating.

The array should have the following format:
[] = array('id' => 'html')
     id      record identifier
     html    record preview html

Return NULL on error