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


PHP SMWExporter::initBaseURIs方法代码示例

本文整理汇总了PHP中SMWExporter::initBaseURIs方法的典型用法代码示例。如果您正苦于以下问题:PHP SMWExporter::initBaseURIs方法的具体用法?PHP SMWExporter::initBaseURIs怎么用?PHP SMWExporter::initBaseURIs使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在SMWExporter的用法示例。


在下文中一共展示了SMWExporter::initBaseURIs方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: getInstance

 /**
  * @since 2.0
  *
  * @return SMWExporter
  */
 public static function getInstance()
 {
     if (self::$instance === null) {
         self::$instance = new self();
         self::$instance->initBaseURIs();
     }
     return self::$instance;
 }
开发者ID:whysasse,项目名称:kmwiki,代码行数:13,代码来源:SMW_Exporter.php

示例2: getInstance

 /**
  * @since 2.0
  *
  * @return SMWExporter
  */
 public static function getInstance()
 {
     if (self::$instance === null) {
         self::$instance = new self();
         self::$instance->initBaseURIs();
         $cacheFactory = ApplicationFactory::getInstance()->newCacheFactory();
         // There is no better way of getting around the static use without BC
         self::$dataItemToElementEncoder = new DataItemToElementEncoder();
         self::$cachedDataItemToExpResourceEncoder = new CachedDataItemToExpResourceEncoder(ApplicationFactory::getInstance()->getStore(), $cacheFactory->newFixedInMemoryCache(500));
         self::$cachedDataItemToExpResourceEncoder->setCachePrefix($cacheFactory->getCachePrefix());
     }
     return self::$instance;
 }
开发者ID:brandonphuong,项目名称:mediawiki,代码行数:18,代码来源:SMW_Exporter.php

示例3: getInstance

 /**
  * @since 2.0
  *
  * @return SMWExporter
  */
 public static function getInstance()
 {
     if (self::$instance === null) {
         self::$instance = new self();
         self::$instance->initBaseURIs();
         $cacheFactory = ApplicationFactory::getInstance()->newCacheFactory();
         // There is no better way of getting around the static use without BC
         self::$dataItemToElementEncoder = new DataItemToElementEncoder();
         self::$dataItemToExpResourceEncoder = new DataItemToExpResourceEncoder(ApplicationFactory::getInstance()->getStore());
         self::$dataItemToExpResourceEncoder->reset();
         self::$dataItemToExpResourceEncoder->setBCAuxiliaryUse(ApplicationFactory::getInstance()->getSettings()->get('smwgExportBCAuxiliaryUse'));
     }
     return self::$instance;
 }
开发者ID:WolfgangFahl,项目名称:SemanticMediaWiki,代码行数:19,代码来源:SMW_Exporter.php

示例4: getInstance

 /**
  * @since 2.0
  *
  * @return SMWExporter
  */
 public static function getInstance()
 {
     if (self::$instance === null) {
         self::$instance = new self();
         self::$instance->initBaseURIs();
         $applicationFactory = ApplicationFactory::getInstance();
         $poolCache = $applicationFactory->getInMemoryPoolCache();
         $poolCache->resetPoolCacheFor(self::POOLCACHE_ID);
         // FIXME with 3.x
         // There is no better way of getting around the static use without BC
         self::$dataItemToElementEncoder = new DataItemToElementEncoder();
         self::$dispatchingResourceBuilder = new DispatchingResourceBuilder();
         self::$dataItemToExpResourceEncoder = new DataItemToExpResourceEncoder($applicationFactory->getStore());
         self::$dataItemToExpResourceEncoder->reset();
         self::$dataItemToExpResourceEncoder->setBCAuxiliaryUse($applicationFactory->getSettings()->get('smwgExportBCAuxiliaryUse'));
         self::$dataItemByExpElementMatchFinder = new DataItemByExpElementMatchFinder($applicationFactory->getStore(), self::$m_ent_wiki);
     }
     return self::$instance;
 }
开发者ID:jongfeli,项目名称:SemanticMediaWiki,代码行数:24,代码来源:SMW_Exporter.php


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