|
| addStyle ($style, $id=null) |
|
| addStyleSrc ($source, $id=null, $options=null) |
|
| addScript ($script, $id=null) |
|
| addScriptInit ($script, $id=null) |
|
| addScriptSrc ($source, $id=null, $options=null) |
|
| minifyFiles ($type, $sources, $target=null, $id=null, $options=null) |
|
| minifyScripts ($sources, $target=null, $id=null, $options=null) |
|
| minifyStyles ($sources, $target=null, $id=null, $options=null) |
|
| head () |
|
| script () |
|
| createWidget ($id, $widget) |
| Create a view widget. More...
|
|
| widget ($id) |
|
| notRenderedWidgetIds ($ids=null) |
|
| renderWidget ($id) |
|
| render () |
|
| jsonEncode ($data) |
|
| render () |
|
| __construct ($fred, $config=null) |
|
| __destruct () |
|
| clientConfig () |
| Public configuration. More...
|
|
| config ($key, $default=null) |
| Retrieve a config value. More...
|
|
| ping () |
| Ping function. More...
|
|
| filemtime ($filename) |
| Filemtime with session cache. More...
|
|
| component ($name) |
| Get a component (local or default). More...
|
|
| components (... $names) |
| Get multiple components in an array. More...
|
|
| propertyExists ($property) |
| Check if a property exists (public or published). More...
|
|
| constants ($prefix=null) |
| Return all constants. More...
|
|
| get ($key) |
| Get one or more properties. More...
|
|
| set ($key, $value=null) |
| Set one or more properties. More...
|
|
| __get ($key) |
|
| __set ($key, $value) |
|
Definition at line 5 of file Html.php.
◆ addResource()
addResource |
( |
& |
$resource, |
|
|
|
$id, |
|
|
|
$value, |
|
|
|
$options = null |
|
) |
| |
|
protected |
◆ addScript()
addScript |
( |
|
$script, |
|
|
|
$id = null |
|
) |
| |
◆ addScriptInit()
addScriptInit |
( |
|
$script, |
|
|
|
$id = null |
|
) |
| |
◆ addScriptSrc()
addScriptSrc |
( |
|
$source, |
|
|
|
$id = null , |
|
|
|
$options = null |
|
) |
| |
◆ addStyle()
addStyle |
( |
|
$style, |
|
|
|
$id = null |
|
) |
| |
◆ addStyleSrc()
addStyleSrc |
( |
|
$source, |
|
|
|
$id = null , |
|
|
|
$options = null |
|
) |
| |
◆ createWidget()
createWidget |
( |
|
$id, |
|
|
|
$widget |
|
) |
| |
Create a view widget.
First the complete model widget class name is looked up in the widgetClassNames. If not found this is retried with only the basename. If not found the basename is sought in the defaultWidgetNamespace, and the same goes for the client config class name (stripped from the default model widget namespace). If still no result, the defaultWidgetClassName is used.
- Parameters
-
string | $id | Widget ID. |
\\Rsi\\Fred\\Conroller\\Widget | $widget | Model widget. |
- Returns
- \Rsi\Fred\Controller\View\Html\Widget
Definition at line 174 of file Html.php.
◆ getMobile()
◆ head()
◆ init()
◆ integrity()
integrity |
( |
|
$resource, |
|
|
|
$hash = null |
|
) |
| |
|
protected |
◆ minifyFiles()
minifyFiles |
( |
|
$type, |
|
|
|
$sources, |
|
|
|
$target = null , |
|
|
|
$id = null , |
|
|
|
$options = null |
|
) |
| |
◆ minifyScripts()
minifyScripts |
( |
|
$sources, |
|
|
|
$target = null , |
|
|
|
$id = null , |
|
|
|
$options = null |
|
) |
| |
◆ minifyStyles()
minifyStyles |
( |
|
$sources, |
|
|
|
$target = null , |
|
|
|
$id = null , |
|
|
|
$options = null |
|
) |
| |
◆ notRenderedWidgetIds()
notRenderedWidgetIds |
( |
|
$ids = null | ) |
|
◆ render()
◆ renderForm()
renderForm |
( |
|
$content = null | ) |
|
|
protected |
Render the form.
- Parameters
-
string | $content | The content for the form (default = all widgets). |
- Returns
- string HTML for the form.
Definition at line 244 of file Html.php.
◆ renderFormAction()
renderFormAction |
( |
|
$action | ) |
|
|
protected |
◆ renderFormActions()
◆ renderWidget()
◆ renderWidgets()
renderWidgets |
( |
|
$ids = null , |
|
|
|
$builder = null |
|
) |
| |
|
protected |
Render the widgets.
- Parameters
-
array | $ids | ID's of the widgets to render (default = all not rendered yet). |
Rsi\Fred\Controller\View\Html\Builder | $builder | Builder to use (uses builderClassNames to create a new if empty). |
- Returns
- string Rendered HTML.
Definition at line 215 of file Html.php.
◆ script()
◆ widget()
◆ $_integrityCacheFile
$_integrityCacheFile = null |
|
protected |
◆ $_integrityHashes
◆ $_noPush
◆ $_script
◆ $_scriptInit
◆ $_scriptSrc
◆ $_style
◆ $_styleSrc
◆ $_template
◆ $_widgets
◆ $actionCaptionPrefix
$actionCaptionPrefix = 'action' |
Prefix to prepend to the action name to get a translation ID.
Definition at line 24 of file Html.php.
◆ $asyncPrefix
Resource ID prefix to indicate asynchronous loading.
Definition at line 15 of file Html.php.
◆ $builderClassNames
$builderClassNames = [null => __CLASS__ . '\\Builder'] |
Default builder class name per client type (null =.
Definition at line 22 of file Html.php.
◆ $convert
◆ $debugMinifyProbability
$debugMinifyProbability = 4 |
Chance (1 in x) for using minified file in debug mode.
Definition at line 14 of file Html.php.
◆ $defaultTemplatePath
$defaultTemplatePath = null |
◆ $defaultWidgetClassName
$defaultWidgetClassName = __CLASS__ . '\\Widget' |
◆ $defaultWidgetNamespace
$defaultWidgetNamespace = __CLASS__ . '\\Widget' |
◆ $deferPrefix
Resource ID prefix to indicate deferred loading.
Definition at line 16 of file Html.php.
◆ $formClass
◆ $formInvalidMessage
$formInvalidMessage = null |
◆ $integrityAlgo
$integrityAlgo = 'sha256' |
Hashing algorithm to use for subresource integrity (empty = do not use).
Definition at line 17 of file Html.php.
◆ $renderedWidgetIds
◆ $widgetClassNames
View widget class name (value) per widget class name (key).
Definition at line 18 of file Html.php.
◆ RESOURCE_ASYNC
Serve the resource with the asynchronous attribute.
Definition at line 9 of file Html.php.
◆ RESOURCE_DEFER
Serve the resource with the deferred attribute.
Definition at line 10 of file Html.php.
◆ RESOURCE_NO_PUSH
const RESOURCE_NO_PUSH = 1 |
Do not add a push header for the resource.
Definition at line 7 of file Html.php.
◆ RESOURCE_PROXY
Serve the resource through the proxy component.
Definition at line 8 of file Html.php.
The documentation for this class was generated from the following file:
- /var/www/fred.local/vendor/rsi/fred/src/Rsi/Fred/Controller/View/Html.php