\ZenFlow
Just dynamic content update abstraction layer
Synopsis
class ZenFlow
{
- // constants
- const ROUTE_ZENFLOW = 'zenflow';
- // members
- protected integer $timeout = 3000;
- protected string $flowId = '';
- protected string $content = '';
- // methods
- public void __construct()
- protected void setFlowId()
- protected void setTimeout()
- protected void setContent()
- public string render()
- protected bool listener()
Constants
Name | Value |
---|---|
ROUTE_ZENFLOW | 'zenflow' |
Members
protected
- $content
—
string
Content string to render in container area - $flowId
—
string
Contains current zen-flow ID string - $timeout
—
int
Container refresh timeout in ms.
Methods
protected
- listener() — Listens for some flow callback, checks is this current instance flow and renders content.
- setContent() — Puts content data from constructor into protected property.
- setFlowId() — Sets current instance flow ID
- setTimeout() — Sets instance refresh rate in ms.
public
- __construct() — Creates new Zen-flow instance
- render() — Renders initial zen-container with some prefilled content.