PHP Класс WhImageColumn

Displays images in a column
Автор: Antonio Ramirez ([email protected])
Наследование: extends CGridColumn
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$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

Защищенные методы

Метод Описание
renderDataCellContent ( integer $row, mixed $data ) Renders the data cell content

Описание методов

renderDataCellContent() защищенный Метод

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

Описание свойств

$emptyText публичное свойство

renders if $imagePathExpression is null
public string $emptyText
Результат string

$imageOptions публичное свойство

the HTML options of the image tag
public $imageOptions

$imagePathExpression публичное свойство

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
Результат string

$placeHoldItSize публичное свойство

the size of the image to render if $imagePathExpression is null and $userPlaceHoldIt is set to true
public string $placeHoldItSize
Результат string

$placeKittenSize публичное свойство

the size of the image to render if $imagePathExpression is null and $usePlaceKitten is set to true
public string $placeKittenSize
Результат string

$usePlaceHoldIt публичное свойство

public bool $usePlaceHoldIt
Результат boolean

$usePlaceKitten публичное свойство

public bool $usePlaceKitten
Результат boolean