本文整理汇总了PHP中SMW\ApplicationFactory::newPageCreator方法的典型用法代码示例。如果您正苦于以下问题:PHP ApplicationFactory::newPageCreator方法的具体用法?PHP ApplicationFactory::newPageCreator怎么用?PHP ApplicationFactory::newPageCreator使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SMW\ApplicationFactory
的用法示例。
在下文中一共展示了ApplicationFactory::newPageCreator方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: makeFilePage
private function makeFilePage()
{
$filePage = $this->applicationFactory->newPageCreator()->createFilePage($this->file->getTitle());
$filePage->setFile($this->file);
$filePage->smwFileReUploadStatus = $this->fileReUploadStatus;
return $filePage;
}
示例2: isHiddenCategory
private function isHiddenCategory($catName)
{
if ($this->hiddenCategories === null) {
$wikipage = $this->applicationFactory->newPageCreator()->createPage($this->getSemanticData()->getSubject()->getTitle());
$this->hiddenCategories = $wikipage->getHiddenCategories();
}
foreach ($this->hiddenCategories as $hiddenCategory) {
if ($hiddenCategory->getText() === $catName) {
return true;
}
}
return false;
}
示例3: performUpdate
/**
* @note Make sure to have a valid revision (null means delete etc.) and
* check if semantic data should be processed and displayed for a page in
* the given namespace
*/
private function performUpdate()
{
$this->applicationFactory = ApplicationFactory::getInstance();
if ($this->updateJobsEnabledState === null) {
$this->setUpdateJobsEnabledState($this->applicationFactory->getSettings()->get('smwgEnableUpdateJobs'));
}
$title = $this->getSubject()->getTitle();
$wikiPage = $this->applicationFactory->newPageCreator()->createPage($title);
$revision = $wikiPage->getRevision();
$this->updateSemanticData($title, $wikiPage, $revision);
$this->doRealUpdate($this->inspectPropertySpecification());
return true;
}
示例4: newDeepRedirectTargetResolver
/**
* @since 2.1
*
* @return DeepRedirectTargetResolver
*/
public function newDeepRedirectTargetResolver()
{
return new DeepRedirectTargetResolver($this->applicationFactory->newPageCreator());
}