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, 2025-11-18
**/
class NewClassName extends Moderate {
public function __construct () {
// Method code goes here
}
/**
* 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
}
}
?>
|
| Powered by Pelzini, version 0.9.0 |
Documentation is made available under the
GNU Free Documentation License 1.2. Generated: Monday, 3rd April, 2023 at 02:59 pm |
|