PermissionService::realiseAllSources
Realise all parent sources of the given node
This causes two things to be generated and stored - the list of nodes that $node derives inherited permissions from, indexed as source_nodeType_nodeID . This includes all generational ancestors, not just immediate parents - A graph of all the nodes that an item provides inherited permissions to. This allows us to provide more intelligent cache purging whenever nodes change, so that the runtime permission cache can directly store the 'realised' permission of things.
Signature
public function realiseAllSources(DataObject
$node,
[
$sourceTo = NULL,
[array&
$addTo = NULL]] )
Parameters
$node
— object
$sourceTo
—$addTo
— array