本文整理汇总了PHP中SMWExporter::getEncodedPageName方法的典型用法代码示例。如果您正苦于以下问题:PHP SMWExporter::getEncodedPageName方法的具体用法?PHP SMWExporter::getEncodedPageName怎么用?PHP SMWExporter::getEncodedPageName使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SMWExporter
的用法示例。
在下文中一共展示了SMWExporter::getEncodedPageName方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: testExportSubobject
public function testExportSubobject()
{
$semanticData = $this->semanticDataFactory->newEmptySemanticData(__METHOD__);
$subobject = new Subobject($semanticData->getSubject()->getTitle());
$subobject->setEmptyContainerForId('Foo');
$semanticData->addPropertyObjectValue($subobject->getProperty(), $subobject->getContainer());
$exportData = Exporter::makeExportData($semanticData);
$expectedProperty = new ExpNsResource($this->transformPropertyLabelToAuxiliary($subobject->getProperty()), Exporter::getNamespaceUri('property'), 'property', new DIWikiPage('Has_subobject', SMW_NS_PROPERTY));
$this->assertTrue(Exporter::hasHelperExpElement($subobject->getProperty()));
$this->assertCount(1, $exportData->getValues($expectedProperty));
$this->exportDataValidator->assertThatExportDataContainsProperty($expectedProperty, $exportData);
$expectedResource = new ExpNsResource(Exporter::getEncodedPageName($subobject->getSemanticData()->getSubject()) . '-23' . 'Foo', Exporter::getNamespaceUri('wiki'), 'wiki', $subobject->getSemanticData()->getSubject());
$this->exportDataValidator->assertThatExportDataContainsResource($expectedResource, $expectedProperty, $exportData);
}
示例2: testEncodedPageName
/**
* @dataProvider encodePageProvider
* @see #759
*/
public function testEncodedPageName($page, $expected)
{
$this->assertSame($expected, Exporter::getEncodedPageName($page));
}