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 QHtmlTableCheckBoxColumn

A column of checkboxes.

Prints checkboxes in a column, including the header. Override this class and implement whatever hooks you need. In particular implement the CheckId hooks, and IsChecked hooks.

To get the checkbox values to post values back to PHP, each checkbox must have an id of the form:

QcontrolId_index

This class does not detect and record changes in the checkbox list. You can detect changes from within ParsePostData by calling $this->objForm->CheckableControlValue, or use the QHtmlTableCheckBoxColumn_ClickEvent to detect a change to a checkbox.

You will need to detect whether the header check all box was clicked, or a regular box was clicked and respond accordingly. In response to a click, you could store the array of ids of the checkboxes clicked in a session variable, the database, or a cache variable. You would just give an id to each checkbox. This would cause internet traffic every time a box is clicked.

QBaseClass
Extended by QAbstractHtmlTableColumn
Extended by QAbstractHtmlTableDataColumn
Extended by QHtmlTableCheckBoxColumn

Direct known subclasses

QDataGrid_CheckBoxColumn

Indirect known subclasses

ExampleCheckColumn1, ExampleCheckColumn2
Located at includes/base_controls/QHtmlTableColumn.class.php
Methods summary
public string
# FetchHeaderCellValue( )

Returns a header cell with a checkbox. This could be used as a check all box. Override this and return an empty string to turn it off.

Returns a header cell with a checkbox. This could be used as a check all box. Override this and return an empty string to turn it off.

Returns

string

Overrides

QAbstractHtmlTableColumn::FetchHeaderCellValue()
public
# FetchCellObject( mixed $item )

Return the value of the cell. FetchCellValue will process this more if needed. Default returns an entire data row and relies on FetchCellValue to extract the needed data.

Return the value of the cell. FetchCellValue will process this more if needed. Default returns an entire data row and relies on FetchCellValue to extract the needed data.

Parameters

$item
public array
# GetCheckboxParams( mixed|null $item )

Returns an array of parameters to attach to the checkbox tag. Includes whether the checkbox should appear as checked. Will try the callback first, and if not present, will try overridden functions.

Returns an array of parameters to attach to the checkbox tag. Includes whether the checkbox should appear as checked. Will try the callback first, and if not present, will try overridden functions.

Parameters

$item
Null to indicate that we want the params for the header cell.

Returns

array
public
# SetCheckParamCallback( $callable )

Optional callback to control the appearance of the checkboxes. You can use a callback, or subclass to do this. If a callback, it should be of the form: func($item)

Optional callback to control the appearance of the checkboxes. You can use a callback, or subclass to do this. If a callback, it should be of the form: func($item)

$item is either the line item, or null to indicate the header

This should return the following values in an array to indicate what should be put as attributes for the checkbox tag: id name value checked (only return a value here if you want it checked. Otherwise, do not include in the array) See below for a description of what should be returned for each item.

Parameters

$callable
protected
# GetCheckboxId( mixed|null $item )

Returns the id for the checkbox itself. This is used together with the check action to send the item id to the action. Your id should look like:

Returns the id for the checkbox itself. This is used together with the check action to send the item id to the action. Your id should look like:

Parameters

$item
Null to get the id for the header checkbox
protected boolean
# IsChecked( mixed|null $item )

Return true if the checkbox should be drawn checked. Override this to provide the correct value.

Return true if the checkbox should be drawn checked. Override this to provide the correct value.

Parameters

$item
Null to get the id for the header checkbox

Returns

boolean
protected null|string
# GetCheckboxName( mixed|null $item )

Return the name attribute for the checkbox. If you return null, the checkbox will not get submitted to the form. If you return a name, then that will be the key for the value submitted by the form. If you return a name ending with brackets [], then this checkbox will be part of an array of values posted to that name.

Return the name attribute for the checkbox. If you return null, the checkbox will not get submitted to the form. If you return a name, then that will be the key for the value submitted by the form. If you return a name ending with brackets [], then this checkbox will be part of an array of values posted to that name.

Parameters

$item
Null to get the id for the header checkbox

Returns

null|string
protected string
# GetCheckboxValue( mixed|null $item )

Return the value attribute of the checkbox tag. Checkboxes are required to have a value in html. This value will be what is posted by form post.

Return the value attribute of the checkbox tag. Checkboxes are required to have a value in html. This value will be what is posted by form post.

Parameters

$item
Null to get the id for the header checkbox

Returns

string
public
# Sleep( )

Fix up possible embedded reference to the form.

Fix up possible embedded reference to the form.

Overrides

QAbstractHtmlTableDataColumn::Sleep()
public
# Wakeup( QForm $objForm )

Restore embedded objects.

Restore embedded objects.

Parameters

$objForm

Overrides

QAbstractHtmlTableDataColumn::Wakeup()
public boolean|integer|mixed|QHtmlTableBase|string
# __get( string $strName )

PHP magic method

PHP magic method

Parameters

$strName

Returns

boolean|integer|mixed|QHtmlTableBase|string

Throws

Exception
QCallerException

Overrides

QAbstractHtmlTableDataColumn::__get()
public mixed|
# __set( string $strName, string $mixValue )

PHP magic method

PHP magic method

Parameters

$strName
$mixValue

Returns

mixed|

Throws

Exception
QCallerException
QInvalidCastException

Overrides

QAbstractHtmlTableDataColumn::__set()
Methods inherited from QAbstractHtmlTableDataColumn
FetchCellValue()
Methods inherited from QAbstractHtmlTableColumn
GetCellClass(), GetCellId(), GetCellParams(), GetCellStyle(), GetColParams(), GetHeaderCellParams(), ParsePostData(), RenderCell(), RenderColTag(), RenderHeaderCell(), __construct()
Methods inherited from QBaseClass
OverrideAttributes(), __call()
Properties summary
protected boolean $blnHtmlEntities
# false
protected $checkParamCallback
# null
protected boolean $blnShowCheckAll
# false
Properties inherited from QAbstractHtmlTableDataColumn
$objOrderByClause, $objPostCallback, $objReverseOrderByClause, $strFormat, $strPostMethod
Properties inherited from QAbstractHtmlTableColumn
$blnRenderAsHeader, $blnVisible, $cellParamsCallback, $intSpan, $objCellStyler, $objColStyler, $objHeaderCellStyler, $objParentTable, $strCssClass, $strHeaderCssClass, $strId, $strName
Magic properties summary
public boolean $ShowCheckAll
Magic properties inherited from QAbstractHtmlTableDataColumn
$Format, $OrderByClause, $PostCallback, $PostMethod, $ReverseOrderByClause
Magic properties inherited from QAbstractHtmlTableColumn
$CellParamsCallback, $CellStyler, $ColStyler, $CssClass, $HeaderCellStyler, $HeaderCssClass, $HtmlEntities, $Id, $Name, $ParentTable, $RenderAsHeader, $Span, $Visible, $_ParentTable
API documentation generated by ApiGen