Path

ez components / documentation / api reference / latest / search


eZ Components latest

Search: ezcSearchSimpleArticle

[ Tutorial ] [ Solr schema ] [ Class tree ] [ Element index ] [ ChangeLog ] [ Credits ]

Class: ezcSearchSimpleArticle

A sample definition for indexing articles. [source]

Implemented Interfaces

Member Variables

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.

Method Summary

public ezcSearchSimpleArticle __construct( [$id = null], [$title = null], [$body = null], [$published = null], [$url = null], [$type = null] )
Constructs a new image definition.
public static ezcSearchDocumentDefinition getDefinition( )
Returns the definition of this class.
public array(string=>string) getState( )
Returns the state of this definition as an array.
public void setState( $state )
Sets the state of this definition.

Methods

__construct

ezcSearchSimpleArticle __construct( [string $id = null], [string $title = null], [string $body = null], [DateTime $published = null], [string $url = null], [string $type = null] )
Constructs a new image definition.

Parameters

Name Type Description
$id string  
$title string  
$body string  
$published DateTime  
$url string  
$type string  

getDefinition

ezcSearchDocumentDefinition getDefinition( )
Returns the definition of this class.

getState

array(string=>string) getState( )
Returns the state of this definition as an array.

setState

void setState( $state )
Sets the state of this definition.

Parameters

Name Type Description
$state array(string=>string)  

Last updated: Mon, 21 Dec 2009