set correct head line

This commit is contained in:
Roland Gruber 2017-02-18 09:59:57 +01:00
parent ddeafb3503
commit 809cb97f84
1 changed files with 24 additions and 3 deletions

View File

@ -186,7 +186,7 @@ function createModulePDF($accounts, $pdf_structure="default", $returnAsString =
* @return string headline
*/
function getSectionHeadline($entry) {
return $entry->getLabel();
return $entry->getHeadline();
}
/**
@ -356,14 +356,20 @@ function processAttributes($attrs,$return = array()) {
}
}
/**
* Common interface for all PDF entries.
*
* @package PDF
* @author Roland Gruber
*/
interface PDFEntry {
/**
* Returns the label of the entry.
* Returns the head line of the entry.
*
* @return string label
*/
public function getLabel();
public function getHeadline();
}
@ -398,6 +404,14 @@ class PDFTable implements PDFEntry {
return $this->label;
}
/**
* {@inheritDoc}
* @see PDFEntry::getHeadline()
*/
public function getHeadline() {
return $this->label;
}
}
/**
@ -492,5 +506,12 @@ class PDFLabelValue implements PDFEntry {
return $this->value;
}
/**
* {@inheritDoc}
* @see PDFEntry::getHeadline()
*/
public function getHeadline() {
return $this->value;
}
}