Bluz\Controller\Controller
Statement
- Author: Anton Shevchuk
Synopsis
- // members
- protected $module;
- protected $controller;
- protected $params;
- protected $key;
- protected $template;
- protected $file;
- protected Meta $meta;
- protected Data $data;
- // methods
- public void __construct()
- public string getModule()
- protected void setModule()
- public string getController()
- protected void setController()
- public array getParams()
- protected void setParams()
- public string getTemplate()
- protected void setTemplate()
- public Data run()
- protected Data process()
- protected void findFile()
- protected string getFile()
- protected void initMeta()
- public Meta getMeta()
- public void assign()
- public Data getData()
- private bool loadData()
- private bool saveData()
- public Data jsonSerialize()
- public string __toString()
- // Inherited methods from Helper
- public void addHelperPath()
- public mixed __call()
- // Inherited methods from ResponseTrait
- public abstract string jsonSerialize()
- public abstract string __toString()
- public string render()
Hierarchy
Members
protected
- $controller — string
- $data — Bluz\Controller\Data
- $file — string
- $helpers — array
- $helpersPath — array
- $key — string
- $meta — Bluz\Controller\Meta
- $module — string
- $params — array
- $template — string
Methods
private
- loadData() — Load Data from cache
- saveData() — Save Data to cache
protected
- findFile() — Setup controller file
- getFile() — Get controller file path
- initMeta() — Retrieve reflection for anonymous function
- process() — Controller run
- setController()
- setModule()
- setParams()
- setTemplate()
public
- __construct() — Constructor of Statement
- __toString() — Magic cast to string
- assign() — Assign key/value pair to Data object
- getController()
- getData() — Get controller Data container
- getMeta() — Get meta information
- getModule()
- getParams()
- getTemplate()
- jsonSerialize() — Specify data which should be serialized to JSON
- run() — Run controller logic
Inherited from Bluz\Common\Helper
public
- __call() — Call magic helper
- addHelperPath() — Add helper path
Inherited from Bluz\Response\ResponseTrait
public
- __toString()
- jsonSerialize()
- render() — Render object as HTML or JSON
History
-
2017-10-27T09:46:51+00:00 (commit #a8ad1bf)
Author: Anton Shevchuk (AntonShevchuk@gmail.com) / Commiter: Anton Shevchuk (AntonShevchuk@gmail.com)
Added `Proxy\Logger::exception` method
-
2017-08-29T11:42:23+00:00 (commit #c74d11d)
Author: Anton Shevchuk (AntonShevchuk@gmail.com) / Commiter: Anton Shevchuk (AntonShevchuk@gmail.com)
Small codestyle fixes
-
2017-07-18T12:44:53+00:00 (commit #cc068ce)
Author: Anton Shevchuk (AntonShevchuk@gmail.com) / Commiter: Anton Shevchuk (AntonShevchuk@gmail.com)
Created tests for Controller Helpers Added method `Response::getType()` Renamed method `Response::switchType()` to `Response::setType()`
-
2017-07-18T08:59:25+00:00 (commit #8343994)
Author: Anton Shevchuk (AntonShevchuk@gmail.com) / Commiter: Anton Shevchuk (AntonShevchuk@gmail.com)
Created tests for Controller Helpers Updated View Interface - added getters for `path` and `template`
-
2017-07-11T07:52:52+00:00 (commit #9fd121c)
Author: Anton Shevchuk (AntonShevchuk@gmail.com) / Commiter: Anton Shevchuk (AntonShevchuk@gmail.com)
Updated comment's blocks
-
2017-07-06T15:08:00+00:00 (commit #8bfc97b)
Author: Anton Shevchuk (AntonShevchuk@gmail.com) / Commiter: Anton Shevchuk (AntonShevchuk@gmail.com)
Controller refactoring
-
2017-06-30T08:36:40+00:00 (commit #2259ecf)
Author: Anton Shevchuk (AntonShevchuk@gmail.com) / Commiter: Anton Shevchuk (AntonShevchuk@gmail.com)
Fixed comments style
-
2017-04-27T14:48:45+00:00 (commit #400a185)
Author: Anton Shevchuk (AntonShevchuk@gmail.com) / Commiter: Anton Shevchuk (AntonShevchuk@gmail.com)
Rename `Proxy\Request::getAccept()` to `Proxy\Request::checkAccept()`
-
2017-04-24T12:46:43+00:00 (commit #064fc6a)
Author: Anton Shevchuk (AntonShevchuk@gmail.com) / Commiter: Anton Shevchuk (AntonShevchuk@gmail.com)
Added calls of `Logger::error()` instead of `echo` Fixed codestyle
-
2017-04-21T16:03:13+00:00 (commit #41cf4f8)
Author: Anton Shevchuk (AntonShevchuk@gmail.com) / Commiter: Anton Shevchuk (AntonShevchuk@gmail.com)
Small optimizations
-
2017-04-21T13:24:35+00:00 (commit #3b25a3d)
Author: Anton Shevchuk (AntonShevchuk@gmail.com) / Commiter: Anton Shevchuk (AntonShevchuk@gmail.com)
Small update for codestyle
-
2017-04-13T14:30:00+00:00 (commit #1dd2879)
Author: Anton Shevchuk (AntonShevchuk@gmail.com) / Commiter: Anton Shevchuk (AntonShevchuk@gmail.com)
Moved error handling to skeleton
-
2017-04-13T11:17:00+00:00 (commit #106162d)
Author: Anton Shevchuk (AntonShevchuk@gmail.com) / Commiter: Anton Shevchuk (AntonShevchuk@gmail.com)
Refactoring: - renamed Controller\Reflection to Controller\Meta (for avoid mistake with Reflection class) - set absolute path for file loader - very small perfomance optiomization - small fixes with codestyle
-
2017-04-12T09:45:17+00:00 (commit #e8463fb)
Author: Anton Shevchuk (AntonShevchuk@gmail.com) / Commiter: Anton Shevchuk (AntonShevchuk@gmail.com)
Fixed controller cache issue
-
2017-04-11T08:21:54+00:00 (commit #f9900f1)
Author: Anton Shevchuk (AntonShevchuk@gmail.com) / Commiter: Anton Shevchuk (AntonShevchuk@gmail.com)
Small refactoring for call `__DIR__`
-
2017-02-15T16:09:44+00:00 (commit #0fc0c8b)
Author: Anton Shevchuk (AntonShevchuk@gmail.com) / Commiter: Anton Shevchuk (AntonShevchuk@gmail.com)
Updated coveralls config