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