summaryrefslogtreecommitdiff
path: root/includes/classes/class_reportbase.php
diff options
context:
space:
mode:
authorfisharebest <fisharebest@gmail.com>2010-09-10 17:55:33 +0000
committerfisharebest <fisharebest@gmail.com>2010-09-10 17:55:33 +0000
commit9b5fbf4d0de5d867fb509527f89876f1a9f4de7a (patch)
treec874c61d6d379160866b83fbbf2f28eb355bf0c3 /includes/classes/class_reportbase.php
parent7aabfda984ee9ad21cbf1d23d2831212b1891cb5 (diff)
downloadwebtrees-9b5fbf4d0de5d867fb509527f89876f1a9f4de7a.tar.gz
webtrees-9b5fbf4d0de5d867fb509527f89876f1a9f4de7a.tar.bz2
webtrees-9b5fbf4d0de5d867fb509527f89876f1a9f4de7a.zip
Tidy up some whitespace/formatting
Diffstat (limited to 'includes/classes/class_reportbase.php')
-rw-r--r--includes/classes/class_reportbase.php106
1 files changed, 53 insertions, 53 deletions
diff --git a/includes/classes/class_reportbase.php b/includes/classes/class_reportbase.php
index 2722a4d7f0..22ed709636 100644
--- a/includes/classes/class_reportbase.php
+++ b/includes/classes/class_reportbase.php
@@ -117,7 +117,7 @@ class ReportBase {
* @var string
*/
public $pageFormat = "A4";
-
+
/**
* Height of page format in points
* @see DocSHandler()
@@ -157,27 +157,27 @@ class ReportBase {
* @var string
*/
public $processing = "H";
-
+
/**
* RTL Language (false=LTR, true=RTL)
* @see ReportBase::setup()
* @var boolean
*/
public $rtl = false;
-
+
/**
* User measure unit.
* @var string const
*/
const unit = "pt";
-
+
/**
* Character set
* @see ReportBase::setup()
* @var string
*/
public $charset = "UTF-8";
-
+
/**
* Show the Generated by... (true=show the text)
* @see DocSHandler()
@@ -190,7 +190,7 @@ class ReportBase {
* @var string
*/
public $generatedby = "";
-
+
/**
* webtrees URL
* @var string const
@@ -255,15 +255,15 @@ class ReportBase {
/**
* The current ISO 216 standard was introduced in 1975 and is a direct follow up to the german DIN 476 standard from 1922. ISO 216 is also called EN 20216 in Europe.
* The ISO paper sizes are based on the metric system so everything else is aproxiamte
- *
+ *
* The Series A is used for Standard Printing and Stationary.
* The Series B is used for Posters, Wall-Charts etc.
* The C series is used for folders, post cards and envelopes. C series envelope is suitable to insert A series sizes.
* ISO also define format series RA and SRA for untrimmed raw paper, where SRA stands for 'supplementary raw format A'.
* Japan has adopted the ISO series A sizes, but its series B sizes are slightly different. These sizes are sometimes called JIS B or JB sizes.
* sun was a unit of length used in Japan and is equal to about 3.03 cm or 1.193 inches
- * The United States, Canada, and in part Mexico, are today the only industrialized nations in which the ISO standard paper sizes are not yet widely used.
- *
+ * The United States, Canada, and in part Mexico, are today the only industrialized nations in which the ISO standard paper sizes are not yet widely used.
+ *
* A0 & A1 Technical drawings, posters
* A1 & A2 Flip charts
* A2 & A3 Drawings, diagrams, large tables
@@ -448,7 +448,7 @@ class ReportBase {
}
/**
- * @deprecated
+ * @deprecated
* @todo Is this a deprecated function or a future feature?
*
function get_type() {
@@ -546,7 +546,7 @@ class Element {
$this->text = $text;
return 0;
}
-
+
} //-- END Element
/**
@@ -618,7 +618,7 @@ class Cell extends Element {
*/
public $bocolor;
/**
- * The HTML color code to fill the background of this cell.
+ * The HTML color code to fill the background of this cell.
* @var string
*/
public $bgcolor;
@@ -645,7 +645,7 @@ class Cell extends Element {
*/
public $newline;
/**
- * The name of the Style that should be used to render the text.
+ * The name of the Style that should be used to render the text.
* @var string
*/
public $styleName;
@@ -671,11 +671,11 @@ class Cell extends Element {
public $url;
/**
* Cell width DEFAULT 0 (expressed in points)
- * Setting the width to 0 will make it the width from the current location to the right margin.
+ * Setting the width to 0 will make it the width from the current location to the right margin.
* @var int
*/
public $width;
-
+
public $reseth;
/**
@@ -760,7 +760,7 @@ class TextBox extends Element {
* @var array
*/
public $elements = array();
-
+
/**
* Background color in HTML code
* @var string
@@ -771,7 +771,7 @@ class TextBox extends Element {
* @var boolean
*/
public $fill;
-
+
/**
* Position the left corner of this box on the page(expressed in points). The default is the current position.
* @var mix
@@ -787,12 +787,12 @@ class TextBox extends Element {
* @var boolean
*/
public $newline;
-
+
/**
* @var boolean
*/
public $pagecheck;
-
+
/**
* Whether or not a border should be printed around this box. 0 = no border, 1 = border. Default is 0
* @var boolean
@@ -811,7 +811,7 @@ class TextBox extends Element {
* @var string
*/
public $style;
-
+
/**
* @var array $borderstyle Border style of rectangle. Array with keys among the following:
* <ul>
@@ -841,7 +841,7 @@ class TextBox extends Element {
* Resets this box last height after it's done
*/
public $reseth;
-
+
/**
* TextBox - Element - Base
*
@@ -1137,7 +1137,7 @@ class Image extends Element {
* @var string
*/
public $line = "";
-
+
/**
* Image class function - Base
*
@@ -1147,7 +1147,7 @@ class Image extends Element {
* @param float $w Width of the image
* @param float $h Height of the image
* @param string $align Placement of the image. L: left, C:center, R:right
- * @param string $ln T:same line, N:next line
+ * @param string $ln T:same line, N:next line
*/
function Image($file, $x, $y, $w, $h, $align, $ln) {
$this->file = $file;
@@ -1751,7 +1751,7 @@ function CellSHandler($attrs) {
// int Cell height (expressed in points) The starting height of this cell. If the text wraps the height will automatically be adjusted.
$height= 0;
if (!empty($attrs["height"])) $height = (int)$attrs["height"];
- // int Cell width (expressed in points) Setting the width to 0 will make it the width from the current location to the right margin.
+ // int Cell width (expressed in points) Setting the width to 0 will make it the width from the current location to the right margin.
$width = 0;
if (!empty($attrs["width"])) $width = (int)$attrs["width"];
@@ -1782,7 +1782,7 @@ function CellSHandler($attrs) {
}
}
- // string The name of the Style that should be used to render the text.
+ // string The name of the Style that should be used to render the text.
$style = "";
if (!empty($attrs["style"])) $style = $attrs["style"];
@@ -1967,7 +1967,7 @@ function TextBoxSHandler($attrs) {
// string Background color code
$bgcolor = "";
if (!empty($attrs["bgcolor"])) $bgcolor = $attrs["bgcolor"];
-
+
// boolean Wether or not fill the background color
$fill = true;
if (isset($attrs["fill"])) {
@@ -1999,14 +1999,14 @@ function TextBoxSHandler($attrs) {
$borderstyle = "";
if (!empty($attrs["borderstyle"])) $borderstyle = $attrs["borderstyle"];
*/
-
+
// int The starting height of this cell. If the text wraps the height will automatically be adjusted
$height = 0;
if (!empty($attrs["height"])) $height = (int)$attrs["height"];
// int Setting the width to 0 will make it the width from the current location to the margin
$width = 0;
if (!empty($attrs["width"])) $width = (int)$attrs["width"];
-
+
// mixed Position the left corner of this box on the page. The default is the current position.
$left = ".";
if (isset($attrs["left"])) {
@@ -2104,7 +2104,7 @@ function TextSHandler($attrs) {
array_push($printDataStack, $printData);
$printData = true;
- // string The name of the Style that should be used to render the text.
+ // string The name of the Style that should be used to render the text.
$style = "";
if (!empty($attrs["style"])) $style = $attrs["style"];
@@ -2130,13 +2130,13 @@ function TextEHandler() {
* Get the name
* 1. id is empty - current GEDCOM record
* 2. id is set with a record id
-*
+*
* @param array $attrs an array of key value pairs for the attributes
*/
function GetPersonNameSHandler($attrs) {
// @deprecated
global $currentElement, $vars, $gedrec;
-
+
$id = "";
$match = array();
if (empty($attrs["id"])) {
@@ -2209,7 +2209,7 @@ function GetPersonNameSHandler($attrs) {
/**
* XML <GedcomValue> start elemnt handler
-*
+*
* @param array $attrs an array of key value pairs for the attributes
*/
function GedcomValueSHandler($attrs) {
@@ -2221,7 +2221,7 @@ function GedcomValueSHandler($attrs) {
if (preg_match("/0 @(.+)@/", $gedrec, $match)) {
$id = $match[1];
}
-
+
if (isset($attrs["newline"]) && $attrs["newline"]=="1") {
$useBreak = "1";
} else {
@@ -2271,7 +2271,7 @@ function GedcomValueSHandler($attrs) {
/**
* XML <RepeatTag> start elemnt handler
-*
+*
* @see RepeatTagEHandler()
* @param array $attrs an array of key value pairs for the attributes
*/
@@ -2346,7 +2346,7 @@ function RepeatTagSHandler($attrs) {
/**
* XML </ RepeatTag> end elemnt handler
-*
+*
* @see RepeatTagSHandler()
*/
function RepeatTagEHandler() {
@@ -2429,20 +2429,20 @@ function RepeatTagEHandler() {
/**
* Variable lookup
-*
+*
* Retrieve predefined variables :
* @ desc GEDCOM fact description, example:
* 1 EVEN This is a description
* @ fact GEDCOM fact tag, such as BIRT, DEAT etc.
* $ i18n::translate('....')
* $ language_settings[]
-*
-*
+*
+*
* Or retrieve variables preset with <SetVar> element
-*
+*
* If the variable is a date and 'date="1"' attribute is set then the date will be reformated
* from Sep to September
-*
+*
* @param array $attrs an array of key value pairs for the attributes
* @see SetVarSHandler()
*/
@@ -2455,7 +2455,7 @@ function varSHandler($attrs) {
if (empty($attrs["var"])) {
die("<strong>REPORT ERROR var: </strong> The attribute \"var=\" is missing or not set in the XML file on line: ".xml_get_current_line_number($parser));
}
-
+
$var = $attrs["var"];
// SetVar element preset variables
if (!empty($vars[$var]["id"])) {
@@ -2484,7 +2484,7 @@ function varSHandler($attrs) {
/**
* Variable lookup, retrieve the first letter only
-*
+*
* @param array $attrs an array of key value pairs for the attributes
*/
function varLetterSHandler($attrs) {
@@ -2587,7 +2587,7 @@ function FactsSHandler($attrs) {
/**
* XML </ Facts> end elemnt handler
-*
+*
* @see FactsSHandler()
*/
function FactsEHandler() {
@@ -2681,7 +2681,7 @@ function SetVarSHandler($attrs) {
if (empty($attrs["name"])) {
die("<strong>REPORT ERROR var: </strong> The attribute \"name=\" is missing or not set in the XML file");
}
-
+
$name = $attrs["name"];
$value = $attrs["value"];
$match = array();
@@ -2778,7 +2778,7 @@ function ifSHandler($attrs) {
} elseif ($id=="generation") {
$value = "\"$generation\"";
} else {
-
+
$temp = explode(" ", trim($gedrec));
$level = $temp[0];
if ($level==0) {
@@ -2814,7 +2814,7 @@ function ifEHandler() {
* XML <Footnote > start element
* Collect the Footnote links
* GEDCOM Records that are protected by Privacy setting will be ignore
-*
+*
* @param array $attrs an array of key value pairs for the attributes
* @see FootnoteEHandler()
*/
@@ -2846,7 +2846,7 @@ function FootnoteSHandler($attrs) {
/**
* XML <Footnote /> end element
* Print the collected Footnote data
-*
+*
* @see FootnoteSHandler()
*/
function FootnoteEHandler() {
@@ -3012,10 +3012,10 @@ function ImageSHandler($attrs) {
$height = 0;
if (!empty($attrs["width"])) $width = (int)$attrs["width"];
if (!empty($attrs["height"])) $height = (int)$attrs["height"];
-
+
$file = "";
if (!empty($attrs["file"])) $file = $attrs["file"];
-
+
if ($file=="@FILE") {
$match = array();
if (preg_match("/\d OBJE @(.+)@/", $gedrec, $match)) {
@@ -3548,7 +3548,7 @@ function ListEHandler() {
/**
* XML <ListTotal> elemnt handler
-*
+*
* Prints the total number of records in a list
* The total number is collected from
* List and Relatives
@@ -3705,7 +3705,7 @@ function RelativesSHandler($attrs) {
/**
* XML </ Relatives> end elemnt handler
-*
+*
* @see RelativesSHandler()
*/
function RelativesEHandler() {
@@ -3773,7 +3773,7 @@ function RelativesEHandler() {
xml_set_element_handler($repeat_parser, "startElement", "endElement");
//-- set the character data handler
xml_set_character_data_handler($repeat_parser, "characterData");
-
+
if (!xml_parse($repeat_parser, $reportxml, true)) {
printf($reportxml."\nRelativesEHandler XML error: %s at line %d", xml_error_string(xml_get_error_code($repeat_parser)), xml_get_current_line_number($repeat_parser));
print_r($repeatsStack);
@@ -3794,7 +3794,7 @@ function RelativesEHandler() {
/**
* XML <Generation /> elemnt handler
-*
+*
* Prints the number of generations
* @todo no info on wiki
* @see Element::addText()