Grid/Column/Image.php
- Classes
- Kwf_Grid_Column_Image
\Kwf_Grid_Column_Image
- Extends from
- \Kwf_Grid_Column
- Implements
- \Kwf_Media_Output_Interface
- Methods
- __construct
- getMediaOutput
- load
- setMaxHeight
- setRuleKey
- setShowHoverImage
Description
Grid row that displays an image
Methods
__construct
__construct(
$dataIndex
=
null, $header
=
null, $ruleKey
=
null
)
:
Zeigt mehrere Checkboxes an und speichert diese in einer Relationstabelle
Arguments
- $dataIndex
- $header
- $ruleKey
Details
- visibility
- public
- final
- false
- static
- false
getMediaOutput
getMediaOutput(
$uploadId, $type, $className
)
:
Arguments
- $uploadId
- $type
- $className
Details
- visibility
- public
- final
- false
- static
- true
load
load(
$row, $role, $info
)
:
Arguments
- $row
- $role
- $info
Details
- visibility
- public
- final
- false
- static
- false
setMaxHeight
setMaxHeight(
int $maxHeight
)
:
Sets the maximum height the image can have. The row will resize to that height.
defaults to 19 (the default row height)
Arguments
- $maxHeight
- int
maximum image height
Details
- visibility
- public
- final
- false
- static
- false
setRuleKey
setRuleKey(
string $ruleKey
)
:
Sets the reference from model to uploads model
Arguments
- $ruleKey
- string
reference name to uploads model
Details
- visibility
- public
- final
- false
- static
- false
setShowHoverImage
setShowHoverImage(
bool $showHoverImage
)
:
Sets if this grid cell should have a hover image (in a tooltip)
Arguments
- $showHoverImage
- bool
if a hover image should be shown
Details
- visibility
- public
- final
- false
- static
- false