A sample definition for indexing articles.
Source for this file: /Search/src/extractors/helpers/simple.php
Version: | //autogentag// |
public string |
$body
Article body. |
public string |
$id
Id for the article. |
public DateTime |
$published
Published date for the article. |
public string |
$title
Article title. |
public string |
$type
Article type. |
public string |
$url
URL for the article. |
public static ezcSearchDocumentDefinition |
getDefinition(
)
Returns the definition of this class. |
public ezcSearchSimpleArticle |
__construct(
[ $id
= null] , [ $title
= null] , [ $body
= null] , [ $published
= null] , [ $url
= null] , [ $type
= 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 | |
$body |
string | |
$published |
DateTime | |
$url |
string | |
$type |
string |
Returns the state of this definition as an array.
Sets the state of this definition.
Name | Type | Description |
---|---|---|
$state |
array(string=>string) |