Class QHtmlTablePropertyColumn
Displays a property of an object, as in $object->Property
If your DataSource is an array of objects, use this column to display a particular property of each object.
Can search with depth to, as in $obj->Prop1->Prop2.
-
QBaseClass
-
QAbstractHtmlTableColumn
-
QAbstractHtmlTableDataColumn
-
QHtmlTablePropertyColumn
Methods summary
public
|
#
__construct( string $strName, string|null $strProperty, QQNode $objBaseNode = null )
Parameters
- $strName
- name of the column
- $strProperty
the property name to use when accessing the DataSource row object.
Can be null, in which case object will have the ->__toString() function called on it.
- $objBaseNode
- if not null, the OrderBy and ReverseOrderBy clauses will be created using the property path and the given database node
Overrides
|
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
|
public
boolean|integer|mixed|QHtmlTableBase |string
|
#
__get( string $strName )
PHP magic method
Parameters
Returns
Throws
Overrides
|
public
mixed|
|
#
__set( string $strName, string $mixValue )
PHP magic method
Parameters
Returns
mixed|
Throws
Overrides
|
Methods inherited from QAbstractHtmlTableColumn
FetchHeaderCellValue(),
GetCellClass(),
GetCellId(),
GetCellParams(),
GetCellStyle(),
GetColParams(),
GetHeaderCellParams(),
ParsePostData(),
RenderCell(),
RenderColTag(),
RenderHeaderCell()
|
Properties inherited from QAbstractHtmlTableColumn
$blnHtmlEntities,
$blnRenderAsHeader,
$blnVisible,
$cellParamsCallback,
$intSpan,
$objCellStyler,
$objColStyler,
$objHeaderCellStyler,
$objParentTable,
$strCssClass,
$strHeaderCssClass,
$strId,
$strName
|
Magic properties summary
public
string
|
$Property
the property to use when accessing the objects in the DataSource array. Can be a s series of properties separated with '->', i.e. 'Prop1->Prop2->Prop3' will find the Prop3 item inside the Prop2 object, inside the Prop1 object, inside the current object.
|
public
boolean
|
$NullSafe
if true the value fetcher will check for nulls before accessing the properties
|
Magic properties inherited from QAbstractHtmlTableColumn
$CellParamsCallback,
$CellStyler,
$ColStyler,
$CssClass,
$HeaderCellStyler,
$HeaderCssClass,
$HtmlEntities,
$Id,
$Name,
$ParentTable,
$RenderAsHeader,
$Span,
$Visible,
$_ParentTable
|