Class Control
Controls are composite objects that contain of several elements that are managed by the control. Additionally it offers standard methods and properties that are also available for elements such that both can be used in several CoreUI API method calls.
Controls feature an own set of attributes that change the behaviour of the control. Each attribute features a setter method. Controls must return the a reference to their instance from setter methods to allow chained method calls.
- Core\Object implements Core\Chainable
- Core\Set implements Core\Accessor
- Core\View\Driver\coreui\Control implements Core\Configurable
Direct known subclasses
Core\View\Driver\coreui\Control\Button
,
Core\View\Driver\coreui\Control\Dialog
,
Core\View\Driver\coreui\Control\Table
Indirect known subclasses
Core\View\Driver\coreui\Control\Button\Navigate
,
Core\View\Driver\coreui\Control\Button\Submit
,
Core\View\Driver\coreui\Control\Table\Listing
Namespace: Core\View\Driver\coreui
Package: CoreUI\Control
Since: 3.1
Requires: PHP 5.3
Version: 1.1
Located at View/Driver/coreui/Control.inc.php
Methods summary
public
|
|
protected
|
|
public
string
|
|
protected
|
#
_T( string $key, string $default = null )
Loads the specified entry from the associated translator interface. |
public static
|
#
derive(
Control factory. |
public
string
|
#
id( )
Returns an automatically assigned ID for the control. The ID is generated on first request and buffered by the control. An ID is unique per instance and automatically reset if a control is cloned. |
public
|
#
on( string $event, string $action )
Attaches an event handler to the control. The event is attached to the
actual element whose ID is returned by the |
public
|
#
setOption( string $key, mixed $value )
Sets a control option. Invokes the corresponding |
public
|
#
setOptions( array $options = null )
Sets multiple control options. Invokes the corresponding |
public
|
|
public
|
Methods inherited from Core\Object
__autocreateFactory()
,
__call()
,
__processParameters()
,
attachMethod()
,
chain()
,
getValueForKey()
,
getValueForKeyPath()
,
getValueForUndefinedKey()
,
hash()
,
issetValueForKey()
,
setValueForKey()
,
setValueForKeyPath()
,
setValueForUndefinedKey()
,
uuid()
Constants summary
Constants inherited from Core\Object
AnyParameterType
,
AutochainParameterType
,
AutocreateParameterType
,
BooleanParameterType
,
CharParameterType
,
EnumParameterType
,
IntegerParameterType
,
RealParameterType
,
StringParameterType
,
UserParameterType
Properties summary
protected
|
$_v_options
Hash of control options. |
|
protected
|
$_v_proxy
CoreUI proxy driver instance. |
|
protected
|
$_v_translator
Buffered translator instance from parent CoreUI proxy. |
|
protected
string
|
$_id
Buffered ID of control, automatically generated by the |
Magic properties
public read-only
string
|
$id
Automatically assigned ID for the control. |
public read-only
|
$options
Hash of control options. |
public read-only
|
$proxy
CoreUI proxy driver instance. |
public read-only
|
$translator
Translator instance from parent CoreUI proxy. |