PHP Class Newscoop\User\SearchService

Inheritance: implements Newscoop\Search\ServiceInterface
Mostrar archivo Open project: sourcefabric/newscoop

Protected Properties

Property Type Description
$imageService Newscoop\Image\ImageService

Public Methods

Method Description
__construct ( ImageService $imageService )
getDocument ( Newscoop\Search\DocumentInterface $user ) : array Get document representation for user
getDocumentId ( Newscoop\Search\DocumentInterface $user ) : string Get document id
getSubType ( Newscoop\Search\DocumentInterface $user ) : string Return sub type for the document
getType ( ) : string Return type for this search service
isIndexable ( Newscoop\Search\DocumentInterface $user ) : boolean Test if user can be indexed
isIndexed ( Newscoop\Search\DocumentInterface $user ) : boolean Test if user is indexed

Method Details

__construct() public method

public __construct ( ImageService $imageService )
$imageService Newscoop\Image\ImageService

getDocument() public method

Get document representation for user
public getDocument ( Newscoop\Search\DocumentInterface $user ) : array
$user Newscoop\Search\DocumentInterface
return array

getDocumentId() public method

Get document id
public getDocumentId ( Newscoop\Search\DocumentInterface $user ) : string
$user Newscoop\Search\DocumentInterface
return string

getSubType() public method

Return sub type for the document
public getSubType ( Newscoop\Search\DocumentInterface $user ) : string
$user Newscoop\Search\DocumentInterface
return string identifier

getType() public method

Return type for this search service
public getType ( ) : string
return string identifier

isIndexable() public method

Test if user can be indexed
public isIndexable ( Newscoop\Search\DocumentInterface $user ) : boolean
$user Newscoop\Search\DocumentInterface
return boolean

isIndexed() public method

Test if user is indexed
public isIndexed ( Newscoop\Search\DocumentInterface $user ) : boolean
$user Newscoop\Search\DocumentInterface
return boolean

Property Details

$imageService protected_oe property

protected ImageService,Newscoop\Image $imageService
return Newscoop\Image\ImageService