Cell width: allows an attribute "width" to set the cell width (e.g. | or | ).
+ * Line breaks: Line breaks can be specified by adding a < > tag. The new line will start at the left border of the PDF document.
+ *
+ *
+ * Examples:
+ *
+ * Simple name+value lines:
+ * In most cases you will just want to display a single line per attribute with its name and value.
+ *
+ * 'myAttribute' => 'AttrName12345'
+ *
+ * This will give the following PDF output:
+ *
+ * Attribute name: 12345
+ *
+ *
+ * Multiline values:
+ * Sometimes you have multivalued attributes where it is not applicable to write all values in one line but
+ * where you want to list your values one below the other or show a table. This can be done by using the | tag.
+ *
+ * This example only uses one column but you can just use more | tags per tag to display more columns.
+ *
+ * 'myAttribute' => 'AttrName123 | 456 | 789 | '
+ *
* @param string $scope account type
- * @return array hastable of entries for the PDF. Each entry is an array where
- * each entry is treated as a new line in the PDF.
+ * @return array PDF entries
+ *
+ * @see baseModule::get_metaData()
*/
function get_pdf_entries($scope = 'user') {
return ((isset($this->meta['PDF_entries'])) ? $this->meta['PDF_entries'] : array());
|