Bluz\Messages\Messages
Realization of Flash Messages
- Author: Anton Shevchuk
Synopsis
- // constants
- const TYPE_ERROR = 'error';
- const TYPE_SUCCESS = 'success';
- const TYPE_NOTICE = 'notice';
- // members
- protected array $types = ;
- // methods
- protected Messages init()
- public void addNotice()
- public void addSuccess()
- public void addError()
- protected void add()
- public stdClass|null pop()
- public ArrayObject|array popAll()
- public integer count()
- public void reset()
- protected ArrayObject|null getMessagesStore()
- protected ArrayObject createEmptyMessagesStore()
- // Inherited methods from Options
- public mixed getOption()
- public void setOption()
- public array getOptions()
- public Options setOptions()
- protected void initOptions()
Hierarchy
Uses
Constants
Name | Value |
---|---|
TYPE_ERROR | 'error' |
TYPE_SUCCESS | 'success' |
TYPE_NOTICE | 'notice' |
Members
protected
- $options — array
- $types — array
Methods
protected
- add() — Add message to container
- createEmptyMessagesStore() — Creates a new empty store for messages
- getMessagesStore() — Returns current messages store
- init() — Initialize Messages container
public
- addError() — Add error
- addNotice() — Add notice
- addSuccess() — Add success
- count() — Get size of messages container
- pop() — Pop a message
- popAll() — Pop all messages
- reset() — Reset messages
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-28T14:59:13+00:00 (commit #0eea628)
Author: Anton Shevchuk (AntonShevchuk@gmail.com) / Commiter: Anton Shevchuk (AntonShevchuk@gmail.com)
Updated exceptions
-
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-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-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`