PHP Class WhImageColumn

Displays images in a column
Author: Antonio Ramirez ([email protected])
Inheritance: extends CGridColumn
Show file Open project: 2amigos/yiiwheels

Public Properties

Property Type Description
$emptyText string renders if $imagePathExpression is null
$imageOptions the HTML options of the image tag
$imagePathExpression string is evaluated in every data cell and is used as the path of the image. The expression will have: $row the row number $data the data model of the row $this the column object
$placeHoldItSize string the size of the image to render if $imagePathExpression is null and $userPlaceHoldIt is set to true
$placeKittenSize string the size of the image to render if $imagePathExpression is null and $usePlaceKitten is set to true
$usePlaceHoldIt boolean
$usePlaceKitten boolean

Protected Methods

Method Description
renderDataCellContent ( integer $row, mixed $data ) Renders the data cell content

Method Details

renderDataCellContent() protected method

Renders the data cell content
protected renderDataCellContent ( integer $row, mixed $data )
$row integer the row number (zero based)
$data mixed teh data associated with the row

Property Details

$emptyText public property

renders if $imagePathExpression is null
public string $emptyText
return string

$imageOptions public property

the HTML options of the image tag
public $imageOptions

$imagePathExpression public property

is evaluated in every data cell and is used as the path of the image. The expression will have: $row the row number $data the data model of the row $this the column object
public string $imagePathExpression
return string

$placeHoldItSize public property

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

$placeKittenSize public property

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

$usePlaceHoldIt public property

public bool $usePlaceHoldIt
return boolean

$usePlaceKitten public property

public bool $usePlaceKitten
return boolean