PHP Class GraphAware\Reco4PHP\Result\Recommendations

Afficher le fichier Open project: graphaware/reco4php Class Usage Examples

Protected Properties

Свойство Type Description
$context GraphAware\Reco4PHP\Context\Context
$recommendations Recommendation[]

Méthodes publiques

Méthode Description
__construct ( GraphAware\Reco4PHP\Context\Context $context )
add ( GraphAware\Common\Type\Node $item, string $name, SingleScore $singleScore )
get ( $position ) : Recommendation
getContext ( ) : GraphAware\Reco4PHP\Context\Context
getItemBy ( string $key, mixed $value ) : Recommendation | null
getItemById ( integer $id ) : Recommendation | null
getItems ( $size = null ) : array
getOrCreate ( GraphAware\Common\Type\Node $item ) : Recommendation
merge ( Recommendations $recommendations )
remove ( Recommendation $recommendation )
size ( ) : integer
sort ( )

Method Details

__construct() public méthode

public __construct ( GraphAware\Reco4PHP\Context\Context $context )
$context GraphAware\Reco4PHP\Context\Context

add() public méthode

public add ( GraphAware\Common\Type\Node $item, string $name, SingleScore $singleScore )
$item GraphAware\Common\Type\Node
$name string
$singleScore SingleScore

get() public méthode

public get ( $position ) : Recommendation
$position
Résultat Recommendation

getContext() public méthode

public getContext ( ) : GraphAware\Reco4PHP\Context\Context
Résultat GraphAware\Reco4PHP\Context\Context

getItemBy() public méthode

public getItemBy ( string $key, mixed $value ) : Recommendation | null
$key string
$value mixed
Résultat Recommendation | null

getItemById() public méthode

public getItemById ( integer $id ) : Recommendation | null
$id integer
Résultat Recommendation | null

getItems() public méthode

public getItems ( $size = null ) : array
Résultat array

getOrCreate() public méthode

public getOrCreate ( GraphAware\Common\Type\Node $item ) : Recommendation
$item GraphAware\Common\Type\Node
Résultat Recommendation

merge() public méthode

public merge ( Recommendations $recommendations )
$recommendations Recommendations

remove() public méthode

public remove ( Recommendation $recommendation )
$recommendation Recommendation

size() public méthode

public size ( ) : integer
Résultat integer

sort() public méthode

public sort ( )

Property Details

$context protected_oe property

protected Context,GraphAware\Reco4PHP\Context $context
Résultat GraphAware\Reco4PHP\Context\Context

$recommendations protected_oe property

protected Recommendation[],GraphAware\Reco4PHP\Result $recommendations
Résultat Recommendation[]