@@ -214,7 +214,7 @@ |
||
214 | 214 | * |
215 | 215 | * The native quote() function does not convert PHP nulls to DB nulls |
216 | 216 | * |
217 | - * @param $string |
|
217 | + * @param string $string |
|
218 | 218 | * |
219 | 219 | * @return string |
220 | 220 | * |
@@ -85,8 +85,7 @@ |
||
85 | 85 | // Create the underlying PDO object |
86 | 86 | self::$pdo = new PDO( |
87 | 87 | (substr($DBHOST, 0, 1) === '/' ? |
88 | - "mysql:unix_socket={$DBHOST};dbname={$DBNAME}" : |
|
89 | - "mysql:host={$DBHOST};dbname={$DBNAME};port={$DBPORT}" |
|
88 | + "mysql:unix_socket={$DBHOST};dbname={$DBNAME}" : "mysql:host={$DBHOST};dbname={$DBNAME};port={$DBPORT}" |
|
90 | 89 | ), |
91 | 90 | $DBUSER, $DBPASS, |
92 | 91 | array( |
@@ -1,18 +1,18 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * webtrees: online genealogy |
|
4 | - * Copyright (C) 2016 webtrees development team |
|
5 | - * This program is free software: you can redistribute it and/or modify |
|
6 | - * it under the terms of the GNU General Public License as published by |
|
7 | - * the Free Software Foundation, either version 3 of the License, or |
|
8 | - * (at your option) any later version. |
|
9 | - * This program is distributed in the hope that it will be useful, |
|
10 | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
11 | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
12 | - * GNU General Public License for more details. |
|
13 | - * You should have received a copy of the GNU General Public License |
|
14 | - * along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
15 | - */ |
|
3 | + * webtrees: online genealogy |
|
4 | + * Copyright (C) 2016 webtrees development team |
|
5 | + * This program is free software: you can redistribute it and/or modify |
|
6 | + * it under the terms of the GNU General Public License as published by |
|
7 | + * the Free Software Foundation, either version 3 of the License, or |
|
8 | + * (at your option) any later version. |
|
9 | + * This program is distributed in the hope that it will be useful, |
|
10 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
11 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
12 | + * GNU General Public License for more details. |
|
13 | + * You should have received a copy of the GNU General Public License |
|
14 | + * along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
15 | + */ |
|
16 | 16 | namespace Fisharebest\Webtrees; |
17 | 17 | |
18 | 18 | use Fisharebest\Webtrees\Theme\AdministrationTheme; |
@@ -87,7 +87,7 @@ |
||
87 | 87 | /** |
88 | 88 | * Get the record to which this fact links |
89 | 89 | * |
90 | - * @return Individual|Family|Source|Repository|Media|Note|null |
|
90 | + * @return GedcomRecord|null |
|
91 | 91 | */ |
92 | 92 | public function getTarget() { |
93 | 93 | $xref = trim($this->getValue(), '@'); |
@@ -1,18 +1,18 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * webtrees: online genealogy |
|
4 | - * Copyright (C) 2016 webtrees development team |
|
5 | - * This program is free software: you can redistribute it and/or modify |
|
6 | - * it under the terms of the GNU General Public License as published by |
|
7 | - * the Free Software Foundation, either version 3 of the License, or |
|
8 | - * (at your option) any later version. |
|
9 | - * This program is distributed in the hope that it will be useful, |
|
10 | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
11 | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
12 | - * GNU General Public License for more details. |
|
13 | - * You should have received a copy of the GNU General Public License |
|
14 | - * along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
15 | - */ |
|
3 | + * webtrees: online genealogy |
|
4 | + * Copyright (C) 2016 webtrees development team |
|
5 | + * This program is free software: you can redistribute it and/or modify |
|
6 | + * it under the terms of the GNU General Public License as published by |
|
7 | + * the Free Software Foundation, either version 3 of the License, or |
|
8 | + * (at your option) any later version. |
|
9 | + * This program is distributed in the hope that it will be useful, |
|
10 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
11 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
12 | + * GNU General Public License for more details. |
|
13 | + * You should have received a copy of the GNU General Public License |
|
14 | + * along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
15 | + */ |
|
16 | 16 | namespace Fisharebest\Webtrees; |
17 | 17 | |
18 | 18 | use Fisharebest\Webtrees\Theme\AdministrationTheme; |
@@ -248,7 +248,7 @@ discard block |
||
248 | 248 | * @param string $xref |
249 | 249 | * @param int $tree_id |
250 | 250 | * |
251 | - * @return null|string |
|
251 | + * @return string |
|
252 | 252 | */ |
253 | 253 | protected static function fetchGedcomRecord($xref, $tree_id) { |
254 | 254 | return Database::prepare( |
@@ -388,7 +388,7 @@ discard block |
||
388 | 388 | * (b) Level 1 object with the Highlight option missing or set to other than "Y" or "N" |
389 | 389 | * (c) Level 2 or higher object with the Highlight option set to "Y" |
390 | 390 | * |
391 | - * @return null|Media |
|
391 | + * @return GedcomRecord|null |
|
392 | 392 | */ |
393 | 393 | public function findHighlightedMedia() { |
394 | 394 | $objectA = null; |
@@ -1,18 +1,18 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * webtrees: online genealogy |
|
4 | - * Copyright (C) 2016 webtrees development team |
|
5 | - * This program is free software: you can redistribute it and/or modify |
|
6 | - * it under the terms of the GNU General Public License as published by |
|
7 | - * the Free Software Foundation, either version 3 of the License, or |
|
8 | - * (at your option) any later version. |
|
9 | - * This program is distributed in the hope that it will be useful, |
|
10 | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
11 | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
12 | - * GNU General Public License for more details. |
|
13 | - * You should have received a copy of the GNU General Public License |
|
14 | - * along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
15 | - */ |
|
3 | + * webtrees: online genealogy |
|
4 | + * Copyright (C) 2016 webtrees development team |
|
5 | + * This program is free software: you can redistribute it and/or modify |
|
6 | + * it under the terms of the GNU General Public License as published by |
|
7 | + * the Free Software Foundation, either version 3 of the License, or |
|
8 | + * (at your option) any later version. |
|
9 | + * This program is distributed in the hope that it will be useful, |
|
10 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
11 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
12 | + * GNU General Public License for more details. |
|
13 | + * You should have received a copy of the GNU General Public License |
|
14 | + * along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
15 | + */ |
|
16 | 16 | namespace Fisharebest\Webtrees; |
17 | 17 | |
18 | 18 | use Fisharebest\Webtrees\Theme\AdministrationTheme; |
@@ -152,7 +152,7 @@ discard block |
||
152 | 152 | * |
153 | 153 | * @param Tree $tree |
154 | 154 | * |
155 | - * @return ModuleBlockInterface[] |
|
155 | + * @return AbstractModule[] |
|
156 | 156 | */ |
157 | 157 | public static function getActiveBlocks(Tree $tree) { |
158 | 158 | return self::getActiveModulesByComponent($tree, 'block'); |
@@ -163,7 +163,7 @@ discard block |
||
163 | 163 | * |
164 | 164 | * @param Tree $tree |
165 | 165 | * |
166 | - * @return ModuleChartInterface[] |
|
166 | + * @return AbstractModule[] |
|
167 | 167 | */ |
168 | 168 | public static function getActiveCharts(Tree $tree) { |
169 | 169 | return self::getActiveModulesByComponent($tree, 'chart'); |
@@ -174,7 +174,7 @@ discard block |
||
174 | 174 | * |
175 | 175 | * @param Tree $tree |
176 | 176 | * |
177 | - * @return ModuleMenuInterface[] |
|
177 | + * @return AbstractModule[] |
|
178 | 178 | */ |
179 | 179 | public static function getActiveMenus(Tree $tree) { |
180 | 180 | return self::getActiveModulesByComponent($tree, 'menu'); |
@@ -185,7 +185,7 @@ discard block |
||
185 | 185 | * |
186 | 186 | * @param Tree $tree |
187 | 187 | * |
188 | - * @return ModuleReportInterface[] |
|
188 | + * @return AbstractModule[] |
|
189 | 189 | */ |
190 | 190 | public static function getActiveReports(Tree $tree) { |
191 | 191 | return self::getActiveModulesByComponent($tree, 'report'); |
@@ -196,7 +196,7 @@ discard block |
||
196 | 196 | * |
197 | 197 | * @param Tree $tree |
198 | 198 | * |
199 | - * @return ModuleSidebarInterface[] |
|
199 | + * @return AbstractModule[] |
|
200 | 200 | */ |
201 | 201 | public static function getActiveSidebars(Tree $tree) { |
202 | 202 | return self::getActiveModulesByComponent($tree, 'sidebar'); |
@@ -207,7 +207,7 @@ discard block |
||
207 | 207 | * |
208 | 208 | * @param Tree $tree |
209 | 209 | * |
210 | - * @return ModuleTabInterface[] |
|
210 | + * @return AbstractModule[] |
|
211 | 211 | */ |
212 | 212 | public static function getActiveTabs(Tree $tree) { |
213 | 213 | return self::getActiveModulesByComponent($tree, 'tab'); |
@@ -218,7 +218,7 @@ discard block |
||
218 | 218 | * |
219 | 219 | * @param Tree $tree |
220 | 220 | * |
221 | - * @return ModuleThemeInterface[] |
|
221 | + * @return AbstractModule[] |
|
222 | 222 | */ |
223 | 223 | public static function getActiveThemes(Tree $tree) { |
224 | 224 | return self::getActiveModulesByComponent($tree, 'theme'); |
@@ -53,7 +53,7 @@ |
||
53 | 53 | } |
54 | 54 | } catch (\Exception $ex) { |
55 | 55 | // The module has been deleted or is broken? Disable it. |
56 | - Log::addConfigurationLog("Module {$module_name} is missing or broken - disabling it"); |
|
56 | + Log::addConfigurationLog("module {$module_name} is missing or broken - disabling it"); |
|
57 | 57 | Database::prepare( |
58 | 58 | "UPDATE `##module` SET status = 'disabled' WHERE module_name = :module_name" |
59 | 59 | )->execute(array( |
@@ -1,18 +1,18 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * webtrees: online genealogy |
|
4 | - * Copyright (C) 2016 webtrees development team |
|
5 | - * This program is free software: you can redistribute it and/or modify |
|
6 | - * it under the terms of the GNU General Public License as published by |
|
7 | - * the Free Software Foundation, either version 3 of the License, or |
|
8 | - * (at your option) any later version. |
|
9 | - * This program is distributed in the hope that it will be useful, |
|
10 | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
11 | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
12 | - * GNU General Public License for more details. |
|
13 | - * You should have received a copy of the GNU General Public License |
|
14 | - * along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
15 | - */ |
|
3 | + * webtrees: online genealogy |
|
4 | + * Copyright (C) 2016 webtrees development team |
|
5 | + * This program is free software: you can redistribute it and/or modify |
|
6 | + * it under the terms of the GNU General Public License as published by |
|
7 | + * the Free Software Foundation, either version 3 of the License, or |
|
8 | + * (at your option) any later version. |
|
9 | + * This program is distributed in the hope that it will be useful, |
|
10 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
11 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
12 | + * GNU General Public License for more details. |
|
13 | + * You should have received a copy of the GNU General Public License |
|
14 | + * along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
15 | + */ |
|
16 | 16 | namespace Fisharebest\Webtrees; |
17 | 17 | |
18 | 18 | use Fisharebest\Webtrees\Theme\AdministrationTheme; |
@@ -268,7 +268,7 @@ discard block |
||
268 | 268 | * |
269 | 269 | * @param string $xref |
270 | 270 | * |
271 | - * @return string|null |
|
271 | + * @return integer|null |
|
272 | 272 | */ |
273 | 273 | private function findNextXref($xref) { |
274 | 274 | foreach (array_keys($this->all_xrefs) as $key) { |
@@ -288,7 +288,7 @@ discard block |
||
288 | 288 | * |
289 | 289 | * @param string $xref |
290 | 290 | * |
291 | - * @return string|null |
|
291 | + * @return integer|null |
|
292 | 292 | */ |
293 | 293 | private function findPrevXref($xref) { |
294 | 294 | foreach (array_reverse(array_keys($this->all_xrefs)) as $key) { |
@@ -236,12 +236,15 @@ discard block |
||
236 | 236 | <?php // Reset - otherwise we might "undo all changes", which refreshes the ?> |
237 | 237 | <?php // page, which makes them all again! ?> |
238 | 238 | <script>reset_reload();</script> |
239 | - <?php else: ?> |
|
239 | + <?php else { |
|
240 | + : ?> |
|
240 | 241 | <hr> |
241 | 242 | <div id="batch_update2" class="col-sm-12"> |
242 | 243 | <?php if ($this->curr_xref): ?> |
243 | 244 | <?php // Create an object, so we can get the latest version of the name. ?> |
244 | - <?php $this->record = GedcomRecord::getInstance($this->curr_xref, $WT_TREE); ?> |
|
245 | + <?php $this->record = GedcomRecord::getInstance($this->curr_xref, $WT_TREE); |
|
246 | +} |
|
247 | +?> |
|
245 | 248 | <div class="form-group"> |
246 | 249 | <?php echo self::createSubmitButton(I18N::translate('previous'), $this->prev_xref) ?> |
247 | 250 | <?php echo self::createSubmitButton(I18N::translate('next'), $this->next_xref) ?> |
@@ -253,8 +256,11 @@ discard block |
||
253 | 256 | <div class="form-group"> |
254 | 257 | <?php echo implode(' ', $this->PLUGIN->getActionButtons($this->curr_xref, $this->record)); ?> |
255 | 258 | </div> |
256 | - <?php else: ?> |
|
257 | - <div class="alert alert-info"><?php echo I18N::translate('Nothing found.'); ?></div> |
|
259 | + <?php else { |
|
260 | + : ?> |
|
261 | + <div class="alert alert-info"><?php echo I18N::translate('Nothing found.'); |
|
262 | +} |
|
263 | +?></div> |
|
258 | 264 | <?php endif; ?> |
259 | 265 | </div> |
260 | 266 | <?php endif; ?> |
@@ -1,18 +1,18 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * webtrees: online genealogy |
|
4 | - * Copyright (C) 2016 webtrees development team |
|
5 | - * This program is free software: you can redistribute it and/or modify |
|
6 | - * it under the terms of the GNU General Public License as published by |
|
7 | - * the Free Software Foundation, either version 3 of the License, or |
|
8 | - * (at your option) any later version. |
|
9 | - * This program is distributed in the hope that it will be useful, |
|
10 | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
11 | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
12 | - * GNU General Public License for more details. |
|
13 | - * You should have received a copy of the GNU General Public License |
|
14 | - * along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
15 | - */ |
|
3 | + * webtrees: online genealogy |
|
4 | + * Copyright (C) 2016 webtrees development team |
|
5 | + * This program is free software: you can redistribute it and/or modify |
|
6 | + * it under the terms of the GNU General Public License as published by |
|
7 | + * the Free Software Foundation, either version 3 of the License, or |
|
8 | + * (at your option) any later version. |
|
9 | + * This program is distributed in the hope that it will be useful, |
|
10 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
11 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
12 | + * GNU General Public License for more details. |
|
13 | + * You should have received a copy of the GNU General Public License |
|
14 | + * along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
15 | + */ |
|
16 | 16 | namespace Fisharebest\Webtrees; |
17 | 17 | |
18 | 18 | use Fisharebest\Webtrees\Theme\AdministrationTheme; |
@@ -500,7 +500,7 @@ |
||
500 | 500 | /** |
501 | 501 | * A menu, to be added to the main application menu. |
502 | 502 | * |
503 | - * @return Menu|null |
|
503 | + * @return Menu |
|
504 | 504 | */ |
505 | 505 | public function getMenu() { |
506 | 506 | $menu = new Menu($this->getTitle(), 'module.php?mod=' . $this->getName() . '&mod_action=show_list', 'menu-story'); |
@@ -389,8 +389,11 @@ |
||
389 | 389 | <a href="<?php echo $individual->getHtmlUrl(); ?>#stories"> |
390 | 390 | <?php echo $individual->getFullName(); ?> |
391 | 391 | </a> |
392 | - <?php else: ?> |
|
393 | - <?php echo $story->xref; ?> |
|
392 | + <?php else { |
|
393 | + : ?> |
|
394 | + <?php echo $story->xref; |
|
395 | +} |
|
396 | +?> |
|
394 | 397 | <?php endif; ?> |
395 | 398 | </td> |
396 | 399 | <td> |
@@ -1,18 +1,18 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * webtrees: online genealogy |
|
4 | - * Copyright (C) 2016 webtrees development team |
|
5 | - * This program is free software: you can redistribute it and/or modify |
|
6 | - * it under the terms of the GNU General Public License as published by |
|
7 | - * the Free Software Foundation, either version 3 of the License, or |
|
8 | - * (at your option) any later version. |
|
9 | - * This program is distributed in the hope that it will be useful, |
|
10 | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
11 | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
12 | - * GNU General Public License for more details. |
|
13 | - * You should have received a copy of the GNU General Public License |
|
14 | - * along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
15 | - */ |
|
3 | + * webtrees: online genealogy |
|
4 | + * Copyright (C) 2016 webtrees development team |
|
5 | + * This program is free software: you can redistribute it and/or modify |
|
6 | + * it under the terms of the GNU General Public License as published by |
|
7 | + * the Free Software Foundation, either version 3 of the License, or |
|
8 | + * (at your option) any later version. |
|
9 | + * This program is distributed in the hope that it will be useful, |
|
10 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
11 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
12 | + * GNU General Public License for more details. |
|
13 | + * You should have received a copy of the GNU General Public License |
|
14 | + * along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
15 | + */ |
|
16 | 16 | namespace Fisharebest\Webtrees; |
17 | 17 | |
18 | 18 | use Fisharebest\Webtrees\Theme\AdministrationTheme; |
@@ -463,7 +463,7 @@ |
||
463 | 463 | * |
464 | 464 | * @param string $s Style name |
465 | 465 | * |
466 | - * @return array |
|
466 | + * @return string |
|
467 | 467 | */ |
468 | 468 | public function getStyle($s) { |
469 | 469 | if (!isset($this->Styles[$s])) { |
@@ -139,258 +139,258 @@ |
||
139 | 139 | */ |
140 | 140 | switch ($this->pageFormat) { |
141 | 141 | // ISO A series |
142 | - case '4A0': // ISO 216, 1682 mm x 2378 mm |
|
143 | - $sizes = array(4767.86, 6740.79); |
|
144 | - break; |
|
145 | - case '2A0': // ISO 216, 1189 mm x 1682 mm |
|
146 | - $sizes = array(3370.39, 4767.86); |
|
147 | - break; |
|
148 | - case 'A0': // ISO 216, 841 mm x 1189mm |
|
149 | - $sizes = array(2383.94, 3370.39); |
|
150 | - break; |
|
151 | - case 'A1': // ISO 216, 594 mm x 841 mm |
|
152 | - $sizes = array(1683.78, 2383.94); |
|
153 | - break; |
|
154 | - case 'A2': // ISO 216, 420 mm x 594 mm |
|
155 | - $sizes = array(1190.55, 1683.78); |
|
156 | - break; |
|
157 | - case 'A3': // ISO 216, 297 mm x 420 mm |
|
158 | - $sizes = array(841.89, 1190.55); |
|
159 | - break; |
|
160 | - case 'A4': // ISO 216, 210 mm 297 mm |
|
161 | - $sizes = array(595.28, 841.89); |
|
162 | - break; |
|
163 | - case 'A5': // ISO 216, 148 mm x 210 mm |
|
164 | - $sizes = array(419.53, 595.28); |
|
165 | - break; |
|
166 | - case 'A6': // ISO 216, 105 mm x 148 mm |
|
167 | - $sizes = array(297.64, 419.53); |
|
168 | - break; |
|
169 | - case 'A7': // ISO 216, 74 mm x 105 mm |
|
170 | - $sizes = array(209.76, 297.64); |
|
171 | - break; |
|
172 | - case 'A8': // ISO 216, 52 mm x 74 mm |
|
173 | - $sizes = array(147.40, 209.76); |
|
174 | - break; |
|
175 | - case 'A9': // ISO 216, 37 mm x 52 mm |
|
176 | - $sizes = array(104.88, 147.40); |
|
177 | - break; |
|
178 | - case 'A10': // ISO 216, 26 mm x 37 mm |
|
179 | - $sizes = array(73.70, 104.88); |
|
180 | - break; |
|
181 | - |
|
182 | - // ISO B series |
|
183 | - case 'B0': // ISO 216, 1000 mm x 1414 mm |
|
184 | - $sizes = array(2834.65, 4008.19); |
|
185 | - break; |
|
186 | - case 'B1': // ISO 216, 707 mm x 1000 mm |
|
187 | - $sizes = array(2004.09, 2834.65); |
|
188 | - break; |
|
189 | - case 'B2': // ISO 216, 500 mm x 707 mm |
|
190 | - $sizes = array(1417.32, 2004.09); |
|
191 | - break; |
|
192 | - case 'B3': // ISO 216, 353 mm x 500 mm |
|
193 | - $sizes = array(1000.63, 1417.32); |
|
194 | - break; |
|
195 | - case 'B4': // ISO 216, 250 mm x 353 mm |
|
196 | - $sizes = array(708.66, 1000.63); |
|
197 | - break; |
|
198 | - case 'B5': // ISO 216, 176 mm x 250 mm |
|
199 | - $sizes = array(498.90, 708.66); |
|
200 | - break; |
|
201 | - case 'B6': // ISO 216, 125 mm x 176 mm |
|
202 | - $sizes = array(354.33, 498.90); |
|
203 | - break; |
|
204 | - case 'B7': // ISO 216, 88 mm x 125 mm |
|
205 | - $sizes = array(249.45, 354.33); |
|
206 | - break; |
|
207 | - case 'B8': // ISO 216, 62 mm x 88 mm |
|
208 | - $sizes = array(175.75, 249.45); |
|
209 | - break; |
|
210 | - case 'B9': // ISO 216, 44 mm x 62 mm |
|
211 | - $sizes = array(124.72, 175.75); |
|
212 | - break; |
|
213 | - case 'B10': // ISO 216, 31 mm x 44 mm |
|
214 | - $sizes = array(87.87, 124.72); |
|
215 | - break; |
|
216 | - |
|
217 | - // ISO C series, Envelope |
|
218 | - case 'C0': // ISO 269, 917 mm x 1297 mm, For flat A0 sheet |
|
219 | - $sizes = array(2599.37, 3676.54); |
|
220 | - break; |
|
221 | - case 'C1': // ISO 269, 648 mm x 917 mm, For flat A1 sheet |
|
222 | - $sizes = array(1836.85, 2599.37); |
|
223 | - break; |
|
224 | - case 'C2': // ISO 269, 458 mm x 648 mm, For flat A2 sheet, A1 folded in half |
|
225 | - $sizes = array(1298.27, 1836.85); |
|
226 | - break; |
|
227 | - case 'C3': // ISO 269, 324 mm x 458 mm, For flat A3 sheet, A2 folded in half |
|
228 | - $sizes = array(918.43, 1298.27); |
|
229 | - break; |
|
230 | - case 'C4': // ISO 269, 229 mm x 324 mm, For flat A4 sheet, A3 folded in half |
|
231 | - $sizes = array(649.13, 918.43); |
|
232 | - break; |
|
233 | - case 'C5': // ISO 269, 162 mm x 229 mm, For flat A5 sheet, A4 folded in half |
|
234 | - $sizes = array(459.21, 649.13); |
|
235 | - break; |
|
236 | - case 'C6/5': // ISO 269, 114 mm x 229 mm. A5 folded twice = 1/3 A4. Alternative for the DL envelope |
|
237 | - $sizes = array(323.15, 649.13); |
|
238 | - break; |
|
239 | - case 'C6': // ISO 269, 114 mm x 162 mm, For A5 folded in half |
|
240 | - $sizes = array(323.15, 459.21); |
|
241 | - break; |
|
242 | - case 'C7/6': // ISO 269, 81 mm x 162 mm, For A5 sheet folded in thirds |
|
243 | - $sizes = array(229.61, 459.21); |
|
244 | - break; |
|
245 | - case 'C7': // ISO 269, 81 mm x 114 mm, For A5 folded in quarters |
|
246 | - $sizes = array(229.61, 323.15); |
|
247 | - break; |
|
248 | - case 'C8': // ISO 269, 57 mm x 81 mm |
|
249 | - $sizes = array(161.57, 229.61); |
|
250 | - break; |
|
251 | - case 'C9': // ISO 269, 40 mm x 57 mm |
|
252 | - $sizes = array(113.39, 161.57); |
|
253 | - break; |
|
254 | - case 'C10': // ISO 269, 28 mm x 40 mm |
|
255 | - $sizes = array(79.37, 113.39); |
|
256 | - break; |
|
257 | - case 'DL': // Original DIN 678 but ISO 269 now has this C6/5 , 110 mm x 220 mm, For A4 sheet folded in thirds, A5 in half |
|
258 | - $sizes = array(311.81, 623.62); |
|
259 | - break; |
|
260 | - |
|
261 | - // Untrimmed stock sizes for the ISO-A Series - ISO primary range |
|
262 | - case 'RA0': // ISO 478, 860 mm x 1220 mm |
|
263 | - $sizes = array(2437.80, 3458.27); |
|
264 | - break; |
|
265 | - case 'RA1': // ISO 478, 610 mm x 860 mm |
|
266 | - $sizes = array(1729.13, 2437.80); |
|
267 | - break; |
|
268 | - case 'RA2': // ISO 478, 430 mm x 610 mm |
|
269 | - $sizes = array(1218.90, 1729.13); |
|
270 | - break; |
|
271 | - case 'RA3': // ISO 478, 305 mm x 430 mm |
|
272 | - $sizes = array(864.57, 1218.90); |
|
273 | - break; |
|
274 | - case 'RA4': // ISO 478, 215 mm x 305 mm |
|
275 | - $sizes = array(609.45, 864.57); |
|
276 | - break; |
|
277 | - |
|
278 | - // Untrimmed stock sizes for the ISO-A Series - ISO supplementary range |
|
279 | - case 'SRA0': // ISO 593, 900 mm x 1280 mm |
|
280 | - $sizes = array(2551.18, 3628.35); |
|
281 | - break; |
|
282 | - case 'SRA1': // ISO 593, 640 mm x 900 mm |
|
283 | - $sizes = array(1814.17, 2551.18); |
|
284 | - break; |
|
285 | - case 'SRA2': // ISO 593, 450 mm x 640 mm |
|
286 | - $sizes = array(1275.59, 1814.17); |
|
287 | - break; |
|
288 | - case 'SRA3': // ISO 593, 320 mm x 450 mm |
|
289 | - $sizes = array(907.09, 1275.59); |
|
290 | - break; |
|
291 | - case 'SRA4': // ISO 593, 225 mm x 320 mm |
|
292 | - $sizes = array(637.80, 907.09); |
|
293 | - break; |
|
294 | - |
|
295 | - // ISO size variations |
|
296 | - case 'A2EXTRA': // ISO 216, 445 mm x 619 mm |
|
297 | - $sizes = array(1261.42, 1754.65); |
|
298 | - break; |
|
299 | - case 'A2SUPER': // ISO 216, 305 mm x 508 mm |
|
300 | - $sizes = array(864.57, 1440.00); |
|
301 | - break; |
|
302 | - case 'A3EXTRA': // ISO 216, 322 mm x 445 mm |
|
303 | - $sizes = array(912.76, 1261.42); |
|
304 | - break; |
|
305 | - case 'SUPERA3': // ISO 216, 305 mm x 487 mm |
|
306 | - $sizes = array(864.57, 1380.47); |
|
307 | - break; |
|
308 | - case 'A4EXTRA': // ISO 216, 235 mm x 322 mm |
|
309 | - $sizes = array(666.14, 912.76); |
|
310 | - break; |
|
311 | - case 'A4LONG': // ISO 216, 210 mm x 348 mm |
|
312 | - $sizes = array(595.28, 986.46); |
|
313 | - break; |
|
314 | - case 'A4SUPER': // ISO 216, 229 mm x 322 mm |
|
315 | - $sizes = array(649.13, 912.76); |
|
316 | - break; |
|
317 | - case 'SUPERA4': // ISO 216, 227 mm x 356 mm |
|
318 | - $sizes = array(643.46, 1009.13); |
|
319 | - break; |
|
320 | - case 'A5EXTRA': // ISO 216, 173 mm x 235 mm |
|
321 | - $sizes = array(490.39, 666.14); |
|
322 | - break; |
|
323 | - case 'SOB5EXTRA': // ISO 216, 202 mm x 276 mm |
|
324 | - $sizes = array(572.60, 782.36); |
|
325 | - break; |
|
326 | - |
|
327 | - // Japanese version of the ISO 216 B series |
|
328 | - case 'JB0': // JIS P 0138-61, 1030 mm x 1456 mm |
|
329 | - $sizes = array(2919.69, 4127.24); |
|
330 | - break; |
|
331 | - case 'JB1': // JIS P 0138-61, 728 mm x 1030 mm |
|
332 | - $sizes = array(2063.62, 2919.69); |
|
333 | - break; |
|
334 | - case 'JB2': // JIS P 0138-61, 515 mm x 728 mm |
|
335 | - $sizes = array(1459.84, 2063.62); |
|
336 | - break; |
|
337 | - case 'JB3': // JIS P 0138-61, 364 mm x 515 mm |
|
338 | - $sizes = array(1031.81, 1459.84); |
|
339 | - break; |
|
340 | - case 'JB4': // JIS P 0138-61, 257 mm x 364 mm |
|
341 | - $sizes = array(728.50, 1031.81); |
|
342 | - break; |
|
343 | - case 'JB5': // JIS P 0138-61, 182 mm x 257 mm |
|
344 | - $sizes = array(515.91, 728.50); |
|
345 | - break; |
|
346 | - case 'JB6': // JIS P 0138-61, 128 mm x 182 mm |
|
347 | - $sizes = array(362.83, 515.91); |
|
348 | - break; |
|
349 | - case 'JB7': // JIS P 0138-61, 91 mm x 128 mm |
|
350 | - $sizes = array(257.95, 362.83); |
|
351 | - break; |
|
352 | - case 'JB8': // JIS P 0138-61, 64 mm x 91 mm |
|
353 | - $sizes = array(181.42, 257.95); |
|
354 | - break; |
|
355 | - case 'JB9': // JIS P 0138-61, 45 mm x 64 mm |
|
356 | - $sizes = array(127.56, 181.42); |
|
357 | - break; |
|
358 | - case 'JB10': // JIS P 0138-61, 32 mm x 45 mm |
|
359 | - $sizes = array(90.71, 127.56); |
|
360 | - break; |
|
361 | - |
|
362 | - // US pages |
|
363 | - case 'EXECUTIVE': // 7.25 in x 10.5 in |
|
364 | - $sizes = array(522.00, 756.00); |
|
365 | - break; |
|
366 | - case 'FOLIO': // 8.5 in x 13 in |
|
367 | - $sizes = array(612.00, 936.00); |
|
368 | - break; |
|
369 | - case 'FOOLSCAP': // 13.5 in x 17 in |
|
370 | - $sizes = array(972.00, 1224.00); |
|
371 | - break; |
|
372 | - case 'LEDGER': // 11 in x 17 in |
|
373 | - $sizes = array(792.00, 1224.00); |
|
374 | - break; |
|
375 | - case 'LEGAL': // 8.5 in x 14 in |
|
376 | - $sizes = array(612.00, 1008.00); |
|
377 | - break; |
|
378 | - case 'LETTER': // 8.5 in x 11 in |
|
379 | - $sizes = array(612.00, 792.00); |
|
380 | - break; |
|
381 | - case 'QUARTO': // 8.46 in x 10.8 in |
|
382 | - $sizes = array(609.12, 777.50); |
|
383 | - break; |
|
384 | - case 'STATEMENT': // 5.5 in x 8.5 in |
|
385 | - $sizes = array(396.00, 612.00); |
|
386 | - break; |
|
387 | - case 'USGOVT': // 8 in x 11 in |
|
388 | - $sizes = array(576.00, 792.00); |
|
389 | - break; |
|
390 | - default: |
|
391 | - $this->pageFormat = 'A4'; |
|
392 | - $sizes = array(595.28, 841.89); |
|
393 | - break; |
|
142 | + case '4A0': // ISO 216, 1682 mm x 2378 mm |
|
143 | + $sizes = array(4767.86, 6740.79); |
|
144 | + break; |
|
145 | + case '2A0': // ISO 216, 1189 mm x 1682 mm |
|
146 | + $sizes = array(3370.39, 4767.86); |
|
147 | + break; |
|
148 | + case 'A0': // ISO 216, 841 mm x 1189mm |
|
149 | + $sizes = array(2383.94, 3370.39); |
|
150 | + break; |
|
151 | + case 'A1': // ISO 216, 594 mm x 841 mm |
|
152 | + $sizes = array(1683.78, 2383.94); |
|
153 | + break; |
|
154 | + case 'A2': // ISO 216, 420 mm x 594 mm |
|
155 | + $sizes = array(1190.55, 1683.78); |
|
156 | + break; |
|
157 | + case 'A3': // ISO 216, 297 mm x 420 mm |
|
158 | + $sizes = array(841.89, 1190.55); |
|
159 | + break; |
|
160 | + case 'A4': // ISO 216, 210 mm 297 mm |
|
161 | + $sizes = array(595.28, 841.89); |
|
162 | + break; |
|
163 | + case 'A5': // ISO 216, 148 mm x 210 mm |
|
164 | + $sizes = array(419.53, 595.28); |
|
165 | + break; |
|
166 | + case 'A6': // ISO 216, 105 mm x 148 mm |
|
167 | + $sizes = array(297.64, 419.53); |
|
168 | + break; |
|
169 | + case 'A7': // ISO 216, 74 mm x 105 mm |
|
170 | + $sizes = array(209.76, 297.64); |
|
171 | + break; |
|
172 | + case 'A8': // ISO 216, 52 mm x 74 mm |
|
173 | + $sizes = array(147.40, 209.76); |
|
174 | + break; |
|
175 | + case 'A9': // ISO 216, 37 mm x 52 mm |
|
176 | + $sizes = array(104.88, 147.40); |
|
177 | + break; |
|
178 | + case 'A10': // ISO 216, 26 mm x 37 mm |
|
179 | + $sizes = array(73.70, 104.88); |
|
180 | + break; |
|
181 | + |
|
182 | + // ISO B series |
|
183 | + case 'B0': // ISO 216, 1000 mm x 1414 mm |
|
184 | + $sizes = array(2834.65, 4008.19); |
|
185 | + break; |
|
186 | + case 'B1': // ISO 216, 707 mm x 1000 mm |
|
187 | + $sizes = array(2004.09, 2834.65); |
|
188 | + break; |
|
189 | + case 'B2': // ISO 216, 500 mm x 707 mm |
|
190 | + $sizes = array(1417.32, 2004.09); |
|
191 | + break; |
|
192 | + case 'B3': // ISO 216, 353 mm x 500 mm |
|
193 | + $sizes = array(1000.63, 1417.32); |
|
194 | + break; |
|
195 | + case 'B4': // ISO 216, 250 mm x 353 mm |
|
196 | + $sizes = array(708.66, 1000.63); |
|
197 | + break; |
|
198 | + case 'B5': // ISO 216, 176 mm x 250 mm |
|
199 | + $sizes = array(498.90, 708.66); |
|
200 | + break; |
|
201 | + case 'B6': // ISO 216, 125 mm x 176 mm |
|
202 | + $sizes = array(354.33, 498.90); |
|
203 | + break; |
|
204 | + case 'B7': // ISO 216, 88 mm x 125 mm |
|
205 | + $sizes = array(249.45, 354.33); |
|
206 | + break; |
|
207 | + case 'B8': // ISO 216, 62 mm x 88 mm |
|
208 | + $sizes = array(175.75, 249.45); |
|
209 | + break; |
|
210 | + case 'B9': // ISO 216, 44 mm x 62 mm |
|
211 | + $sizes = array(124.72, 175.75); |
|
212 | + break; |
|
213 | + case 'B10': // ISO 216, 31 mm x 44 mm |
|
214 | + $sizes = array(87.87, 124.72); |
|
215 | + break; |
|
216 | + |
|
217 | + // ISO C series, Envelope |
|
218 | + case 'C0': // ISO 269, 917 mm x 1297 mm, For flat A0 sheet |
|
219 | + $sizes = array(2599.37, 3676.54); |
|
220 | + break; |
|
221 | + case 'C1': // ISO 269, 648 mm x 917 mm, For flat A1 sheet |
|
222 | + $sizes = array(1836.85, 2599.37); |
|
223 | + break; |
|
224 | + case 'C2': // ISO 269, 458 mm x 648 mm, For flat A2 sheet, A1 folded in half |
|
225 | + $sizes = array(1298.27, 1836.85); |
|
226 | + break; |
|
227 | + case 'C3': // ISO 269, 324 mm x 458 mm, For flat A3 sheet, A2 folded in half |
|
228 | + $sizes = array(918.43, 1298.27); |
|
229 | + break; |
|
230 | + case 'C4': // ISO 269, 229 mm x 324 mm, For flat A4 sheet, A3 folded in half |
|
231 | + $sizes = array(649.13, 918.43); |
|
232 | + break; |
|
233 | + case 'C5': // ISO 269, 162 mm x 229 mm, For flat A5 sheet, A4 folded in half |
|
234 | + $sizes = array(459.21, 649.13); |
|
235 | + break; |
|
236 | + case 'C6/5': // ISO 269, 114 mm x 229 mm. A5 folded twice = 1/3 A4. Alternative for the DL envelope |
|
237 | + $sizes = array(323.15, 649.13); |
|
238 | + break; |
|
239 | + case 'C6': // ISO 269, 114 mm x 162 mm, For A5 folded in half |
|
240 | + $sizes = array(323.15, 459.21); |
|
241 | + break; |
|
242 | + case 'C7/6': // ISO 269, 81 mm x 162 mm, For A5 sheet folded in thirds |
|
243 | + $sizes = array(229.61, 459.21); |
|
244 | + break; |
|
245 | + case 'C7': // ISO 269, 81 mm x 114 mm, For A5 folded in quarters |
|
246 | + $sizes = array(229.61, 323.15); |
|
247 | + break; |
|
248 | + case 'C8': // ISO 269, 57 mm x 81 mm |
|
249 | + $sizes = array(161.57, 229.61); |
|
250 | + break; |
|
251 | + case 'C9': // ISO 269, 40 mm x 57 mm |
|
252 | + $sizes = array(113.39, 161.57); |
|
253 | + break; |
|
254 | + case 'C10': // ISO 269, 28 mm x 40 mm |
|
255 | + $sizes = array(79.37, 113.39); |
|
256 | + break; |
|
257 | + case 'DL': // Original DIN 678 but ISO 269 now has this C6/5 , 110 mm x 220 mm, For A4 sheet folded in thirds, A5 in half |
|
258 | + $sizes = array(311.81, 623.62); |
|
259 | + break; |
|
260 | + |
|
261 | + // Untrimmed stock sizes for the ISO-A Series - ISO primary range |
|
262 | + case 'RA0': // ISO 478, 860 mm x 1220 mm |
|
263 | + $sizes = array(2437.80, 3458.27); |
|
264 | + break; |
|
265 | + case 'RA1': // ISO 478, 610 mm x 860 mm |
|
266 | + $sizes = array(1729.13, 2437.80); |
|
267 | + break; |
|
268 | + case 'RA2': // ISO 478, 430 mm x 610 mm |
|
269 | + $sizes = array(1218.90, 1729.13); |
|
270 | + break; |
|
271 | + case 'RA3': // ISO 478, 305 mm x 430 mm |
|
272 | + $sizes = array(864.57, 1218.90); |
|
273 | + break; |
|
274 | + case 'RA4': // ISO 478, 215 mm x 305 mm |
|
275 | + $sizes = array(609.45, 864.57); |
|
276 | + break; |
|
277 | + |
|
278 | + // Untrimmed stock sizes for the ISO-A Series - ISO supplementary range |
|
279 | + case 'SRA0': // ISO 593, 900 mm x 1280 mm |
|
280 | + $sizes = array(2551.18, 3628.35); |
|
281 | + break; |
|
282 | + case 'SRA1': // ISO 593, 640 mm x 900 mm |
|
283 | + $sizes = array(1814.17, 2551.18); |
|
284 | + break; |
|
285 | + case 'SRA2': // ISO 593, 450 mm x 640 mm |
|
286 | + $sizes = array(1275.59, 1814.17); |
|
287 | + break; |
|
288 | + case 'SRA3': // ISO 593, 320 mm x 450 mm |
|
289 | + $sizes = array(907.09, 1275.59); |
|
290 | + break; |
|
291 | + case 'SRA4': // ISO 593, 225 mm x 320 mm |
|
292 | + $sizes = array(637.80, 907.09); |
|
293 | + break; |
|
294 | + |
|
295 | + // ISO size variations |
|
296 | + case 'A2EXTRA': // ISO 216, 445 mm x 619 mm |
|
297 | + $sizes = array(1261.42, 1754.65); |
|
298 | + break; |
|
299 | + case 'A2SUPER': // ISO 216, 305 mm x 508 mm |
|
300 | + $sizes = array(864.57, 1440.00); |
|
301 | + break; |
|
302 | + case 'A3EXTRA': // ISO 216, 322 mm x 445 mm |
|
303 | + $sizes = array(912.76, 1261.42); |
|
304 | + break; |
|
305 | + case 'SUPERA3': // ISO 216, 305 mm x 487 mm |
|
306 | + $sizes = array(864.57, 1380.47); |
|
307 | + break; |
|
308 | + case 'A4EXTRA': // ISO 216, 235 mm x 322 mm |
|
309 | + $sizes = array(666.14, 912.76); |
|
310 | + break; |
|
311 | + case 'A4LONG': // ISO 216, 210 mm x 348 mm |
|
312 | + $sizes = array(595.28, 986.46); |
|
313 | + break; |
|
314 | + case 'A4SUPER': // ISO 216, 229 mm x 322 mm |
|
315 | + $sizes = array(649.13, 912.76); |
|
316 | + break; |
|
317 | + case 'SUPERA4': // ISO 216, 227 mm x 356 mm |
|
318 | + $sizes = array(643.46, 1009.13); |
|
319 | + break; |
|
320 | + case 'A5EXTRA': // ISO 216, 173 mm x 235 mm |
|
321 | + $sizes = array(490.39, 666.14); |
|
322 | + break; |
|
323 | + case 'SOB5EXTRA': // ISO 216, 202 mm x 276 mm |
|
324 | + $sizes = array(572.60, 782.36); |
|
325 | + break; |
|
326 | + |
|
327 | + // Japanese version of the ISO 216 B series |
|
328 | + case 'JB0': // JIS P 0138-61, 1030 mm x 1456 mm |
|
329 | + $sizes = array(2919.69, 4127.24); |
|
330 | + break; |
|
331 | + case 'JB1': // JIS P 0138-61, 728 mm x 1030 mm |
|
332 | + $sizes = array(2063.62, 2919.69); |
|
333 | + break; |
|
334 | + case 'JB2': // JIS P 0138-61, 515 mm x 728 mm |
|
335 | + $sizes = array(1459.84, 2063.62); |
|
336 | + break; |
|
337 | + case 'JB3': // JIS P 0138-61, 364 mm x 515 mm |
|
338 | + $sizes = array(1031.81, 1459.84); |
|
339 | + break; |
|
340 | + case 'JB4': // JIS P 0138-61, 257 mm x 364 mm |
|
341 | + $sizes = array(728.50, 1031.81); |
|
342 | + break; |
|
343 | + case 'JB5': // JIS P 0138-61, 182 mm x 257 mm |
|
344 | + $sizes = array(515.91, 728.50); |
|
345 | + break; |
|
346 | + case 'JB6': // JIS P 0138-61, 128 mm x 182 mm |
|
347 | + $sizes = array(362.83, 515.91); |
|
348 | + break; |
|
349 | + case 'JB7': // JIS P 0138-61, 91 mm x 128 mm |
|
350 | + $sizes = array(257.95, 362.83); |
|
351 | + break; |
|
352 | + case 'JB8': // JIS P 0138-61, 64 mm x 91 mm |
|
353 | + $sizes = array(181.42, 257.95); |
|
354 | + break; |
|
355 | + case 'JB9': // JIS P 0138-61, 45 mm x 64 mm |
|
356 | + $sizes = array(127.56, 181.42); |
|
357 | + break; |
|
358 | + case 'JB10': // JIS P 0138-61, 32 mm x 45 mm |
|
359 | + $sizes = array(90.71, 127.56); |
|
360 | + break; |
|
361 | + |
|
362 | + // US pages |
|
363 | + case 'EXECUTIVE': // 7.25 in x 10.5 in |
|
364 | + $sizes = array(522.00, 756.00); |
|
365 | + break; |
|
366 | + case 'FOLIO': // 8.5 in x 13 in |
|
367 | + $sizes = array(612.00, 936.00); |
|
368 | + break; |
|
369 | + case 'FOOLSCAP': // 13.5 in x 17 in |
|
370 | + $sizes = array(972.00, 1224.00); |
|
371 | + break; |
|
372 | + case 'LEDGER': // 11 in x 17 in |
|
373 | + $sizes = array(792.00, 1224.00); |
|
374 | + break; |
|
375 | + case 'LEGAL': // 8.5 in x 14 in |
|
376 | + $sizes = array(612.00, 1008.00); |
|
377 | + break; |
|
378 | + case 'LETTER': // 8.5 in x 11 in |
|
379 | + $sizes = array(612.00, 792.00); |
|
380 | + break; |
|
381 | + case 'QUARTO': // 8.46 in x 10.8 in |
|
382 | + $sizes = array(609.12, 777.50); |
|
383 | + break; |
|
384 | + case 'STATEMENT': // 5.5 in x 8.5 in |
|
385 | + $sizes = array(396.00, 612.00); |
|
386 | + break; |
|
387 | + case 'USGOVT': // 8 in x 11 in |
|
388 | + $sizes = array(576.00, 792.00); |
|
389 | + break; |
|
390 | + default: |
|
391 | + $this->pageFormat = 'A4'; |
|
392 | + $sizes = array(595.28, 841.89); |
|
393 | + break; |
|
394 | 394 | } |
395 | 395 | $this->pagew = $sizes[0]; |
396 | 396 | $this->pageh = $sizes[1]; |
@@ -1,18 +1,18 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * webtrees: online genealogy |
|
4 | - * Copyright (C) 2016 webtrees development team |
|
5 | - * This program is free software: you can redistribute it and/or modify |
|
6 | - * it under the terms of the GNU General Public License as published by |
|
7 | - * the Free Software Foundation, either version 3 of the License, or |
|
8 | - * (at your option) any later version. |
|
9 | - * This program is distributed in the hope that it will be useful, |
|
10 | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
11 | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
12 | - * GNU General Public License for more details. |
|
13 | - * You should have received a copy of the GNU General Public License |
|
14 | - * along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
15 | - */ |
|
3 | + * webtrees: online genealogy |
|
4 | + * Copyright (C) 2016 webtrees development team |
|
5 | + * This program is free software: you can redistribute it and/or modify |
|
6 | + * it under the terms of the GNU General Public License as published by |
|
7 | + * the Free Software Foundation, either version 3 of the License, or |
|
8 | + * (at your option) any later version. |
|
9 | + * This program is distributed in the hope that it will be useful, |
|
10 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
11 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
12 | + * GNU General Public License for more details. |
|
13 | + * You should have received a copy of the GNU General Public License |
|
14 | + * along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
15 | + */ |
|
16 | 16 | namespace Fisharebest\Webtrees; |
17 | 17 | |
18 | 18 | use Fisharebest\Webtrees\Theme\AdministrationTheme; |
@@ -127,7 +127,7 @@ discard block |
||
127 | 127 | * @param int $stretch Stretch carachter mode |
128 | 128 | * @param string $bocolor Border color |
129 | 129 | * @param string $tcolor Text color |
130 | - * @param $reseth |
|
130 | + * @param boolean $reseth |
|
131 | 131 | */ |
132 | 132 | public function __construct( |
133 | 133 | $width, $height, $border, $align, $bgcolor, $style, $ln, $top, $left, $fill, $stretch, $bocolor, $tcolor, $reseth |
@@ -157,7 +157,7 @@ discard block |
||
157 | 157 | * |
158 | 158 | * @param $renderer |
159 | 159 | * |
160 | - * @return float |
|
160 | + * @return integer |
|
161 | 161 | */ |
162 | 162 | public function getHeight($renderer) { |
163 | 163 | return $this->height; |
@@ -181,7 +181,7 @@ discard block |
||
181 | 181 | * |
182 | 182 | * @param $renderer |
183 | 183 | * |
184 | - * @return float |
|
184 | + * @return integer |
|
185 | 185 | */ |
186 | 186 | public function getWidth($renderer) { |
187 | 187 | return $this->width; |
@@ -1,18 +1,18 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * webtrees: online genealogy |
|
4 | - * Copyright (C) 2016 webtrees development team |
|
5 | - * This program is free software: you can redistribute it and/or modify |
|
6 | - * it under the terms of the GNU General Public License as published by |
|
7 | - * the Free Software Foundation, either version 3 of the License, or |
|
8 | - * (at your option) any later version. |
|
9 | - * This program is distributed in the hope that it will be useful, |
|
10 | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
11 | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
12 | - * GNU General Public License for more details. |
|
13 | - * You should have received a copy of the GNU General Public License |
|
14 | - * along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
15 | - */ |
|
3 | + * webtrees: online genealogy |
|
4 | + * Copyright (C) 2016 webtrees development team |
|
5 | + * This program is free software: you can redistribute it and/or modify |
|
6 | + * it under the terms of the GNU General Public License as published by |
|
7 | + * the Free Software Foundation, either version 3 of the License, or |
|
8 | + * (at your option) any later version. |
|
9 | + * This program is distributed in the hope that it will be useful, |
|
10 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
11 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
12 | + * GNU General Public License for more details. |
|
13 | + * You should have received a copy of the GNU General Public License |
|
14 | + * along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
15 | + */ |
|
16 | 16 | namespace Fisharebest\Webtrees; |
17 | 17 | |
18 | 18 | use Fisharebest\Webtrees\Theme\AdministrationTheme; |
@@ -308,7 +308,7 @@ discard block |
||
308 | 308 | * @param string $tcolor Text color |
309 | 309 | * @param bool $reseth |
310 | 310 | * |
311 | - * @return object ReportHtmlCell |
|
311 | + * @return ReportHtmlCell ReportHtmlCell |
|
312 | 312 | */ |
313 | 313 | public function createCell($width, $height, $border, $align, $bgcolor, $style, $ln, $top, $left, $fill, $stretch, $bocolor, $tcolor, $reseth) { |
314 | 314 | return new ReportHtmlCell($width, $height, $border, $align, $bgcolor, $style, $ln, $top, $left, $fill, $stretch, $bocolor, $tcolor, $reseth); |
@@ -466,7 +466,7 @@ discard block |
||
466 | 466 | /** |
467 | 467 | * Add a page header. |
468 | 468 | * |
469 | - * @param $element |
|
469 | + * @param ReportBaseElement $element |
|
470 | 470 | * |
471 | 471 | * @return int |
472 | 472 | */ |
@@ -479,7 +479,7 @@ discard block |
||
479 | 479 | /** |
480 | 480 | * Checks the Footnote and numbers them - ReportHtml |
481 | 481 | * |
482 | - * @param object $footnote |
|
482 | + * @param ReportBaseFootnote $footnote |
|
483 | 483 | * |
484 | 484 | * @return bool false if not numbered before | object if already numbered |
485 | 485 | */ |
@@ -553,7 +553,7 @@ discard block |
||
553 | 553 | /** |
554 | 554 | * Get the current footnotes height. |
555 | 555 | * |
556 | - * @param $cellWidth |
|
556 | + * @param double $cellWidth |
|
557 | 557 | * |
558 | 558 | * @return int |
559 | 559 | */ |
@@ -600,9 +600,9 @@ discard block |
||
600 | 600 | /** |
601 | 601 | * Get a text height in points - ReportHtml |
602 | 602 | * |
603 | - * @param $str |
|
603 | + * @param string $str |
|
604 | 604 | * |
605 | - * @return int |
|
605 | + * @return double |
|
606 | 606 | */ |
607 | 607 | public function getTextCellHeight($str) { |
608 | 608 | // Count the number of lines to calculate the height |
@@ -641,7 +641,7 @@ discard block |
||
641 | 641 | /** |
642 | 642 | * Set the current style. |
643 | 643 | * |
644 | - * @param $s |
|
644 | + * @param string $s |
|
645 | 645 | */ |
646 | 646 | public function setCurrentStyle($s) { |
647 | 647 | $this->currentStyle = $s; |
@@ -1,18 +1,18 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * webtrees: online genealogy |
|
4 | - * Copyright (C) 2016 webtrees development team |
|
5 | - * This program is free software: you can redistribute it and/or modify |
|
6 | - * it under the terms of the GNU General Public License as published by |
|
7 | - * the Free Software Foundation, either version 3 of the License, or |
|
8 | - * (at your option) any later version. |
|
9 | - * This program is distributed in the hope that it will be useful, |
|
10 | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
11 | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
12 | - * GNU General Public License for more details. |
|
13 | - * You should have received a copy of the GNU General Public License |
|
14 | - * along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
15 | - */ |
|
3 | + * webtrees: online genealogy |
|
4 | + * Copyright (C) 2016 webtrees development team |
|
5 | + * This program is free software: you can redistribute it and/or modify |
|
6 | + * it under the terms of the GNU General Public License as published by |
|
7 | + * the Free Software Foundation, either version 3 of the License, or |
|
8 | + * (at your option) any later version. |
|
9 | + * This program is distributed in the hope that it will be useful, |
|
10 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
11 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
12 | + * GNU General Public License for more details. |
|
13 | + * You should have received a copy of the GNU General Public License |
|
14 | + * along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
15 | + */ |
|
16 | 16 | namespace Fisharebest\Webtrees; |
17 | 17 | |
18 | 18 | use Fisharebest\Webtrees\Theme\AdministrationTheme; |