Class \Scrivo\ListItemProperty\ImageAltTitle
Property to hold an image source (src) url.
Page properties are a part of the list item.
Extends
\Scrivo\ListItemProperty .
Defined in:
ListItemProperty/ImageAltTitle.php.
Attr. | Name / Description |
---|---|
protected |
ImageAltTitle($rd) Create an empty list item property object or select a list item property from the database. |
Attr. | Type | Name | Description |
---|---|---|---|
\..\String | $alt | The alternative text for the image (alt attribute). | |
\..\String | $src | The image source (src attribute). | |
\..\String | $title | The image title (title attribute). |
Attr. | Type | Name | Description |
---|---|---|---|
private | \..\String | $alt | The alt property of the url. |
protected | \..\String | $data | The property data. |
private | int | $definitionId | Id of the property defintion. |
private | int | $listItemId | The id of the list item where this property belongs to. |
private | int | $pageId | The id of the page where this property belongs to. |
protected | \..\String | $phpSelector | An textual identification/key for this property. |
private | \..\String | $src | The src property of the url. |
private | \..\String | $title | The title property of the url. |
Attr. | Type | Name / Description |
---|---|---|
public | mixed |
__get($name) Implementation of the readable properties using the PHP magic method __get(). |
public |
__set($name, $value) Implementation of the writable properties using the PHP magic method __set(). |
|
public static |
create($rd) Factory method for creating a list item property. |
|
private |
fromData() Convert the property data field to the image members. |
|
protected |
setData($data) Set The property data. |
|
private |
toData() Convert the property data field to the image members. |
Constructor
- protected ImageAltTitle(array $rd)
-
Create an empty list item property object or select a list item property from the database.
Inherited from \Scrivo\ListItemProperty
Parameters:
Type Name Def. Description array $rd An array (result set row) containing inital data.
View source: ListItemProperty.php line 87.
Members
- private \Scrivo\String $alt
-
The alt property of the url.
View source: ListItemProperty/ImageAltTitle.php line 58.
- protected \Scrivo\String $data
-
The property data.
Inherited from \Scrivo\ListItemProperty
View source: ListItemProperty.php line 61.
- private int $definitionId
-
Id of the property defintion.
Inherited from \Scrivo\ListItemProperty
View source: ListItemProperty.php line 67.
- private int $listItemId
-
The id of the list item where this property belongs to.
Inherited from \Scrivo\ListItemProperty
View source: ListItemProperty.php line 73.
- private int $pageId
-
The id of the page where this property belongs to.
Inherited from \Scrivo\ListItemProperty
View source: ListItemProperty.php line 79.
- protected \Scrivo\String $phpSelector
-
An textual identification/key for this property.
Inherited from \Scrivo\ListItemProperty
View source: ListItemProperty.php line 55.
- private \Scrivo\String $src
-
The src property of the url.
View source: ListItemProperty/ImageAltTitle.php line 52.
- private \Scrivo\String $title
-
The title property of the url.
View source: ListItemProperty/ImageAltTitle.php line 64.
Methods
- public mixed __get(string $name)
-
Implementation of the readable properties using the PHP magic method __get().
Parameters:
Type Name Def. Description string $name The name of the property to get.
Returns:
mixed Implementation of the readable properties using the PHP magic method __get().
View source: ListItemProperty/ImageAltTitle.php line 74.
- public __set(string $name, mixed $value)
-
Implementation of the writable properties using the PHP magic method __set().
Parameters:
Type Name Def. Description string $name The name of the property to set.
mixed $value The value of the property to set.
View source: ListItemProperty/ImageAltTitle.php line 93.
- public static create(array $rd)
-
Factory method for creating a list item property.
This method will return a list item property of the proper specialized type.
Inherited from \Scrivo\ListItemProperty
Parameters:
Type Name Def. Description array $rd An array (result set row) containing inital data.
View source: ListItemProperty.php line 102.
- private fromData()
-
Convert the property data field to the image members.
View source: ListItemProperty/ImageAltTitle.php line 105.
- protected setData(\Scrivo\String $data)
-
Set The property data.
Inherited from \Scrivo\ListItemProperty
Parameters:
Type Name Def. Description \Scrivo\String $data The property data.
View source: ListItemProperty.php line 183.
- private toData()
-
Convert the property data field to the image members.
View source: ListItemProperty/ImageAltTitle.php line 116.
Documentation generated by phpDocumentor 2.0.0a12 and ScrivoDocumentor on August 29, 2013