This is the code documentation for the SproutCMS project
Search documentation |
class Moderate
Extending this class<?php
/**
* New class description goes here
*
* @author Your Name, 2026-09-12
**/
class NewClassName extends Moderate {
/**
* 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
**/
public function getList () {
// Method code goes here
}
/**
* Approve the specified item.
* This is called from within a transaction.
**/
public function approve ($id) {
// Method code goes here
}
/**
* Delete the specified item.
* Usually the best is to use the controller _deleteSave method.
* This is called from within a transaction.
**/
public function delete ($id) {
// Method code goes here
}
public function __construct () {
// Method code goes here
}
}
?>
|
| Powered by Pelzini, version 0.9.0 |
Documentation is made available under the
GNU Free Documentation License 1.2. Generated: Wednesday, 5th August, 2026 at 03:31 pm |
|