本文整理汇总了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;
}
示例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;
}
示例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;
}
示例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;
}