LINK_TYPE_PLUGIN
LINK_TYPE_PLUGIN
LINK_TYPE_PLUGIN
The HTML rendering class
A basic class to render HTML using PHP scripts.
$rendering : \Orpheus\Rendering\Rendering
The current Rendering
$current : \Orpheus\Rendering\Rendering
The current global rendering
render(string $layout = null, array $env = array()) : string
Render the model
string | $layout | The model to use, default use is defined by child |
array | $env | An environment variable, commonly an array but depends on the rendering class used |
The generated rendering.
Render the model using $env. This function does not display the result, see display().
doDisplay(string $layout = null, array $env = null) : boolean
Call the display function
string | $layout | The model to use. Default value is null (behavior depending on renderer) |
array | $env | An array containing environment variables. Default value is null ($GLOBALS) |
getLayoutsPath() : string
Get the layout theme path
The models theme path
None found |
None found |
None found |
pushToStack(string $layout, array $env)
Push rendering to stack
string | $layout | |
array | $env |
None found |
getCurrentRendering() : array
Get current rendering
array($layout, $env);
None found |
None found |
addTypedURL(array $array, string $url, string $type = null)
Add an $url by $type in $array
array | $array | |
string | $url | |
string | $type |
None found |
listTypedURL(array $array, string $type = null) : array
List urls by $type in $array
array | $array | |
string | $type |
None found |
show(array $env = null)
Show the rendering using a child rendering class
array | $env | An environment variable |
attention |
Require the use of a child class, you can not instantiate this one Show the $SHOWMODEL rendering using the child class. A call to this function terminate the running script. Default is the global environment. |
---|
checkRendering() : string
Ensure the current rendering
The rendering class name
Check the rendering and try to create a valid one if not found.
None found |