\TbImageColumn

TbImageColumn widget class

Summary

Methods
Properties
Constants
No public methods found
$imageOptions
$imagePathExpression
$emptyText
$usePlaceHoldIt
$usePlaceKitten
$placeHoldItSize
$placeKittenSize
No constants found
renderDataCellContent()
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$imageOptions

$imageOptions : array

Type

array — the HTML options of the image tag

$imagePathExpression

$imagePathExpression : string

Type

string — is evaluated in every data cell and is used as the path of the image. The expression will have: <code>$row</code> the row number <code>$data</code> the data model of the row <code>$this</code> the column object

$emptyText

$emptyText : string

Type

string — renders if $imagePathExpression is null

$usePlaceHoldIt

$usePlaceHoldIt : bool

Type

bool — whether to use a bogus image from placehold.it or not. If true, will render an image from placehold.it according to the size set at $placeHoldItSize. Defaults to false, now placehold.it only grants access for certain amount of time. You need to ask for permission :(

$usePlaceKitten

$usePlaceKitten : bool

Type

bool — whether to use bogus image from placekitten.com or not. If true, will render an image from placekitten.com according to the size set at $placeKittenSize. Defaults to true (what can I say? I love kitten)

$placeHoldItSize

$placeHoldItSize : string

Type

string — the size of the image to render if $imagePathExpression is null and $userPlaceHoldIt is set to true

$placeKittenSize

$placeKittenSize : string

Type

string — the size of the image to render if $imagePathExpression is null and $usePlaceKitten is set to true

Methods

renderDataCellContent()

renderDataCellContent(int $row, mixed $data)

Renders the data cell content

Parameters

int $row

the row number (zero based)

mixed $data

teh data associated with the row