Methods summary
public
|
#
__construct( Nethgui\View\ViewInterface $view, callable $templateResolver, string $inheritFlags, string $charset,… )
Parameters
- $view
- $templateResolver
- $inheritFlags
- $contentType
- $charset,…
Overrides
|
public
Nethgui\Renderer\Xhtml
|
|
protected
|
|
public
Nethgui\Renderer\Xhtml
|
#
includeJavascript( string $jsCode )
Append a Javascript code fragment to the global .js temporary file
Append a Javascript code fragment to the global .js temporary file
Parameters
- $jsCode
- Raw Javascript code
Returns
Api
|
public
Nethgui\Renderer\Xhtml
|
#
includeCss( string $cssCode )
Append a CSS code fragment to the global .css temporary file
Append a CSS code fragment to the global .css temporary file
Parameters
Returns
Api
|
public
Nethgui\Renderer\Xhtml
|
#
includeFile( string $fileName )
Append the given file to a global temporary file with the same extension.
Append the given file to a global temporary file with the same extension.
The file path is relative to the /Resource/ directory. The
is assumed to be the same of the module.
Parameters
Returns
Api
|
public
Nethgui\Renderer\Xhtml
|
#
includeTranslations( array|Traversable $keys )
Transfer the given translation strings to the javascript environment.
Transfer the given translation strings to the javascript environment.
Parameters
Returns
See
$.Nethgui.Translator in jquery.nethgui.base.js
|
public
Nethgui\Renderer\Xhtml
|
#
requireFlag( integer $flags )
$flag bits are ORed on the widget that include this view.
$flag bits are ORed on the widget that include this view.
Parameters
Returns
Api
|
public
Nethgui\Renderer\Xhtml
|
#
rejectFlag( integer $flags )
$flag bits are masked on the widget that include this view.
$flag bits are masked on the widget that include this view.
Parameters
Returns
See
Api
|
public
|
#
calculateIncludeFlags( integer $widgetFlags )
Calculate flags for view inclusion
Calculate flags for view inclusion
Parameters
See
\Nethgui\Widget\Xhtml\Inset
|
public
Nethgui\Renderer\Xhtml
|
#
useFile( string $fileName )
Link an external file into the final XHTML document
Link an external file into the final XHTML document
The XHTML tag generated depends on the file extension. Javascript (.js)
needs the SCRIPT tag, External stylesheets (.css) a LINK tag.
Parameters
Returns
Api
|
public
integer
|
#
getDefaultFlags( )
The default flags inherited by widget generated by this factory.
The default flags inherited by widget generated by this factory.
Returns
integer
Api
Implementation of
|
public
Nethgui\Renderer\WidgetFactoryInterface
|
#
setDefaultFlags( integer $flags )
The default flags inherited by widget generated by this factory.
The default flags inherited by widget generated by this factory.
Parameters
Returns
Api
Implementation of
|
public
Nethgui\Renderer\WidgetInterface
|
#
elementList( integer $flags = 0 )
Create a list of elements
Create a list of elements
Add the actual elements invoking the insert() operation of the returned object.
Parameters
Returns
Api
Implementation of
|
public
Nethgui\Renderer\WidgetInterface
|
#
buttonList( integer $flags = 0 )
Create a list of button elements
Create a list of button elements
Add the actual elements invoking the insert() operation of the returned object.
Parameters
Returns
Api
Implementation of
|
public
Nethgui\Renderer\WidgetInterface
|
#
button( string $name, integer $flags = 0 )
Create a button control
Parameters
- $name
- The view member name
- $flags
- Optional
Returns
Api
Implementation of
|
public
Nethgui\Renderer\WidgetInterface
|
#
checkBox( string $name, string $value, integer $flags = 0 )
Create a checkbox control
Create a checkbox control
Optionally specify the "uncheckedValue" to get a value from the form
when the checkbox is unchecked.
Parameters
- $name
- The view member name
- $value
- The value assigned to the control, when checked.
- $flags
- Optional {STATE_DISABLED, STATE_CHECKED}
Returns
Api
Implementation of
|
public
Nethgui\Renderer\WidgetInterface
|
#
fieldsetSwitch( string $name, string $value, integer $flags = 0 )
Create a selectable fieldset container
Create a selectable fieldset container
Set FIELDSETSWITCH_CHECKBOX flag to get a checkbox switch, otherwise
a radioButton is rendered
Set FIELDSETSWITCH_EXPANDABLE flag to fold out the fieldset, when
selected
Parameters
Returns
See
Api
Implementation of
|
public
Nethgui\Renderer\WidgetInterface
|
#
form( integer $flags = 0 )
Create a simple form container.
Create a simple form container.
Parameters
- $flags
- Optional - {STATE_DISABLED}
Returns
Api
Implementation of
|
public
Nethgui\Renderer\WidgetInterface
|
#
hidden( string $name, integer $flags = 0 )
Create an hidden control
Parameters
- $name
- The view member name
- $flags
- Optional {STATE_DISABLED}
Returns
Api
Implementation of
|
public
Nethgui\Renderer\WidgetInterface
|
#
inset( string $name, integer $flags = 0 )
Include a view element that is a sub-view
Include a view element that is a sub-view
Parameters
- $name
- The view member name
- $flags
- Optional {STATE_DISABLED}
Returns
Api
Implementation of
|
public
Nethgui\Renderer\WidgetInterface
|
#
panel( integer $flags = 0 )
Create a panel container
Parameters
Returns
Api
Implementation of
|
public
Nethgui\Renderer\WidgetInterface
|
#
radioButton( string $name, string $value, integer $flags = 0 )
Create a radio button control
Create a radio button control
Parameters
- $name
- The view member name
- $value
- The value assigned to the control, when selected.
- $flags
- Optional {STATE_DISABLED, STATE_CHECKED}
Returns
Api
Implementation of
|
public
Nethgui\Renderer\WidgetInterface
|
#
selector( string $name, integer $flags = 0 )
Create a selector control
Create a selector control
Parameters
- $name
- The view member name holding the selected value(s)
- $flags
Returns
Api
Implementation of
|
public
Nethgui\Renderer\WidgetInterface
|
#
tabs( integer $flags = 0 )
Create a tabs container.
Parameters
Returns
Api
Implementation of
|
public
Nethgui\Renderer\WidgetInterface
|
#
textInput( string $name, integer $flags = 0 )
Create a text input control
Create a text input control
Parameters
- $name
- The view member name
- $flags
- Optional {STATE_DISABLED}
Returns
Api
Implementation of
|
public
Nethgui\Renderer\WidgetInterface
|
#
textLabel( string $name, integer $flags = 0 )
Create a text label.
Parameters
- $name
- The view member name to generate the label contents
- $flags
- Optional {STATE_DISABLED}
Returns
Api
Implementation of
|
public
Nethgui\Renderer\WidgetInterface
|
#
fieldset( string $name = NULL, integer $flags = 0 )
Create a fieldset container
Create a fieldset container
Parameters
- $name
- OPTIONAL - The view member passed as argument for the "template" attribute.
- $flags
- OPTIONAL - flags
Returns
See
Api
Implementation of
|
public
Nethgui\Renderer\WidgetInterface
|
#
literal( string|object|Nethgui\View\ViewInterface $data, $flags = 0 )
Create literal data - helper.
Create literal data - helper.
Parameters
- $data
- Can be a string, any object implementing toString() method, or a View.
- $flags
Returns
Api
Implementation of
|
public
Nethgui\Renderer\WidgetInterface
|
#
columns( )
Create a column container - helper.
Create a column container - helper.
Add the actual columns through the insert() operation of the returned object
Returns
Api
Implementation of
|
public
|
|
public
Nethgui\Renderer\WidgetInterface
|
#
textArea( string $name, integer $flags = 0 )
Create a text area
Attributes:
- dimensions
- appendOnly
Parameters
Returns
See
556
Api
Implementation of
|
public
Nethgui\Renderer\WidgetInterface
|
#
collectionEditor( string $name, integer $flags = 0 )
A javascript-configurable object collection editor, with a TEXTAREA
backend.
A javascript-configurable object collection editor, with a TEXTAREA
backend.
Parameters
Returns
See
1446
Api
Implementation of
|
public
Nethgui\Renderer\WidgetInterface
|
#
console( $name, $flags = 0 )
Create a console-like text area
Create a console-like text area
Returns
See
Api
Implementation of
|
public
Nethgui\Renderer\WidgetInterface
|
#
dateInput( $name, $flags = 0 )
Create a date picker widget:
Create a date picker widget:
Attributes:
- class (string) "Date " plus one of "be" (default), "me", "le".
Returns
See
474
Api
Implementation of
|
public
Nethgui\Renderer\WidgetInterface
|
#
timeInput( $name, $flags = 0 )
Create a time picker widget:
Create a time picker widget:
Attributes:
- class (string) "Time " plus one of "hm" or "hms"
Returns
Since
1.7
Api
Implementation of
|
public
Nethgui\Renderer\WidgetInterface
|
#
objectPicker( $name = NULL, $flags = 0 )
Pick/selects objects from a collection
Pick/selects objects from a collection
Returns
See
WidgetFactoryInterface::selector()
Api
Implementation of
|
public
Nethgui\Renderer\WidgetInterface
|
#
slider( $name, $flags = 0 )
Select a value in the given range.
Select a value in the given range.
Set attributes
- min
- max
- step
Returns
See
Feature #1242
Api
Implementation of
|
public
Nethgui\Renderer\WidgetInterface
|
#
textList( string $name, integer $flags = 0 )
Create a text list widget
Create a text list widget
Parameters
- $name
- A view element containing an array value
- $flags
Returns
Api
Implementation of
|
public
|
#
objectsCollection( string $name, integer $flags = 0 )
Create widget that renders the given collection applying a specific template
Create widget that renders the given collection applying a specific template
Parameters
- $name
- A view element containing the collection data source
- $flags
Implementation of
|
public
|
#
fileUpload( string $name, integer $flags = 0 )
Create a file upload widget
Create a file upload widget
Parameters
Implementation of
|
public
array
|
#
getDependencySetters( )
The returned hash is indexed by the model class name and has a callable
objects as value. Each callable is invoked with the model instance as
only argument.
The returned hash is indexed by the model class name and has a callable
objects as value. Each callable is invoked with the model instance as
only argument.
Returns
array
Overrides
|
public
|
|
public
Nethgui\Component\DependencyInjectorAggregate
|
|