PHP Class GraphAware\Reco4PHP\RecommenderService

Mostrar archivo Open project: graphaware/reco4php Class Usage Examples

Public Methods

Method 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 method

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 method

public static create ( string $uri ) : RecommenderService
$uri string
return RecommenderService

findInputBy() public method

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

findInputById() public method

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

getRecommender() public method

public getRecommender ( $name ) : GraphAware\Reco4PHP\Engine\RecommendationEngine
$name
return GraphAware\Reco4PHP\Engine\RecommendationEngine

registerRecommendationEngine() public method

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

validateInput() public method

public validateInput ( GraphAware\Common\Result\Result $result ) : GraphAware\Common\Type\Node
$result GraphAware\Common\Result\Result
return GraphAware\Common\Type\Node