* @since 1.0 * @package MammutCMS * @subpackage Module */ abstract class MMModCommentableList extends MMModBase { // called to load the list of objects, return true if objects where found (boolean) protected function loadList(); // has to return an array of value objects (stdClass[]) protected function getPage($num); // has to return the maximum number of objects (int) protected function getCount(); // has to return the number of objects per page (int) protected function getObjectsPerPage(); /** * Displayes a text */ public function runIndex(Request $request, Response $response) { $this->loadList(); $response->setContent('Hello world!'); // render the template end put the result in the response } }