\ModuleController
Created by PhpStorm.
User: Conrad
Date: 24/06/2016
Time: 9:06 AM
Synopsis
class ModuleController
extends Controller
{
- // members
- protected ContentModule $dataRecord;
- protected $currentController;
- // methods
- public void __construct()
- public void init()
- public SSViewer getViewer()
- public void handleRequest()
- public void data()
- public void currController()
- public mixed Link()
- public array|SS_HTTPResponse|ViewableData_Customised actionResponse()
- public SS_HTTPResponse jsonResponse()
- public SS_HTTPResponse ajaxResponse()
Hierarchy
Extends
- Controller
Members
protected
- $currentController
- $dataRecord — ContentModule
Methods
public
- __construct()
- Link() — Overwrite the link function from the Controller
- actionResponse() — Determines whether ajax or not and responds accordingly
- ajaxResponse() — Handles returning the template for an ajax response
- currController()
- data()
- getViewer() — Return an SSViewer object to process the data
- handleRequest()
- init()
- jsonResponse() — Handles returning a JSON response, makes sure Content-Type header is set