Static Public Member Functions | |
| static | getIncomingProperties ($title) |
| Gets the set of all properties that point to this page, anywhere in the wiki. | |
| static | getPagePropertiesOfPage ($title) |
| Gets the properties pointing from the current page to this one. | |
| static | getFormsThatPagePointsTo ($page_name, $page_namespace, $form_connection_type) |
| Gets the forms specified, if any, of either type "default form", "alternate form", or "default form for page", for a specific page (which should be a category, property, or namespace page). | |
| static | createLinkedPage ($title, $incoming_properties) |
| Automatically creates a page that's red-linked from the page being viewed, if there's a property pointing from anywhere to that page that's defined with the 'Creates pages with form' special property. | |
| static | getFormEditLinkForPage ($target_page_title, $page_name, $page_namespace) |
| Helper function for formEditLink() - gets the 'default form' and 'alternate form' properties for a page, and creates the corresponding Special:FormEdit link, if any such properties are defined. | |
| static | formEditLink ($title, $incoming_properties) |
| Returns the URL for the Special:FormEdit page for a specific page, given its default and alternate form(s) - we can't just point to '&action=formedit', because that one doesn't reflect alternate forms. | |
| static | setBrokenLink ($linker, $target, $options, $text, &$attribs, &$ret) |
| Sets the URL for form-based creation of a nonexistent (broken-linked, AKA red-linked) page. | |
| static | getDefaultFormsForPage ($title) |
Get the form(s) used to edit this page - either:
| |
Public Attributes | |
| const | DEFAULT_FORM = 1 |
| const | ALTERNATE_FORM = 2 |
| const | PAGE_DEFAULT_FORM = 3 |
| const | AUTO_CREATE_FORM = 4 |
Static Public Attributes | |
| static | $mLinkedForms = array() |
| static | $mLinkedPages = array() |
| static | $mLinkedPagesRetrieved = false |
Definition at line 13 of file SF_FormLinker.php.
| static SFFormLinker::getIncomingProperties | ( | $ | title | ) | [static] |
Gets the set of all properties that point to this page, anywhere in the wiki.
Definition at line 28 of file SF_FormLinker.php.
References $store, SMWDIWikiPage::newFromTitle(), smwfGetStore(), and SFUtils::titleString().
| static SFFormLinker::getPagePropertiesOfPage | ( | $ | title | ) | [static] |
Gets the properties pointing from the current page to this one.
Definition at line 56 of file SF_FormLinker.php.
References $store, SMWDIWikiPage::newFromTitle(), and smwfGetStore().
| static SFFormLinker::getFormsThatPagePointsTo | ( | $ | page_name, | |
| $ | page_namespace, | |||
| $ | form_connection_type | |||
| ) | [static] |
Gets the forms specified, if any, of either type "default form", "alternate form", or "default form for page", for a specific page (which should be a category, property, or namespace page).
Definition at line 97 of file SF_FormLinker.php.
References $store, SFUtils::getSMWPropertyValues(), and smwfGetStore().
| static SFFormLinker::createLinkedPage | ( | $ | title, | |
| $ | incoming_properties | |||
| ) | [static] |
Automatically creates a page that's red-linked from the page being viewed, if there's a property pointing from anywhere to that page that's defined with the 'Creates pages with form' special property.
Definition at line 157 of file SF_FormLinker.php.
References $wgTitle.
| static SFFormLinker::getFormEditLinkForPage | ( | $ | target_page_title, | |
| $ | page_name, | |||
| $ | page_namespace | |||
| ) | [static] |
Helper function for formEditLink() - gets the 'default form' and 'alternate form' properties for a page, and creates the corresponding Special:FormEdit link, if any such properties are defined.
Definition at line 199 of file SF_FormLinker.php.
References SFUtils::getSpecialPage(), and SFUtils::titleURLString().
| static SFFormLinker::formEditLink | ( | $ | title, | |
| $ | incoming_properties | |||
| ) | [static] |
Returns the URL for the Special:FormEdit page for a specific page, given its default and alternate form(s) - we can't just point to '&action=formedit', because that one doesn't reflect alternate forms.
Definition at line 231 of file SF_FormLinker.php.
| static SFFormLinker::setBrokenLink | ( | $ | linker, | |
| $ | target, | |||
| $ | options, | |||
| $ | text, | |||
| &$ | attribs, | |||
| &$ | ret | |||
| ) | [static] |
Sets the URL for form-based creation of a nonexistent (broken-linked, AKA red-linked) page.
Definition at line 261 of file SF_FormLinker.php.
References $sfgRedLinksCheckOnlyLocalProps, and $wgTitle.
| static SFFormLinker::getDefaultFormsForPage | ( | $ | title | ) | [static] |
Get the form(s) used to edit this page - either:
Definition at line 302 of file SF_FormLinker.php.
References SFUtils::getCategoriesForPage(), and SFPageSchemas::getFormName().
Referenced by SFFormEditAction::displayForm(), SFFormEditAction::displayTab(), SFFormStart::doRedirect(), and SFAutoeditAPI::storeSemanticData().
| const SFFormLinker::DEFAULT_FORM = 1 |
Definition at line 14 of file SF_FormLinker.php.
| const SFFormLinker::ALTERNATE_FORM = 2 |
Definition at line 15 of file SF_FormLinker.php.
| const SFFormLinker::PAGE_DEFAULT_FORM = 3 |
Definition at line 16 of file SF_FormLinker.php.
| const SFFormLinker::AUTO_CREATE_FORM = 4 |
Definition at line 17 of file SF_FormLinker.php.
SFFormLinker::$mLinkedForms = array() [static] |
Definition at line 20 of file SF_FormLinker.php.
SFFormLinker::$mLinkedPages = array() [static] |
Definition at line 21 of file SF_FormLinker.php.
SFFormLinker::$mLinkedPagesRetrieved = false [static] |
Definition at line 22 of file SF_FormLinker.php.
1.5.6