PHP Class GraphAware\Reco4PHP\RecommenderService

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

Méthodes publiques

Méthode Description
__construct ( DatabaseService $databaseService, Symfony\Component\EventDispatcher\EventDispatcherInterface $eventDispatcher = null, Psr\Log\LoggerInterface $logger = null ) RecommenderService constructor.
create ( string $uri ) : RecommenderService
findInputBy ( string $label, string $key, mixed $value ) : GraphAware\Common\Type\Node
findInputById ( $id ) : GraphAware\Bolt\Result\Type\Node | GraphAware\Bolt\Result\Type\Path | GraphAware\Bolt\Result\Type\Relationship | mixed
getRecommender ( $name ) : GraphAware\Reco4PHP\Engine\RecommendationEngine
registerRecommendationEngine ( GraphAware\Reco4PHP\Engine\RecommendationEngine $recommendationEngine )
validateInput ( GraphAware\Common\Result\Result $result ) : GraphAware\Common\Type\Node

Method Details

__construct() public méthode

RecommenderService constructor.
public __construct ( DatabaseService $databaseService, Symfony\Component\EventDispatcher\EventDispatcherInterface $eventDispatcher = null, Psr\Log\LoggerInterface $logger = null )
$databaseService GraphAware\Reco4PHP\Persistence\DatabaseService
$eventDispatcher Symfony\Component\EventDispatcher\EventDispatcherInterface
$logger Psr\Log\LoggerInterface

create() public static méthode

public static create ( string $uri ) : RecommenderService
$uri string
Résultat RecommenderService

findInputBy() public méthode

public findInputBy ( string $label, string $key, mixed $value ) : GraphAware\Common\Type\Node
$label string
$key string
$value mixed
Résultat GraphAware\Common\Type\Node

findInputById() public méthode

public findInputById ( $id ) : GraphAware\Bolt\Result\Type\Node | GraphAware\Bolt\Result\Type\Path | GraphAware\Bolt\Result\Type\Relationship | mixed
$id
Résultat GraphAware\Bolt\Result\Type\Node | GraphAware\Bolt\Result\Type\Path | GraphAware\Bolt\Result\Type\Relationship | mixed

getRecommender() public méthode

public getRecommender ( $name ) : GraphAware\Reco4PHP\Engine\RecommendationEngine
$name
Résultat GraphAware\Reco4PHP\Engine\RecommendationEngine

registerRecommendationEngine() public méthode

public registerRecommendationEngine ( GraphAware\Reco4PHP\Engine\RecommendationEngine $recommendationEngine )
$recommendationEngine GraphAware\Reco4PHP\Engine\RecommendationEngine

validateInput() public méthode

public validateInput ( GraphAware\Common\Result\Result $result ) : GraphAware\Common\Type\Node
$result GraphAware\Common\Result\Result
Résultat GraphAware\Common\Type\Node