Contentserv PHP API

CSFlexTableCellImageContent extends CSFlexTableCellContent
in package

Represents a Flex Table Cell Content for an Image

Tags
since

CS15.0

access

public

Table of Contents

CONTENT_TYPE_ATTRIBUTE_VALUE  = 5
Defines attribute value content
CONTENT_TYPE_HTML  = 4
Defines html content
CONTENT_TYPE_IMAGE  = 2
Defines image content
CONTENT_TYPE_ITEM_VALUE  = 3
Defines item value content
CONTENT_TYPE_TEXT  = 1
Defines text content
__call()  : mixed
Internal method for handling friend class calls
__construct()  : void
Constructor
addStyleName()  : void
Adds a unique style name to the list of styles for the cell content
getCell()  : CSFlexTableCell
Returns the parent cell of the content object.
getHeight()  : int
Returns the height currently assigned to the image of this content object.
getImage()  : CSMamFile
Returns the currently assigned image of this content object.
getIndex()  : int
Returns the Index of the content object within the Cell
getPathIdentifier()  : string
Returns the path identifier for the current content object. The identifier has the following format:
getStyleNames()  : array<string|int, mixed>
Returns all style names assigned to the cell content.
getType()  : int
Returns the type of the content object.
getWidth()  : int
Returns the width currently assigned to the image of this content object.
setHeight()  : void
Sets the height for the image currently assigned to this content object.
setImage()  : void
Sets the image for this content object.
setStyleName()  : void
Sets the style name of the cell.
setStyleNames()  : void
Sets a list of style names for the cell content.
setWidth()  : void
Sets the width for the image currently assigned to this content object.

Constants

CONTENT_TYPE_ATTRIBUTE_VALUE

Defines attribute value content

public mixed CONTENT_TYPE_ATTRIBUTE_VALUE = 5
Tags

CONTENT_TYPE_ITEM_VALUE

Defines item value content

public mixed CONTENT_TYPE_ITEM_VALUE = 3
Tags

Methods

__call()

Internal method for handling friend class calls

public __call(mixed $sMethodName, mixed $aMethodParams) : mixed
Parameters
$sMethodName : mixed
$aMethodParams : mixed
Tags
Return values
mixed

__construct()

Constructor

public __construct([CSMamFile $oImage = NULL ]) : void
Parameters
$oImage : CSMamFile = NULL

The image to assign to this content object.

Tags
access

public

Return values
void

addStyleName()

Adds a unique style name to the list of styles for the cell content

public addStyleName(string $sStyleName) : void
Parameters
$sStyleName : string
Tags
access

public

Return values
void

getHeight()

Returns the height currently assigned to the image of this content object.

public getHeight() : int
Tags
access

public

Return values
int

The height currently set for the image.

getIndex()

Returns the Index of the content object within the Cell

public getIndex() : int
Tags
throws
UnexpectedValueException

if the the content object can not be found in the cell

access

public

Return values
int

The index of the content object

getPathIdentifier()

Returns the path identifier for the current content object. The identifier has the following format:

public final getPathIdentifier() : string

d:0:0:0

where the chunks separated by the ':' are defined as follows:

d: The type of the row to return (d: data, h: header, f: footer) 0: The row index relative to the parent table 0: The cell index relative to the parent row 0: The content object index relative to the parent cell

Tags
access

public

Return values
string

The path identifier of the current content object

getStyleNames()

Returns all style names assigned to the cell content.

public getStyleNames() : array<string|int, mixed>
Tags
access

public

Return values
array<string|int, mixed>

A list of style names assigned to the cell content.

getType()

Returns the type of the content object.

public getType() : int
Tags
access

public

Return values
int

CSFlexTableCellContent::CONTENT_TYPE_IMAGE

getWidth()

Returns the width currently assigned to the image of this content object.

public getWidth() : int
Tags
access

public

Return values
int

The width currently set for the image.

setHeight()

Sets the height for the image currently assigned to this content object.

public setHeight(int $iHeight) : void
Parameters
$iHeight : int

The height that should be assigned to the image.

Tags
Return values
void

setImage()

Sets the image for this content object.

public setImage(CSMamFile $oImage) : void
Parameters
$oImage : CSMamFile

The image that should be assigned to this content object.

Tags
access

public

Return values
void

setStyleName()

Sets the style name of the cell.

public setStyleName(string $sStyleName) : void
Parameters
$sStyleName : string

The style name of the cell.

Tags
access

public

Return values
void

setStyleNames()

Sets a list of style names for the cell content.

public setStyleNames(array<string|int, mixed> $aStyleNames) : void
Parameters
$aStyleNames : array<string|int, mixed>

The style names that should be assigned to the cell content.

Tags
access

public

Return values
void

setWidth()

Sets the width for the image currently assigned to this content object.

public setWidth(int $iWidth) : void
Parameters
$iWidth : int

The width that should be assigned to the image.

Tags
Return values
void

        

Search results