/** * Creates a new Content Context object. * * NOTE: This is for internal use only, you should use the ContextFactory for creating Context instances. * * @param string $workspaceName Name of the current workspace * @param \DateTimeInterface $currentDateTime The current date and time * @param array $dimensions Array of dimensions with array of ordered values * @param array $targetDimensions Array of dimensions used when creating / modifying content * @param boolean $invisibleContentShown If invisible content should be returned in query results * @param boolean $removedContentShown If removed content should be returned in query results * @param boolean $inaccessibleContentShown If inaccessible content should be returned in query results * @param Site $currentSite The current Site object * @param Domain $currentDomain The current Domain object * @see ContextFactoryInterface */ public function __construct($workspaceName, \DateTimeInterface $currentDateTime, array $dimensions, array $targetDimensions, $invisibleContentShown, $removedContentShown, $inaccessibleContentShown, Site $currentSite = null, Domain $currentDomain = null) { parent::__construct($workspaceName, $currentDateTime, $dimensions, $targetDimensions, $invisibleContentShown, $removedContentShown, $inaccessibleContentShown); $this->currentSite = $currentSite; $this->currentDomain = $currentDomain; $this->targetDimensions = $targetDimensions; }