Class QHtmlTable_CodeGenerator
This is a base class to support classes that are derived from QHtmlTable. The methods here support the use of QHtmlTable derived classes as a list connector, something that displays a list of records from a database, and optionally allows the user to do CRUD operations on individual records.
- AbstractControl_CodeGenerator
- QControlBase_CodeGenerator
- QControl_CodeGenerator
- QHtmlTable_CodeGenerator implements QDataList_CodeGenerator_Interface
Direct known subclasses
QDataGridBase_CodeGeneratorIndirect known subclasses
QDataGrid_CodeGenerator
public
string
|
|
public
string
|
#
DataListConnectorComments(
Generate the text to insert into the "ConnectorGen" class comments. This would typically be "property" PHPDoc declarations for __get and __set properties declared in the class. |
public
|
#
DataListConnector(
The main entry point for generating all the "ConnectorGen" code that defines the generated list connector in the generated/connector_base directory. |
protected
string
|
#
DataListMembers(
Generate the member variables for the "ConnectorGen" class. |
protected
string
|
#
DataListColumnDeclarations(
Generate member variables for the columns that will be created later. This implementation makes the columns public so that classes can easily manipulate the columns further after construction. |
protected
|
#
DataListConstructor(
Generate a constructor for a subclass of itself. |
public
string
|
|
public
string
|
#
DataListCreateColumns(
Creates the columns as part of the datagrid subclass. |
protected
string
|
#
DataListDataBinder(
Generates a data binder that can be called from the parent control, or called directly by this control. |
protected
string
|
|
protected
string
|
|
protected
string
|
|
protected
string
|
|
public
boolean
|
#
DataListHasFilter( )
Return true if the data list has its own build-in filter. False will mean that a filter field will be created by default. This is still controllable by the model connector. |
public
mixed
|
#
DataListInstantiate(
Returns the code that creates the list object. This would be embedded in the pane or form that is using the list object. |
public
|
#
DataListRefresh(
Generate the code that refreshes the control after a change in the filter. The default redraws the entire control. If your control can refresh just a part of itself, insert that code here. |
public
string
|
#
DataListHelperMethods(
Generate additional methods for the enclosing control to interact with this generated control. |
protected
string
|
#
DataListParentCreate(
Generates code for the enclosing control to create this control. |
protected
string
|
#
DataListParentCreateColumns(
Generates a function to add columns to the list. |
protected
string
|
#
DataListParentMakeEditable(
Generates a typical action to respond to row clicks. |
protected
string
|
#
DataListGetRowParams(
Generates the row param callback that will enable row clicks to know what row was clicked on. |
public
string
|
#
DataListSubclassOverrides(
Generates an alternate create columns function that could be used by the list panel to create the columns directly. This is designed to be added as commented out code in the list panel override class that the user can choose to use. |
GetControlClass(),
__construct()
|
$strControlClassName
|