Bluz\Proxy\Response
Proxy to Response
Example of usage
<code>
use Bluz\Proxy\Response;
Response::setStatusCode(304);
Response::setHeader('Location', '/index/index');
</code>
- Author: Anton Shevchuk
Synopsis
- // methods
- private static void initInstance()
- public static void redirect()
- public static void redirectTo()
- public static void reload()
- // Inherited methods from ProxyTrait
- public static void setInstance()
- public static mixed __callStatic()
- // Inherited methods from Singleton
- public static Response getInstance()
- public static void resetInstance()
Hierarchy
Members
protected
- $instance — Bluz\Proxy\Response
Methods
private
- initInstance() — Init instance
public
- redirect() — Redirect to URL
- redirectTo() — Redirect to controller
- reload() — Reload current page please, be careful to avoid loop of reload
Inherited from Bluz\Proxy\ProxyTrait
public
- __callStatic() — Handle dynamic, static calls to the object.
- setInstance() — Set or replace instance
Inherited from Bluz\Common\Singleton
public
- getInstance() — Get instance
- resetInstance() — Reset instance
History
-
2017-10-25T07:37:19+00:00 (commit #9bf9beb)
Author: Anton Shevchuk (AntonShevchuk@gmail.com) / Commiter: Anton Shevchuk (AntonShevchuk@gmail.com)
Updated `Redurect` helper for usage full URL
-
2017-10-20T10:18:07+00:00 (commit #d6666a1)
Author: Anton Shevchuk (AntonShevchuk@gmail.com) / Commiter: Anton Shevchuk (AntonShevchuk@gmail.com)
Fixed `Response::reload()` Fixed codestyle
-
2017-08-30T14:59:17+00:00 (commit #034de77)
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-06-30T11:02:27+00:00 (commit #347a99b)
Author: Anton Shevchuk (AntonShevchuk@gmail.com) / Commiter: Anton Shevchuk (AntonShevchuk@gmail.com)
Changed all Proxy classes, mark all of them as `final`
-
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-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`