\FACTFinder\DataRecord

Represents one entity of the data indexed by FACT-Finder (typically a product).

Summary

Methods
Properties
Constants
__construct()
getID()
getSimilarity()
getPosition()
getSeoPath()
getField()
getKeywords()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$id
$fields
$similarity
$position
$seoPath
$keywords
N/A

Properties

$id

$id : string

Type

string

$fields

$fields : array<mixed,string>

Type

array<mixed,string> — An associative array of the record's fields (the keys being field names).

$similarity

$similarity : float

Type

float

$position

$position : integer

Type

integer

$seoPath

$seoPath : string

Type

string

$keywords

$keywords : array<mixed,string>

Type

array<mixed,string> — List-like array of keywords.

Methods

__construct()

__construct(string  $id,   $fields = array(), float  $similarity = 100, integer  $position, string  $seoPath = '', array<mixed,string>  $keywords = array()) 

Parameters

string $id
$fields
float $similarity
integer $position

If the record is part of a result, this indicates the position within that result.

string $seoPath
array<mixed,string> $keywords

getID()

getID() : string

Returns

string

getSimilarity()

getSimilarity() : float

Returns

float

getPosition()

getPosition() : integer

Returns

integer

getSeoPath()

getSeoPath() : string

Returns

string

getField()

getField(string  $name) : string

Parameters

string $name

The name of the field to be retrieved.

Returns

string

getKeywords()

getKeywords() : array<mixed,string>

Returns

array<mixed,string>