当前位置: 首页>>代码示例>>PHP>>正文


PHP ApplicationFactory::newPageCreator方法代码示例

本文整理汇总了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;
 }
开发者ID:whysasse,项目名称:kmwiki,代码行数:7,代码来源:FileUpload.php

示例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;
 }
开发者ID:ReachingOut,项目名称:SemanticMediaWiki,代码行数:13,代码来源:CategoryPropertyAnnotator.php

示例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;
 }
开发者ID:ReachingOut,项目名称:SemanticMediaWiki,代码行数:18,代码来源:StoreUpdater.php

示例4: newDeepRedirectTargetResolver

 /**
  * @since 2.1
  *
  * @return DeepRedirectTargetResolver
  */
 public function newDeepRedirectTargetResolver()
 {
     return new DeepRedirectTargetResolver($this->applicationFactory->newPageCreator());
 }
开发者ID:WolfgangFahl,项目名称:SemanticMediaWiki,代码行数:9,代码来源:MwCollaboratorFactory.php


注:本文中的SMW\ApplicationFactory::newPageCreator方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。