Manual:PageReferenceValue.php

Immutable value object representing a page reference. Implements {[ll|Manual:PageReference.php|PageReference}}.

  • Instances of this class are expected to always represent viewable pages, that is, pages that can at least potentially be visited on the wiki. This class may represent Special pages, but not interwiki links, section links, etc.
  • Code that deserializes instances of this class must ensure that the original meaning of the "local" Wiki ID is preserved: When an instance of PageReferenceValue is created with self::LOCAL as the Wiki ID on one wiki, gets serialized, stored, and later read and unserialized on another wiki, the value of the Wiki ID must be adjusted to refer to the original wiki.

Public methods

edit
  • localReference() - create PageReference for a local page.
  • getWikiId()
  • getNamespace()
  • getDBkey()
  • isSamePageAs()
  • __toString()

Extended by

edit

See also

edit