Permalink
Browse files

Adds getDocumentPageTitle() to adapter interface.

  • Loading branch information...
1 parent dccfe9c commit 8c3c36309bf33a6bdcf954ddab63f8d1841ef6ec @jimsafley jimsafley committed Jun 8, 2011
Showing with 14 additions and 0 deletions.
  1. +5 −0 lib/Scripto/Adapter/Example.php
  2. +9 −0 lib/Scripto/Adapter/Interface.php
@@ -142,6 +142,11 @@ public function getDocumentTitle($documentId)
return $this->_documents[$documentId]['document_title'];
}
+ public function getDocumentPageTitle($documentId, $pageId)
+ {
+ return $this->_documents[$documentId]['document_pages'][$pageId]['page_name'];
+ }
+
public function importDocumentPageTranscription($documentId, $pageId, $text)
{
return false;
@@ -93,6 +93,15 @@ public function getDocumentFirstPageId($documentId);
public function getDocumentTitle($documentId);
/**
+ * Get the title 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);
+
+ /**
* Indicate whether the document transcription has been imported.
*
* @param int|string $documentId The document ID

0 comments on commit 8c3c363

Please sign in to comment.