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 QHtmlTableLinkColumn

Class QHtmlTableLinkColumn

A multi-purpose link column. This column lets you specify a column whose purpose is to show an anchor tag with text, attributes and properties related to row item. It can handle row items that are objects or arrays, and specify parameters or methods of objects, as well as offsets in arrays.

You can specify the text of the link, the destination address, the html get variables, and the attributes to the anchor tag in a variety of ways as follows: - as a static string - as a two member array callable, with the row item passed to the callable - as an object property or string of properties (i.e. $item->prop1->prop2) by starting the string with "->" and separating each property with a "->". If the property ends with "()", then it will be a method call instead. The same can be accomplished by passing an array, with each item being a step in the property chain. This is provided the row item is an object. - as an index into an array, or a multi-index array (i.e. $item['index1']['index2']) by passing a string of the form "[index1][index2]...". You can also pass an array that contains the indexes into the array. This is provided the row item is an array.

Other options: - Specify null for $mixDestination, and no link will be created, just text. This is helpful for turning off the link mode without having to create a completely different kind of column. - Specify a QControlProxy for $mixDestination to draw it as a proxy control. In this case, $blnAsButton can be used to draw the proxy as a button rather than a link.

Examples: Create a column to edit a person, with "Edit" in the header, the name of the person as the label of each link, and give each anchor a class of "link". $objColumn = new QHtmlTableLinkColumn ("Edit", "->Name", "person_edit.php", ["intId"=>"->Id"], ["class"=>"link"]);

Create a similar column, but use a proxy instead, with the person id as the action parameter to the proxy and drawing the proxy as a button. $objProxy = new QControlProxy($this); $objColumn = new QHtmlTableLinkColumn ("Edit", "Edit", $objProxy, "->Id", null, true); Create a "zoom" column for a table that uses an array of arrays as its source. Pass the 'id' index from the item as the id to the destination link. Use the "title" index as the label for the link. $objColumn = new QHtmlTableLinkColumn ("Zoom", "[title]", "zoom.php", ["intId"=>"[id]"]); Create a simple link column that just specifies a data attribute, and uses event delegation attached to the table to trap a click on the link. Return the id of the item clicked to the action as the action parameter. $objTable = new QHtmlTable ($this); $objTable->CreateLinkColumn("", "->Name", "#", null, ["data-id"=>"->Id"]); $objTable->AddAction(new QClickEvent(0, null, "a"), new QAjaxAction("myActionScript", null, null, '$j(this).data("id")'));

QBaseClass
Extended by QAbstractHtmlTableColumn
Extended by QAbstractHtmlTableDataColumn
Extended by QHtmlTableLinkColumn
Located at includes/base_controls/QHtmlTableColumn.class.php
Methods summary
public
# __construct( string $strName, null|string|array|QQNode $mixText, null|string|array|QControlProxy $mixDestination = null, null|string|array $getVars = null, null|array $tagAttributes = null, boolean $blnAsButton = false )

QHtmlTableLinkColumn constructor.

QHtmlTableLinkColumn constructor.

Parameters

$strName
Column name to be displayed in the table header.
$mixText

The text to display as the label of the anchor, a callable callback to get the text, a string that represents a property chain or a multi-dimensional array, or an array that represents the same, or a QQNode representing the property. Depends on what type of row item is passed.

$mixDestination

The text representing the destination of the anchor, a callable callback to get the destination, a string that represents a property chain or a multi-dimensional array, or an array that represents the same, or a QControlProxy. Depends on what type of row item is passed.

$getVars

An array of key=>value pairs to use as the GET variables in the link URL, or in the case of a QControlProxy, possibly a string to represent the action parameter. In either case, each item can be a property chain, an array index list, a QQNode, or a callable callback as specified above. If the destination is a QControlProxy, this would be what to use as the action parameter.

$tagAttributes

An array of key=>value pairs to use as additional attributes in the tag. For example, could be used to add a class or an id to each tag.

$blnAsButton
Only used if this is drawing a QControlProxy. Will draw the proxy as a button.

Overrides

QAbstractHtmlTableColumn::__construct()
protected static mixed
# SplitSpec( mixed $mixSpec )

Utility function to pre-process a value specifier. This will take a property list chain or an array index chain and split it into an array representing the parts.

Utility function to pre-process a value specifier. This will take a property list chain or an array index chain and split it into an array representing the parts.

Parameters

$mixSpec

Returns

mixed
protected static string
# GetObjectValue( mixed $mixSpec, mixed $item )

Utility function to post-process a value specifier. Will walk through an object property chain or an array index chain and return the final value.

Utility function to post-process a value specifier. Will walk through an object property chain or an array index chain and return the final value.

Parameters

$mixSpec
$item

Returns

string
public string
# FetchCellObject( mixed $item )

Returns the initial text that will be the label of the link. This text can be further processed by using the inherited PostCallback function and similar properties.

Returns the initial text that will be the label of the link. This text can be further processed by using the inherited PostCallback function and similar properties.

Parameters

$item

Returns

string
public string
# FetchCellValue( mixed $item )

Returns the final string representing the content of the cell.

Returns the final string representing the content of the cell.

Parameters

$item

Returns

string

Overrides

QAbstractHtmlTableDataColumn::FetchCellValue()
public
# Sleep( )

Fix up possible embedded references to the form.

Fix up possible embedded references 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 QAbstractHtmlTableColumn
FetchHeaderCellValue(), GetCellClass(), GetCellId(), GetCellParams(), GetCellStyle(), GetColParams(), GetHeaderCellParams(), ParsePostData(), RenderCell(), RenderColTag(), RenderHeaderCell()
Methods inherited from QBaseClass
OverrideAttributes(), __call()
Properties summary
protected boolean $blnHtmlEntities
# false
protected string|array $mixText
#
protected string|array|QControlProxy|null $mixDestination
#
protected array|string|null $getVars
#
protected array|null $tagAttributes
#
protected boolean $blnAsButton
#
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 $AsButton

Only used if this is drawing a QControlProxy. Will draw the proxy as a button.

public write-only null|string|array $Text

The text to display as the label of the anchor, a callable callback to get the text, a string that represents a property chain or a multi-dimensional array, or an array that represents the same. Depends on what time of row item is passed.

public write-only null|string|array|QControlProxy $Destination

The text representing the destination of the anchor, a callable callback to get the destination, a string that represents a property chain or a multi-dimensional array, or an array that represents the same, or a QControlProxy. Depends on what time of row item is passed.

public write-only null|string|array $GetVars

An array of key=>value pairs to use as the GET variables in the link URL, or in the case of a QControlProxy, possibly a string to represent the action parameter. In either case, each item can be a property chain, an array index list, or a callable callback as specified above.

public write-only null|array $TagAttributes

An array of key=>value pairs to use as additional attributes in the tag. For example, could be used to add a class or an id to each tag.

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