Inherits SMWDataItem.
Public Member Functions | |
| __construct ($dbkey, $namespace, $interwiki, $subobjectname= '') | |
| Contructor. | |
| getDIType () | |
| Convenience method that returns a constant that defines the concrete class that implements this data item. | |
| getDBkey () | |
| getNamespace () | |
| getInterwiki () | |
| getSubobjectName () | |
| getSortKey () | |
| Get the sortkey of the wiki page data item. | |
| getTitle () | |
| Create a MediaWiki Title object for this SMWDIWikiPage. | |
| getSerialization () | |
| Get a UTF-8 encoded string serialization of this data item. | |
Static Public Member Functions | |
| static | doUnserialize ($serialization) |
| Create a data item from the provided serialization string and type ID. | |
| static | newFromTitle (Title $title) |
| Create a data item from a MediaWiki Title. | |
Protected Attributes | |
| $m_dbkey | |
| $m_namespace | |
| $m_interwiki | |
| $m_subobjectname | |
Definition at line 15 of file SMW_DI_WikiPage.php.
| SMWDIWikiPage::__construct | ( | $ | dbkey, | |
| $ | namespace, | |||
| $ | interwiki, | |||
| $ | subobjectname = '' | |||
| ) |
Contructor.
We do not bother with too much detailed validation here, regarding the known namespaces, canonicity of the dbkey (namespace exrtacted?), validity of interwiki prefix (known?), and general use of allowed characters (may depend on MW configuration). All of this would be more work than it is worth, since callers will usually be careful and since errors here do not have major consequences.
Definition at line 47 of file SMW_DI_WikiPage.php.
| SMWDIWikiPage::getDIType | ( | ) |
Convenience method that returns a constant that defines the concrete class that implements this data item.
Used to switch when processing data items.
Reimplemented from SMWDataItem.
Definition at line 58 of file SMW_DI_WikiPage.php.
References SMWDataItem::TYPE_WIKIPAGE.
| SMWDIWikiPage::getDBkey | ( | ) |
Definition at line 62 of file SMW_DI_WikiPage.php.
Referenced by SMWExporter::getResourceElementForWikiPage(), SMWExporter::makeExportDataForSubject(), and newFromTitle().
| SMWDIWikiPage::getNamespace | ( | ) |
| SMWDIWikiPage::getInterwiki | ( | ) |
| SMWDIWikiPage::getSubobjectName | ( | ) |
Definition at line 74 of file SMW_DI_WikiPage.php.
Referenced by SMWExporter::getResourceElementForWikiPage(), and SMWExporter::makeExportDataForSubject().
| SMWDIWikiPage::getSortKey | ( | ) |
Get the sortkey of the wiki page data item.
Note that this is not the sortkey that might have been set for the corresponding wiki page. To obtain the latter, query for the values of the property "new SMWDIProperty( '_SKEY' )".
Reimplemented from SMWDataItem.
Definition at line 84 of file SMW_DI_WikiPage.php.
| SMWDIWikiPage::getTitle | ( | ) |
Create a MediaWiki Title object for this SMWDIWikiPage.
The result can be null if an error occurred.
Definition at line 97 of file SMW_DI_WikiPage.php.
| SMWDIWikiPage::getSerialization | ( | ) |
Get a UTF-8 encoded string serialization of this data item.
The serialisation should be concise and need not be pretty, but it must allow unserialization. Each subclass of SMWDataItem implements a static method doUnserialize() for this purpose.
Reimplemented from SMWDataItem.
Definition at line 107 of file SMW_DI_WikiPage.php.
| static SMWDIWikiPage::doUnserialize | ( | $ | serialization | ) | [static] |
Create a data item from the provided serialization string and type ID.
Definition at line 120 of file SMW_DI_WikiPage.php.
| static SMWDIWikiPage::newFromTitle | ( | Title $ | title | ) | [static] |
Create a data item from a MediaWiki Title.
| $title | Title |
Definition at line 137 of file SMW_DI_WikiPage.php.
References getDBkey(), getInterwiki(), and getNamespace().
Referenced by SMWSQLStore2::changeTitle(), SMWSparqlStore::changeTitle(), SMWSQLStore2::deleteSubject(), SMWSparqlStore::deleteSubject(), SFUtils::getAllPagesForConcept(), SMWOrderedListPage::getDataItem(), SMWFactbox::getFactboxTextFromOutput(), SFFormLinker::getIncomingProperties(), SFFormLinker::getPagePropertiesOfPage(), SFUtils::getSMWPropertyValues(), SMWWikiPageValue::makePageFromTitle(), SMWParserExtensions::onInternalParseBeforeLinks(), SMWParseData::onNewRevisionFromEditComplete(), SMWWikiPageValue::parseUserValue(), SMWExportController::printAll(), SMWExportController::printPages(), SMWSQLStore2QueryEngine::refreshConceptCache(), and SMWParseData::storeData().
SMWDIWikiPage::$m_dbkey [protected] |
Definition at line 21 of file SMW_DI_WikiPage.php.
SMWDIWikiPage::$m_namespace [protected] |
Definition at line 26 of file SMW_DI_WikiPage.php.
SMWDIWikiPage::$m_interwiki [protected] |
Definition at line 31 of file SMW_DI_WikiPage.php.
SMWDIWikiPage::$m_subobjectname [protected] |
Definition at line 37 of file SMW_DI_WikiPage.php.
1.5.6