Permalink
Browse files

Changes getDocumentPageTitle() to the more accurate getDocumentPageNa…

…me().
  • Loading branch information...
1 parent d2ed013 commit 048d84138b29677e9d905554414320fff7d0d9ff @jimsafley jimsafley committed Jun 9, 2011
Showing with 9 additions and 9 deletions.
  1. +1 −1 lib/Scripto/Adapter/Example.php
  2. +2 −2 lib/Scripto/Adapter/Interface.php
  3. +6 −6 lib/Scripto/Document.php
@@ -142,7 +142,7 @@ public function getDocumentTitle($documentId)
return $this->_documents[$documentId]['document_title'];
}
- public function getDocumentPageTitle($documentId, $pageId)
+ public function getDocumentPageName($documentId, $pageId)
{
return $this->_documents[$documentId]['document_pages'][$pageId]['page_name'];
}
@@ -93,13 +93,13 @@ public function getDocumentFirstPageId($documentId);
public function getDocumentTitle($documentId);
/**
- * Get the title of the document page.
+ * Get the name of the document page.
*
* @param int|string $documentId The document ID
* @param int|string $pageId The unique page ID
* @return string
*/
- public function getDocumentPageTitle($documentId, $pageId);
+ public function getDocumentPageName($documentId, $pageId);
/**
* Indicate whether the document transcription has been imported.
View
@@ -62,9 +62,9 @@ class Scripto_Document
protected $_title;
/**
- * @var string The document page title provided by the external system.
+ * @var string The document page name provided by the external system.
*/
- protected $_pageTitle;
+ protected $_pageName;
/**
* @var string The document page ID provided by the external system.
@@ -147,7 +147,7 @@ public function setPage($pageId)
$this->_talkPageInfo = $this->_getPageInfo('Talk:' . $baseTitle);
$this->_pageId = $pageId;
- $this->_pageTitle = $this->_adapter->getDocumentPageTitle($this->_id, $pageId);
+ $this->_pageName = $this->_adapter->getDocumentPageName($this->_id, $pageId);
$this->_baseTitle = $baseTitle;
}
@@ -170,11 +170,11 @@ public function getTitle()
}
/**
- * Get this document's page title.
+ * Get this document page's name.
*/
- public function getPageTitle()
+ public function getPageName()
{
- return $this->_pageTitle;
+ return $this->_pageName;
}
/**

0 comments on commit 048d841

Please sign in to comment.