Bluz\Controller\Meta
Meta information from reflection of the function
- Author: Anton Shevchuk
Synopsis
- // members
- protected $file;
- protected integer $cache = 0;
- protected array $accept = ;
- protected array $acl = ;
- protected array $method = ;
- protected array $params = ;
- protected $privilege;
- protected array $route = ;
- protected array $values = ;
- // methods
- public void __construct()
- public static Meta __set_state()
- public void process()
- public array params()
- public string getFile()
- public int getCache()
- public void setCache()
- protected integer prepareCache()
- public array|null getAccept()
- public void setAccept()
- public array|null getAcl()
- public void setAcl()
- public array|null getMethod()
- public void setMethod()
- public array getParams()
- public void setParam()
- public string|null getPrivilege()
- public void setPrivilege()
- public array|null getRoute()
- public void setRoute()
- protected void initRoute()
- protected string prepareRoutePattern()
- // Inherited methods from Options
- public mixed getOption()
- public void setOption()
- public array getOptions()
- public Options setOptions()
- protected void initOptions()
Hierarchy
Uses
Members
protected
- $accept — array
- $acl — array
- $cache — integer
- $file — string
- $method — array
- $options — array
- $params — array
- $privilege — string
- $route — array
- $values — array
Methods
protected
- initRoute() — Init Route
- prepareCache() — Prepare Cache
- prepareRoutePattern() — Prepare Route pattern
public
- __construct() — Constructor of Reflection
- __set_state() — Set state required for working with var_export (used inside PHP File cache)
- getAccept() — Get accepted type
- getAcl() — Get Acl privileges
- getCache() — Get Cache TTL
- getFile() — Get path to file
- getMethod() — Get HTTP Method
- getParams() — Get all params
- getPrivilege() — Get Privilege fo ACL
- getRoute() — Get Route
- params() — Process request params
- process() — Process to get reflection from file
- setAccept() — Set accepted types
- setAcl() — Set Acl privileges
- setCache() — Set Cache TTL
- setMethod() — Set HTTP Method
- setParam() — Set param types
- setPrivilege() — Set Privilege fo ACL allow only one privilege
- setRoute() — Set Route
Inherited from Bluz\Common\Options
protected
- initOptions() — Check and initialize options in package
public
- getOption() — Get option by key
- getOptions() — Get all options
- setOption() — Set option by key over setter
- setOptions() — Setup, check and init options
History
-
2017-07-06T15:23:00+00:00 (commit #73e7e96)
Author: Anton Shevchuk (AntonShevchuk@gmail.com) / Commiter: Anton Shevchuk (AntonShevchuk@gmail.com)
Fixed codestyle
-
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-27T07:41:15+00:00 (commit #3880ffe)
Author: Anton Shevchuk (AntonShevchuk@gmail.com) / Commiter: Anton Shevchuk (AntonShevchuk@gmail.com)
Small refactoring
-
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-21T15:14:44+00:00 (commit #c7538da)
Author: Anton Shevchuk (AntonShevchuk@gmail.com) / Commiter: Anton Shevchuk (AntonShevchuk@gmail.com)
Replace `sizeof` to `count`
-
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-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-02-15T16:09:44+00:00 (commit #0fc0c8b)
Author: Anton Shevchuk (AntonShevchuk@gmail.com) / Commiter: Anton Shevchuk (AntonShevchuk@gmail.com)
Updated coveralls config
-
2017-02-13T10:14:18+00:00 (commit #43dbf55)
Author: Anton Shevchuk (AntonShevchuk@gmail.com) / Commiter: Anton Shevchuk (AntonShevchuk@gmail.com)
Rollback to `getCount()` method
-
2017-01-30T13:15:49+00:00 (commit #fd5d943)
Author: Anton (AntonShevchuk@gmail.com) / Commiter: GitHub (AntonShevchuk@gmail.com)
Merge pull request #395 from AntonShevchuk/master Added `AttachmentResponse`
-
2017-01-30T12:38:53+00:00 (commit #0ab8691)
Author: Anton Shevchuk (AntonShevchuk@gmail.com) / Commiter: Anton Shevchuk (AntonShevchuk@gmail.com)
Added `AttachmentResponse` Added `attachment($file)` helper for `Controller`