PHP 클래스 Elgg\EntityPreloader

파일 보기 프로젝트 열기: elgg/elgg

공개 프로퍼티들

프로퍼티 타입 설명
$_callable_cache_checker DO NOT USE. For unit test mocking
$_callable_entity_loader DO NOT USE. For unit test mocking

공개 메소드들

메소드 설명
__construct ( EntityCache $entity_cache, EntityTable $entity_table ) Constructor
preload ( object[] $objects, array $guid_properties ) : void Preload entities based on the given objects

보호된 메소드들

메소드 설명
getGuidsToLoad ( object[] $objects, array $guid_properties ) : int[] Get GUIDs that need to be loaded

메소드 상세

__construct() 공개 메소드

Constructor
public __construct ( EntityCache $entity_cache, EntityTable $entity_table )
$entity_cache Elgg\Cache\EntityCache Entity cache
$entity_table Elgg\Database\EntityTable Entity service

getGuidsToLoad() 보호된 메소드

To simplify the user API, this function accepts non-arrays and arrays containing non-objects
protected getGuidsToLoad ( object[] $objects, array $guid_properties ) : int[]
$objects object[] Objects from which to pluck GUIDs
$guid_properties array e.g. array("owner_guid")
리턴 int[]

preload() 공개 메소드

Preload entities based on the given objects
public preload ( object[] $objects, array $guid_properties ) : void
$objects object[] Objects--e.g. loaded from an Elgg query--from which we can pluck GUIDs to preload
$guid_properties array e.g. array("owner_guid")
리턴 void

프로퍼티 상세

$_callable_cache_checker 공개적으로 프로퍼티

DO NOT USE. For unit test mocking
public $_callable_cache_checker

$_callable_entity_loader 공개적으로 프로퍼티

DO NOT USE. For unit test mocking
public $_callable_entity_loader