A sample definition for indexing images.
Source for this file: /Search/src/extractors/helpers/image.php
Version: | //autogentag// |
public int |
$height
Image height. |
public string |
$id
Id for the image. |
public string |
$mime
Image mime-type. |
public string |
$title
Image title. |
public string |
$url
URL for the image. |
public int |
$width
Image width. |
public static ezcSearchDocumentDefinition |
getDefinition(
)
Returns the definition of this class. |
public ezcSearchSimpleImage |
__construct(
[ $id
= null] , [ $title
= null] , [ $url
= null] , [ $width
= null] , [ $height
= null] , [ $mime
= null] )
Constructs a new image definition. |
public array(string=>string) |
getState(
)
Returns the state of this definition as an array. |
public void |
setState(
$state
)
Sets the state of this definition. |
Returns the definition of this class.
Method | Description |
---|---|
ezcSearchDefinitionProvider::getDefinition() |
Returns the definition for the document. |
Constructs a new image definition.
Name | Type | Description |
---|---|---|
$id |
string | |
$title |
string | |
$url |
string | |
$width |
int | |
$height |
int | |
$mime |
string |
Returns the state of this definition as an array.
Sets the state of this definition.
Name | Type | Description |
---|---|---|
$state |
array(string=>string) |