Ubiquity 2.5.2
php rapid development framework
Loading...
Searching...
No Matches
JsonRestController.php
Go to the documentation of this file.
1<?php
2
7
13
25 const API_VERSION = 'JSON REST 1.0';
26
28 return new ResponseFormatter();
29 }
30
31 protected function getRequestFormatter(): RequestFormatter {
32 return new JsonRequestFormatter();
33 }
34
40 public static function _getApiVersion() {
41 return self::API_VERSION;
42 }
43
49 public static function _getTemplateFile() {
50 return 'restDynResourceController.tpl';
51 }
52}
53
Abstract base class for Rest controllers.
getResponseFormatter()
To override, returns the active formatter for the response.
static _getTemplateFile()
Returns the template for creating this type of controller.
getRequestFormatter()
To override, returns the active formatter for the request.
Ubiquity\controllers\rest\formatters$JsonRequestFormatter This class is part of Ubiquity.
Ubiquity\controllers\rest\formatters$RequestFormatter This class is part of Ubiquity.