PHP Class Elgg\Likes\Preloader

Datei anzeigen Open project: elgg/elgg

Protected Properties

Property Type Description
$data Elgg\Likes\DataService

Public Methods

Method Description
__construct ( Elgg\Likes\DataService $data )
preloadForList ( array $items ) : void

Protected Methods

Method Description
getEntities ( array $guids ) : ElggEntity[] Get entities in any order checking cache first
getGuidsToPreload ( array $items ) : int[]
preloadCountsFromHook ( array $entities ) : int[]
preloadCountsFromQuery ( array $guids )
preloadCurrentUserLikes ( array $guids )

Method Details

__construct() public method

public __construct ( Elgg\Likes\DataService $data )
$data Elgg\Likes\DataService

getEntities() protected method

Get entities in any order checking cache first
protected getEntities ( array $guids ) : ElggEntity[]
$guids array
return ElggEntity[]

getGuidsToPreload() protected method

protected getGuidsToPreload ( array $items ) : int[]
$items array
return int[]

preloadCountsFromHook() protected method

protected preloadCountsFromHook ( array $entities ) : int[]
$entities array
return int[]

preloadCountsFromQuery() protected method

protected preloadCountsFromQuery ( array $guids )
$guids array

preloadCurrentUserLikes() protected method

protected preloadCurrentUserLikes ( array $guids )
$guids array

preloadForList() public method

public preloadForList ( array $items ) : void
$items array
return void

Property Details

$data protected_oe property

protected DataService,Elgg\Likes $data
return Elgg\Likes\DataService