Bluz\View\View
View - simple template engine with native PHP syntax
- Author: Anton Shevchuk
Synopsis
- // members
- protected $baseUrl;
- protected $path;
- protected array $partialPath = ;
- protected $template;
- // methods
- public void __construct()
- public string __toString()
- public string getPath()
- public void setPath()
- public string getTemplate()
- public void setTemplate()
- public void addPartialPath()
- // Inherited methods from Container
- protected void doSetContainer()
- protected mixed doGetContainer()
- protected bool doContainsContainer()
- protected void doDeleteContainer()
- public Container setFromArray()
- public array toArray()
- public Container resetArray()
- // Inherited methods from JsonSerialize
- public array jsonSerialize()
- // Inherited methods from MagicAccess
- public void __set()
- public mixed __get()
- public bool __isset()
- public void __unset()
- // Inherited methods from Options
- public mixed getOption()
- public void setOption()
- public array getOptions()
- public Options setOptions()
- protected void initOptions()
- // 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
Uses
- Bluz\Common\Container\Container
- Bluz\Common\Container\JsonSerialize
- Bluz\Common\Container\MagicAccess
- Bluz\Common\Options
- Bluz\Common\Helper
- Bluz\Response\ResponseTrait
Implements
Members
protected
- $baseUrl — string
- $container — array
- $helpers — array
- $helpersPath — array
- $options — array
- $partialPath — array
- $path — string
- $template — string
Methods
public
- __construct() — Create view instance, initial default helper path
- __toString() — Render like string
- addPartialPath() — Add partial path for use inside partial and partialLoop helpers
- getPath() — {@inheritdoc}
- getTemplate() — {@inheritdoc}
- setPath() — {@inheritdoc}
- setTemplate() — {@inheritdoc}
Inherited from Bluz\Common\Container\Container
protected
- doContainsContainer() — Check contains key in container
- doDeleteContainer() — Delete value by key
- doGetContainer() — Get value by key
- doSetContainer() — Set key/value pair
public
- resetArray() — Reset container array
- setFromArray() — Sets all data in the row from an array
- toArray() — Returns the column/value data as an array
Inherited from Bluz\Common\Container\JsonSerialize
public
- jsonSerialize() — Specify data which should be serialized to JSON
Inherited from Bluz\Common\Container\MagicAccess
public
- __get() — Magic alias for get() regular method
- __isset() — Magic alias for contains() regular method
- __set() — Magic alias for set() regular method
- __unset() — Magic alias for delete() regular method
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
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-11-07T12:29:29+00:00 (commit #2c5c5ce)
Author: Anton Shevchuk (AntonShevchuk@gmail.com) / Commiter: Anton Shevchuk (AntonShevchuk@gmail.com)
Added method `Db::fetchUniqueGroup()` Added method `Table::getMeta()` Updated codestyle of tests
-
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-07-19T16:24:18+00:00 (commit #f17977f)
Author: Anton Shevchuk (AntonShevchuk@gmail.com) / Commiter: Anton Shevchuk (AntonShevchuk@gmail.com)
Replace `require` with `include`
-
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-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-26T10:38:42+00:00 (commit #3d36e21)
Author: Anton Shevchuk (AntonShevchuk@gmail.com) / Commiter: Anton Shevchuk (AntonShevchuk@gmail.com)
Small refactoring ArraySource for Grid Added PHP7+ badge
-
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-21T15:13:17+00:00 (commit #5e9b7bc)
Author: Anton Shevchuk (AntonShevchuk@gmail.com) / Commiter: Anton Shevchuk (AntonShevchuk@gmail.com)
Small codestyle fixes
-
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-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
-
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`