本文整理汇总了PHP中TYPO3\TYPO3CR\Domain\Service\Context::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Context::__construct方法的具体用法?PHP Context::__construct怎么用?PHP Context::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TYPO3\TYPO3CR\Domain\Service\Context
的用法示例。
在下文中一共展示了Context::__construct方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
/**
* 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;
}