Permalink
Browse files

Adds document page title to Scripto_Document.

  • Loading branch information...
1 parent 8c3c363 commit 3a08aa3f1151c02d846ad3d25b637a0336139497 @jimsafley jimsafley committed Jun 8, 2011
Showing with 14 additions and 0 deletions.
  1. +14 −0 lib/Scripto/Document.php
@@ -62,6 +62,11 @@ class Scripto_Document
protected $_title;
/**
+ * @var string The document page title provided by the external system.
+ */
+ protected $_pageTitle;
+
+ /**
* @var string The document page ID provided by the external system.
*/
protected $_pageId;
@@ -142,6 +147,7 @@ public function setPage($pageId)
$this->_talkPageInfo = $this->_getPageInfo('Talk:' . $baseTitle);
$this->_pageId = $pageId;
+ $this->_pageTitle = $this->_adapter->getDocumentPageTitle($pageId);
$this->_baseTitle = $baseTitle;
}
@@ -164,6 +170,14 @@ public function getTitle()
}
/**
+ * Get this document's page title.
+ */
+ public function getPageTitle()
+ {
+ return $this->_pageTitle;
+ }
+
+ /**
* Get this document's current page ID.
*
* @return string|int

0 comments on commit 3a08aa3

Please sign in to comment.