PHP 클래스 GraphAware\Reco4PHP\RecommenderService

파일 보기 프로젝트 열기: graphaware/reco4php 1 사용 예제들

공개 메소드들

메소드 설명
__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

메소드 상세

__construct() 공개 메소드

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 create ( string $uri ) : RecommenderService
$uri string
리턴 RecommenderService

findInputBy() 공개 메소드

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

findInputById() 공개 메소드

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

getRecommender() 공개 메소드

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

registerRecommendationEngine() 공개 메소드

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

validateInput() 공개 메소드

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