SproutCMS

This is the code documentation for the SproutCMS project

class Moderate

Extending this class

<?php
/**
* New class description goes here
* 
* @author Your Name, 2024-05-05
**/
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' =&gt; '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
    }
    
}
?>