Ubiquity 2.5.2
php rapid development framework
Loading...
Searching...
No Matches
RestResourceController.php
Go to the documentation of this file.
1<?php
2
7
10
21
22 public function initialize() {
23 $thisClass = \get_class ( $this );
24 if (! isset ( $this->model ))
25 $this->model = CacheManager::getRestResource ( $thisClass );
26 if (! isset ( $this->model )) {
27 $modelsNS = $this->config ["mvcNS"] ["models"];
28 $this->model = $modelsNS . "\\" . $this->_getResponseFormatter ()->getModel ( $thisClass );
29 }
30 parent::initialize ();
31 }
32
38 public static function _getTemplateFile() {
39 return 'restResourceController.tpl';
40 }
41}
Manager for caches (Router, Rest, models).
Abstract base class for Rest controllers.
Abstract base class for Rest controllers associated with a specific resource (model).
initialize()
Method called before each action Can be override in derived class.
static _getTemplateFile()
Returns the template for creating this type of controller.
Gateway class between database and object model.
Definition DAO.php:33
Ubiquity\controllers\rest$HasResourceInterface This class is part of Ubiquity.