Trait QDataBinder
Trait QDataBinder The QDataBinder trait encapsulates the functionality of data binding for multiple controls that would like to make use of it. Data binding lets you only recall data during draw time, thus saving space, because the data is not saved with the formstate. Controls that use this will have to be sure to unload the data after drawing as needed.
There are a couple of modes of this. A legacy mode use strings to record the function names. The more modern way uses an array as a callable.
Indirect Known Users
QDataGrid, QDataGridBase, QDataGridLegacy, QDataGridLegacyBase, QDataRepeater, QHtmlTable, QHtmlTableBase
public
|
#
SetDataBinder( callable|string $mixMethodName, null|
Sets the data binder. Allows it to be sent in a couple of different ways: - legacy mode: method name followed by optional control to call the method on. If not specified, will call on the form. - modern mode: a php callable. |
public
|
#
CallDataBinder( )
Bind the data by calling the data binder. Will pass the current control as the parameter to the data binder. |
public
|
|
public
|
|
public
boolean
|
|
abstract public
|
protected
|
$objDataBinder
|