Overview

Packages

  • Actions
  • Codegen
  • Controls
    • Base
  • DatabaseAdapters
  • Events
  • None
  • Sessions
  • Tests

Classes

  • AbstractControl_CodeGenerator
  • AjaxTimingForm
  • BBCodeParser
  • CalculatorForm
  • ComplexColumn
  • Event
  • ExampleForm
  • Examples
  • ExampleService
  • ExamplesForm
  • HtmlJqDoc
  • InjectForm
  • JavaScriptHelper
  • JqAttributes
  • JqDoc
  • JqIcon
  • Method
  • MyControl
  • MyQSlider_ChangeEvent
  • NavPanel
  • Option
  • Order
  • Project
  • ProjectPickerListBox
  • QAbstractCacheProvider
  • QAbstractHtmlTableColumn
  • QAbstractHtmlTableDataColumn
  • QAccordion_ActivateEvent
  • QAccordion_BeforeActivateEvent
  • QAccordion_CreateEvent
  • QAjaxResponse
  • QApplication
  • QApplicationBase
  • QArchive
  • QAutocomplete_ChangeEvent
  • QAutocomplete_CloseEvent
  • QAutocomplete_CodeGenerator
  • QAutocomplete_CreateEvent
  • QAutocomplete_FocusEvent
  • QAutocomplete_OpenEvent
  • QAutocomplete_ResponseEvent
  • QAutocomplete_SearchEvent
  • QAutocomplete_SelectEvent
  • QAutocomplete_SourceEvent
  • QAutocompleteBase_CodeGenerator
  • QAutocompleteListItem
  • QBaseClass
  • QBorderCollapse
  • QBorderStyle
  • QBrowserType
  • QCache
  • QCacheDeleteAction
  • QCacheDeleteAllAction
  • QCacheProviderAPC
  • QCacheProviderLocalMemory
  • QCacheProviderMemcache
  • QCacheProviderNoCache
  • QCacheProviderProxy
  • QCacheSetAction
  • QCalendarType
  • QCallType
  • QCausesValidation
  • QCheckBox_CodeGenerator
  • QCheckBoxBase_CodeGenerator
  • QCheckBoxList_CodeGenerator
  • QCheckBoxListBase_CodeGenerator
  • QControl_CodeGenerator
  • QControlBase_CodeGenerator
  • QControlCategoryType
  • QControlProxy
  • QCrossScripting
  • QCryptography
  • QCss
  • QCursor
  • QDatabaseFieldBase
  • QDatabaseResultBase
  • QDataGrid_CodeGenerator
  • QDataGridBase_CodeGenerator
  • QDatepicker_BeforeShowDayEvent
  • QDatepicker_BeforeShowEvent
  • QDatepicker_CalculateWeekEvent
  • QDatepicker_ChangeMonthYearEvent
  • QDatepicker_CloseEvent
  • QDatepicker_SelectEvent
  • QDatepicker_SelectEvent2
  • QDatepickerBox_BeforeShowDayEvent
  • QDatepickerBox_BeforeShowEvent
  • QDatepickerBox_CalculateWeekEvent
  • QDatepickerBox_ChangeMonthYearEvent
  • QDatepickerBox_CloseEvent
  • QDatepickerBox_CodeGenerator
  • QDatepickerBox_SelectEvent
  • QDatepickerBoxBase_CodeGenerator
  • QDateTime
  • QDateTimePicker_CodeGenerator
  • QDateTimePickerBase_CodeGenerator
  • QDateTimePickerFormat
  • QDateTimePickerType
  • QDateTimeSpan
  • QDbBackedFormStateHandler
  • QDialog_BeforeCloseEvent
  • QDialog_ButtonEvent
  • QDialog_CloseEvent
  • QDialog_CreateEvent
  • QDialog_DragEvent
  • QDialog_DragStartEvent
  • QDialog_DragStopEvent
  • QDialog_FocusEvent
  • QDialog_OpenEvent
  • QDialog_ResizeEvent
  • QDialog_ResizeStartEvent
  • QDialog_ResizeStopEvent
  • QDisplayStyle
  • QDraggable_CreateEvent
  • QDraggable_DragEvent
  • QDraggable_StartEvent
  • QDraggable_StopEvent
  • QDroppable_ActivateEvent
  • QDroppable_CreateEvent
  • QDroppable_DeactivateEvent
  • QDroppable_DropEvent
  • QDroppable_OutEvent
  • QDroppable_OverEvent
  • QEmailAttachment
  • QEmailMessage
  • QEmailServer
  • QEmailStringAttachment
  • QErrorAttribute
  • QFile
  • QFileAssetType
  • QFileFormStateHandler
  • QFloatTextBox_CodeGenerator
  • QFloatTextBoxBase_CodeGenerator
  • QFolder
  • QFormGen
  • QFormStateHandler
  • QGridLines
  • QHListControl
  • QHorizontalAlign
  • QHtml
  • QHtmlReporter
  • QHtmlTable_CodeGenerator
  • QHtmlTableCallableColumn
  • QHtmlTableCheckBoxColumn
  • QHtmlTableCheckBoxColumn_ClickEvent
  • QHtmlTableIndexedColumn
  • QHtmlTableLinkColumn
  • QHtmlTableNodeColumn
  • QHtmlTablePropertyColumn
  • QI18n
  • QImageType
  • QInformixPdoDatabaseField
  • QInformixPdoDatabaseResult
  • QInformixPdoDatabaseRow
  • QInstallationValidationResult
  • QInstallationValidator
  • QIntegerTextBox_CodeGenerator
  • QIntegerTextBoxBase_CodeGenerator
  • QJqButton_CreateEvent
  • QJqCheckBox_CreateEvent
  • QJqRadioButton_CreateEvent
  • QJsClosure
  • QJsFunction
  • QJsNoQuoteKey
  • QJsParameterList
  • QJsPriority
  • QJsVarName
  • QLabel_CodeGenerator
  • QLabelBase_CodeGenerator
  • QLexer
  • QListBox_CodeGenerator
  • QListBoxBase_CodeGenerator
  • QListControl_CodeGenerator
  • QListControlBase_CodeGenerator
  • QMenu
  • QMenu_BlurEvent
  • QMenu_CreateEvent
  • QMenu_FocusEvent
  • QMenu_SelectEvent
  • QMimeType
  • QModelConnectorArgumentType
  • QModelConnectorCreateType
  • QModelConnectorEditDlg
  • QModelConnectorOptions
  • QModelConnectorParam
  • QMultiLevelCacheProvider
  • QMySqlDatabaseResult
  • QNoScriptAjaxAction
  • QOracleDatabaseField
  • QOracleDatabaseResult
  • QOrderedListType
  • QOverflow
  • QPartialQueryBuilder
  • QPdoDatabaseResult
  • QPgConditionILike
  • QPgConditionJsonContains
  • QPgQ
  • QPosition
  • QPostgreSqlPdoDatabaseField
  • QPostgreSqlPdoDatabaseResult
  • QPostgreSqlPdoDatabaseRow
  • QProgressbar_ChangeEvent
  • QProgressbar_CompleteEvent
  • QProgressbar_CreateEvent
  • QQ
  • QQAggregationClause
  • QQAssociationNode
  • QQAverage
  • QQClause
  • QQColumnNode
  • QQCondition
  • QQConditionAll
  • QQConditionAnd
  • QQConditionBetween
  • QQConditionComparison
  • QQConditionEqual
  • QQConditionExists
  • QQConditionGreaterOrEqual
  • QQConditionGreaterThan
  • QQConditionIn
  • QQConditionIsNotNull
  • QQConditionIsNull
  • QQConditionLessOrEqual
  • QQConditionLessThan
  • QQConditionLike
  • QQConditionLogical
  • QQConditionNone
  • QQConditionNot
  • QQConditionNotBetween
  • QQConditionNotEqual
  • QQConditionNotExists
  • QQConditionNotIn
  • QQConditionNotLike
  • QQConditionOr
  • QQCount
  • QQDistinct
  • QQExpand
  • QQExpandAsArray
  • QQExpandVirtualNode
  • QQFunctionNode
  • QQGroupBy
  • QQHavingClause
  • QQLimitInfo
  • QQMathNode
  • QQMaximum
  • QQMinimum
  • QQNamedValue
  • QQNode
  • QQNoParentNode
  • QQOrderBy
  • QQReverseReferenceNode
  • QQSelect
  • QQSubQueryCountNode
  • QQSubQueryNode
  • QQSubQuerySqlNode
  • QQSum
  • QQTableNode
  • QQuery
  • QQueryBuilder
  • QQueryExpansion
  • QQVirtualNode
  • QRadioButtonList_CodeGenerator
  • QRadioButtonListBase_CodeGenerator
  • QRegex
  • QRepeatDirection
  • QRequestMode
  • QResizable_CreateEvent
  • QResizable_ResizeEvent
  • QResizable_StartEvent
  • QResizable_StopEvent
  • QResizeHandleDirection
  • QRssCategory
  • QRssFeed
  • QRssImage
  • QRssItem
  • QSampleTranslation
  • QSelectable_CreateEvent
  • QSelectable_SelectedEvent
  • QSelectable_SelectingEvent
  • QSelectable_StartEvent
  • QSelectable_StopEvent
  • QSelectable_UnselectedEvent
  • QSelectable_UnselectingEvent
  • QSelectionMode
  • QSelectMenu_ChangeEvent
  • QSelectMenu_CloseEvent
  • QSelectMenu_CreateEvent
  • QSelectMenu_FocusEvent
  • QSelectMenu_OpenEvent
  • QSelectMenu_SelectEvent
  • QSessionFormStateHandler
  • QSlider_ChangeEvent
  • QSlider_CodeGenerator
  • QSlider_CreateEvent
  • QSlider_SlideEvent
  • QSlider_StartEvent
  • QSlider_StopEvent
  • QSliderBase_CodeGenerator
  • QSoapMethod
  • QSoapParameter
  • QSoapService
  • QSortable_ActivateEvent
  • QSortable_BeforeStopEvent
  • QSortable_ChangeEvent
  • QSortable_CreateEvent
  • QSortable_DeactivateEvent
  • QSortable_OutEvent
  • QSortable_OverEvent
  • QSortable_ReceiveEvent
  • QSortable_RemoveEvent
  • QSortable_SortEvent
  • QSortable_StartEvent
  • QSortable_StopEvent
  • QSortable_UpdateEvent
  • QSpinner
  • QSpinner_ChangeEvent
  • QSpinner_CreateEvent
  • QSpinner_SpinEvent
  • QSpinner_StartEvent
  • QSpinner_StopEvent
  • QSqLite3PdoDatabaseField
  • QSqLite3PdoDatabaseResult
  • QSqLite3PdoDatabaseRow
  • QStack
  • QString
  • QTabs_ActivateEvent
  • QTabs_BeforeActivateEvent
  • QTabs_BeforeLoadEvent
  • QTabs_CreateEvent
  • QTabs_LoadEvent
  • QTag
  • QTestForm
  • QTextAlign
  • QTextBox_CodeGenerator
  • QTextBoxBase_CodeGenerator
  • QTextMode
  • QTimer
  • QTranslationPoParser
  • QType
  • QUnorderedListStyle
  • QVerticalAlign
  • QVirtualAttributeColumn
  • QWatcher
  • QWatcherBase
  • QWatcherCache
  • QWatcherDB
  • QWatcherNone
  • SampleComposite
  • SelectForm

Interfaces

  • ICacheAction
  • QDataList_CodeGenerator_Interface
  • QTranslationBase

Traits

  • QDataBinder
  • QModelTrait

Exceptions

  • QCallerException
  • QCryptographyException
  • QDataBindException
  • QDateTimeNullException
  • QEmailException
  • QIndexOutOfRangeException
  • QInformixPdoDatabaseException
  • QInvalidCastException
  • QInvalidFormStateException
  • QOptimisticLockingException
  • QPdoDatabaseException
  • QPoParserException
  • QPostgreSqlPdoDatabaseException
  • QRemoteAdminDeniedException
  • QSqLite3PdoDatabaseException
  • QUndefinedMethodException
  • QUndefinedPrimaryKeyException
  • QUndefinedPropertyException

Functions

  • __database_check_error
  • _b
  • _indent
  • _nl
  • _p
  • _r
  • _t
  • _tp
  • _tr
  • array_trim
  • beginsWith
  • CamelCaseFromDash
  • CastToInt
  • DisplayMonospacedText
  • endsWith
  • GO_BACK
  • jq_anytime_gen
  • jq_control_gen
  • jq_inc_gen
  • jq_indent
  • PrintExplainStatement
  • PrintInstructions
  • QcubedHandleCodeGenParseError
  • QcubedHandleError
  • QcubedHandleException
  • QCubedShutdown
  • QDateTimeErrorHandler
  • trimOffEnd
  • trimOffFront
  • Overview
  • Package
  • Class

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
Extended by QControlBase_CodeGenerator
Extended by QControl_CodeGenerator
Extended by QHtmlTable_CodeGenerator implements QDataList_CodeGenerator_Interface

Direct known subclasses

QDataGridBase_CodeGenerator

Indirect known subclasses

QDataGrid_CodeGenerator
Abstract
Located at includes/codegen/controls/QHtmlTable_CodeGenerator.class.php
Methods summary
public string
# VarName( string $strPropName )

dtg stands for "DataGrid", a QCubed historical name for tables displaying data. Override if you want something else.

dtg stands for "DataGrid", a QCubed historical name for tables displaying data. Override if you want something else.

Parameters

$strPropName

Returns

string

Throws

QCallerException

Overrides

QControlBase_CodeGenerator::VarName()
public string
# DataListConnectorComments( QCodeGenBase $objCodeGen, QSqlTable $objTable )

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.

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.

Parameters

$objCodeGen
$objTable

Returns

string

Implementation of

QDataList_CodeGenerator_Interface::DataListConnectorComments()
public
# DataListConnector( QCodeGenBase $objCodeGen, QSqlTable $objTable )

The main entry point for generating all the "ConnectorGen" code that defines the generated list connector in the generated/connector_base directory.

The main entry point for generating all the "ConnectorGen" code that defines the generated list connector in the generated/connector_base directory.

Parameters

$objCodeGen
$objTable

Implementation of

QDataList_CodeGenerator_Interface::DataListConnector()
protected string
# DataListMembers( QCodeGenBase $objCodeGen, QSqlTable $objTable )

Generate the member variables for the "ConnectorGen" class.

Generate the member variables for the "ConnectorGen" class.

Parameters

$objCodeGen
$objTable

Returns

string
protected string
# DataListColumnDeclarations( QCodeGenBase $objCodeGen, QSqlTable $objTable )

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.

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.

Parameters

$objCodeGen
$objTable

Returns

string

Throws

Exception
protected
# DataListConstructor( QCodeGenBase $objCodeGen, QSqlTable $objTable )

Generate a constructor for a subclass of itself.

Generate a constructor for a subclass of itself.

Parameters

$objCodeGen
$objTable
public string
# DataListCreatePaginator( QCodeGenBase $objCodeGen, QSqlTable $objTable )

Parameters

$objCodeGen
$objTable

Returns

string
public string
# DataListCreateColumns( QCodeGenBase $objCodeGen, QSqlTable $objTable )

Creates the columns as part of the datagrid subclass.

Creates the columns as part of the datagrid subclass.

Parameters

$objCodeGen
$objTable

Returns

string

Throws

Exception
protected string
# DataListDataBinder( QCodeGenBase $objCodeGen, QSqlTable $objTable )

Generates a data binder that can be called from the parent control, or called directly by this control.

Generates a data binder that can be called from the parent control, or called directly by this control.

Parameters

$objCodeGen
$objTable

Returns

string
protected string
# DataListGetCondition( QCodeGenBase $objCodeGen, QSqlTable $objTable )

Parameters

$objCodeGen
$objTable

Returns

string
protected string
# DataListGetClauses( QCodeGenBase $objCodeGen, QSqlTable $objTable )

Parameters

$objCodeGen
$objTable

Returns

string
protected string
# DataListGet( QCodeGenBase $objCodeGen, QSqlTable $objTable )

Parameters

$objCodeGen
$objTable

Returns

string
protected string
# DataListSet( QCodeGenBase $objCodeGen, QSqlTable $objTable )

Parameters

$objCodeGen
$objTable

Returns

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.

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.

Returns

boolean

Implementation of

QDataList_CodeGenerator_Interface::DataListHasFilter()
public mixed
# DataListInstantiate( QCodeGenBase $objCodeGen, QSqlTable $objTable )

Returns the code that creates the list object. This would be embedded in the pane or form that is using the list object.

Returns the code that creates the list object. This would be embedded in the pane or form that is using the list object.

Parameters

$objCodeGen
$objTable
$objTable

Returns

mixed

Implementation of

QDataList_CodeGenerator_Interface::DataListInstantiate()
public
# DataListRefresh( QCodeGenBase $objCodeGen, QSqlTable $objTable )

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.

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.

Parameters

$objCodeGen
$objTable

Implementation of

QDataList_CodeGenerator_Interface::DataListRefresh()
public string
# DataListHelperMethods( QCodeGenBase $objCodeGen, QSqlTable $objTable )

Generate additional methods for the enclosing control to interact with this generated control.

Generate additional methods for the enclosing control to interact with this generated control.

Parameters

$objCodeGen
$objTable

Returns

string

Implementation of

QDataList_CodeGenerator_Interface::DataListHelperMethods()
protected string
# DataListParentCreate( QCodeGenBase $objCodeGen, QSqlTable $objTable )

Generates code for the enclosing control to create this control.

Generates code for the enclosing control to create this control.

Parameters

$objCodeGen
$objTable

Returns

string
protected string
# DataListParentCreateColumns( QCodeGenBase $objCodeGen, QSqlTable $objTable )

Generates a function to add columns to the list.

Generates a function to add columns to the list.

Parameters

$objCodeGen
$objTable

Returns

string
protected string
# DataListParentMakeEditable( QCodeGenBase $objCodeGen, QSqlTable $objTable )

Generates a typical action to respond to row clicks.

Generates a typical action to respond to row clicks.

Parameters

$objCodeGen
$objTable

Returns

string
protected string
# DataListGetRowParams( QCodeGenBase $objCodeGen, QSqlTable $objTable )

Generates the row param callback that will enable row clicks to know what row was clicked on.

Generates the row param callback that will enable row clicks to know what row was clicked on.

Parameters

$objCodeGen
$objTable

Returns

string
public string
# DataListSubclassOverrides( QCodeGenBase $objCodeGen, QSqlTable $objTable )

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.

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.

Parameters

$objCodeGen
$objTable

Returns

string

Implementation of

QDataList_CodeGenerator_Interface::DataListSubclassOverrides()
Methods inherited from QControlBase_CodeGenerator
ConnectorCreate(), ConnectorCreateOptions(), ConnectorGet(), ConnectorPropertyComments(), ConnectorRefresh(), ConnectorSet(), ConnectorUpdate(), ConnectorUpdateMethod(), ConnectorVariableDeclaration()
Methods inherited from AbstractControl_CodeGenerator
GetControlClass(), __construct()
Properties inherited from AbstractControl_CodeGenerator
$strControlClassName
API documentation generated by ApiGen