YiiWheels
  • Package
  • Class
  • Tree

Packages

  • None
  • yiiwheels
    • behaviors
    • widgets
    • widgets
      • ace
      • box
      • datepicker
      • daterangepicker
      • datetimepicker
      • detail
      • fileupload
      • fileuploader
      • gallery
      • google
      • grid
        • behaviors
        • operations
      • highcharts
      • maskInput
      • maskmoney
      • modal
      • multiselect
      • rangeslider
      • redactor
      • select2
      • sparklines
      • switch
      • timeago
      • timepicker
      • toggle
      • typeahead

Classes

  • WhGridView
  • WhGroupGridView
  • WhImageColumn
  • WhRelationalColumn

Class WhImageColumn

CGridColumn
Extended by WhImageColumn
Package: YiiWheels\widgets\grid
Copyright: Copyright © 2amigos.us 2013-
License: New BSD License
Author: Antonio Ramirez <amigo.cobos@gmail.com>
Located at widgets/grid/WhImageColumn.php

Methods summary

protected
# renderDataCellContent( integer $row, mixed $data )

Renders the data cell content

Renders the data cell content

Parameters

$row
integer
$row the row number (zero based)
$data
mixed
$data teh data associated with the row

Magic methods summary

Properties summary

public array $imageOptions
#

the HTML options of the image tag

the HTML options of the image tag

public string $imagePathExpression
#

$imagePathExpression is evaluated in every data cell and is used as the path of the image. The expression will have: <span class="php-var">$row</span> the row number <span class="php-var">$data</span> the data model of the row <span class="php-var">$this</span> the column object

$imagePathExpression is evaluated in every data cell and is used as the path of the image. The expression will have: <span class="php-var">$row</span> the row number <span class="php-var">$data</span> the data model of the row <span class="php-var">$this</span> the column object

public string $emptyText
#

$emptyText renders if $imagePathExpression is null

$emptyText renders if $imagePathExpression is null

public boolean $usePlaceHoldIt
#

$userPlaceHoldIt 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 :(

$userPlaceHoldIt 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 :(

public boolean $usePlaceKitten
#

$userPlaceKitten 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)

$userPlaceKitten 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)

public string $placeHoldItSize
#

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

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

public string $placeKittenSize
#

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

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

YiiWheels API documentation generated by ApiGen 2.8.0