@@ -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(), '@'); |
@@ -92,23 +92,23 @@ discard block |
||
92 | 92 | public function getTarget() { |
93 | 93 | $xref = trim($this->getValue(), '@'); |
94 | 94 | switch ($this->tag) { |
95 | - case 'FAMC': |
|
96 | - case 'FAMS': |
|
97 | - return Family::getInstance($xref, $this->getParent()->getTree()); |
|
98 | - case 'HUSB': |
|
99 | - case 'WIFE': |
|
100 | - case 'CHIL': |
|
101 | - return Individual::getInstance($xref, $this->getParent()->getTree()); |
|
102 | - case 'SOUR': |
|
103 | - return Source::getInstance($xref, $this->getParent()->getTree()); |
|
104 | - case 'OBJE': |
|
105 | - return Media::getInstance($xref, $this->getParent()->getTree()); |
|
106 | - case 'REPO': |
|
107 | - return Repository::getInstance($xref, $this->getParent()->getTree()); |
|
108 | - case 'NOTE': |
|
109 | - return Note::getInstance($xref, $this->getParent()->getTree()); |
|
110 | - default: |
|
111 | - return GedcomRecord::getInstance($xref, $this->getParent()->getTree()); |
|
95 | + case 'FAMC': |
|
96 | + case 'FAMS': |
|
97 | + return Family::getInstance($xref, $this->getParent()->getTree()); |
|
98 | + case 'HUSB': |
|
99 | + case 'WIFE': |
|
100 | + case 'CHIL': |
|
101 | + return Individual::getInstance($xref, $this->getParent()->getTree()); |
|
102 | + case 'SOUR': |
|
103 | + return Source::getInstance($xref, $this->getParent()->getTree()); |
|
104 | + case 'OBJE': |
|
105 | + return Media::getInstance($xref, $this->getParent()->getTree()); |
|
106 | + case 'REPO': |
|
107 | + return Repository::getInstance($xref, $this->getParent()->getTree()); |
|
108 | + case 'NOTE': |
|
109 | + return Note::getInstance($xref, $this->getParent()->getTree()); |
|
110 | + default: |
|
111 | + return GedcomRecord::getInstance($xref, $this->getParent()->getTree()); |
|
112 | 112 | } |
113 | 113 | } |
114 | 114 | |
@@ -262,15 +262,15 @@ discard block |
||
262 | 262 | */ |
263 | 263 | public function getLabel() { |
264 | 264 | switch ($this->tag) { |
265 | - case 'EVEN': |
|
266 | - case 'FACT': |
|
267 | - if ($this->getAttribute('TYPE')) { |
|
268 | - // Custom FACT/EVEN - with a TYPE |
|
269 | - return I18N::translate(Filter::escapeHtml($this->getAttribute('TYPE'))); |
|
270 | - } |
|
271 | - // no break - drop into next case |
|
272 | - default: |
|
273 | - return GedcomTag::getLabel($this->tag, $this->parent); |
|
265 | + case 'EVEN': |
|
266 | + case 'FACT': |
|
267 | + if ($this->getAttribute('TYPE')) { |
|
268 | + // Custom FACT/EVEN - with a TYPE |
|
269 | + return I18N::translate(Filter::escapeHtml($this->getAttribute('TYPE'))); |
|
270 | + } |
|
271 | + // no break - drop into next case |
|
272 | + default: |
|
273 | + return GedcomTag::getLabel($this->tag, $this->parent); |
|
274 | 274 | } |
275 | 275 | } |
276 | 276 |
@@ -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'); |
@@ -135,7 +135,7 @@ |
||
135 | 135 | } |
136 | 136 | } catch (\Exception $ex) { |
137 | 137 | // The module has been deleted or is broken? Disable it. |
138 | - Log::addConfigurationLog("Module {$module_name} is missing or broken - disabling it"); |
|
138 | + Log::addConfigurationLog("module {$module_name} is missing or broken - disabling it"); |
|
139 | 139 | Database::prepare( |
140 | 140 | "UPDATE `##module` SET status = 'disabled' WHERE module_name = :module_name" |
141 | 141 | )->execute(array( |
@@ -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; ?> |
@@ -94,13 +94,13 @@ discard block |
||
94 | 94 | */ |
95 | 95 | public function modAction($mod_action) { |
96 | 96 | switch ($mod_action) { |
97 | - case 'admin_batch_update': |
|
98 | - echo $this->main(); |
|
99 | - break; |
|
97 | + case 'admin_batch_update': |
|
98 | + echo $this->main(); |
|
99 | + break; |
|
100 | 100 | |
101 | - default: |
|
102 | - http_response_code(404); |
|
103 | - break; |
|
101 | + default: |
|
102 | + http_response_code(404); |
|
103 | + break; |
|
104 | 104 | } |
105 | 105 | } |
106 | 106 | |
@@ -125,36 +125,36 @@ discard block |
||
125 | 125 | $this->getAllXrefs(); |
126 | 126 | |
127 | 127 | switch ($this->action) { |
128 | - case 'update': |
|
129 | - $record = self::getLatestRecord($this->xref, $this->all_xrefs[$this->xref]); |
|
130 | - if ($this->PLUGIN->doesRecordNeedUpdate($this->xref, $record)) { |
|
131 | - $newrecord = $this->PLUGIN->updateRecord($this->xref, $record); |
|
132 | - if ($newrecord != $record) { |
|
133 | - if ($newrecord) { |
|
134 | - GedcomRecord::getInstance($this->xref, $WT_TREE)->updateRecord($newrecord, !$this->PLUGIN->chan); |
|
135 | - } else { |
|
136 | - GedcomRecord::getInstance($this->xref, $WT_TREE)->deleteRecord(); |
|
137 | - } |
|
138 | - } |
|
139 | - } |
|
140 | - $this->xref = $this->findNextXref($this->xref); |
|
141 | - break; |
|
142 | - case 'update_all': |
|
143 | - foreach ($this->all_xrefs as $xref => $type) { |
|
144 | - $record = self::getLatestRecord($xref, $type); |
|
145 | - if ($this->PLUGIN->doesRecordNeedUpdate($xref, $record)) { |
|
146 | - $newrecord = $this->PLUGIN->updateRecord($xref, $record); |
|
128 | + case 'update': |
|
129 | + $record = self::getLatestRecord($this->xref, $this->all_xrefs[$this->xref]); |
|
130 | + if ($this->PLUGIN->doesRecordNeedUpdate($this->xref, $record)) { |
|
131 | + $newrecord = $this->PLUGIN->updateRecord($this->xref, $record); |
|
147 | 132 | if ($newrecord != $record) { |
148 | 133 | if ($newrecord) { |
149 | - GedcomRecord::getInstance($xref, $WT_TREE)->updateRecord($newrecord, !$this->PLUGIN->chan); |
|
134 | + GedcomRecord::getInstance($this->xref, $WT_TREE)->updateRecord($newrecord, !$this->PLUGIN->chan); |
|
150 | 135 | } else { |
151 | - GedcomRecord::getInstance($xref, $WT_TREE)->deleteRecord(); |
|
136 | + GedcomRecord::getInstance($this->xref, $WT_TREE)->deleteRecord(); |
|
152 | 137 | } |
153 | 138 | } |
154 | 139 | } |
155 | - } |
|
156 | - $this->xref = ''; |
|
157 | - break; |
|
140 | + $this->xref = $this->findNextXref($this->xref); |
|
141 | + break; |
|
142 | + case 'update_all': |
|
143 | + foreach ($this->all_xrefs as $xref => $type) { |
|
144 | + $record = self::getLatestRecord($xref, $type); |
|
145 | + if ($this->PLUGIN->doesRecordNeedUpdate($xref, $record)) { |
|
146 | + $newrecord = $this->PLUGIN->updateRecord($xref, $record); |
|
147 | + if ($newrecord != $record) { |
|
148 | + if ($newrecord) { |
|
149 | + GedcomRecord::getInstance($xref, $WT_TREE)->updateRecord($newrecord, !$this->PLUGIN->chan); |
|
150 | + } else { |
|
151 | + GedcomRecord::getInstance($xref, $WT_TREE)->deleteRecord(); |
|
152 | + } |
|
153 | + } |
|
154 | + } |
|
155 | + } |
|
156 | + $this->xref = ''; |
|
157 | + break; |
|
158 | 158 | } |
159 | 159 | |
160 | 160 | // Make sure that our requested record really does need updating. |
@@ -313,28 +313,28 @@ discard block |
||
313 | 313 | $vars = array(); |
314 | 314 | foreach ($this->PLUGIN->getRecordTypesToUpdate() as $type) { |
315 | 315 | switch ($type) { |
316 | - case 'INDI': |
|
317 | - $sql[] = "SELECT i_id, 'INDI' FROM `##individuals` WHERE i_file=?"; |
|
318 | - $vars[] = $WT_TREE->getTreeId(); |
|
319 | - break; |
|
320 | - case 'FAM': |
|
321 | - $sql[] = "SELECT f_id, 'FAM' FROM `##families` WHERE f_file=?"; |
|
322 | - $vars[] = $WT_TREE->getTreeId(); |
|
323 | - break; |
|
324 | - case 'SOUR': |
|
325 | - $sql[] = "SELECT s_id, 'SOUR' FROM `##sources` WHERE s_file=?"; |
|
326 | - $vars[] = $WT_TREE->getTreeId(); |
|
327 | - break; |
|
328 | - case 'OBJE': |
|
329 | - $sql[] = "SELECT m_id, 'OBJE' FROM `##media` WHERE m_file=?"; |
|
330 | - $vars[] = $WT_TREE->getTreeId(); |
|
331 | - break; |
|
332 | - default: |
|
333 | - $sql[] = "SELECT o_id, ? FROM `##other` WHERE o_type=? AND o_file=?"; |
|
334 | - $vars[] = $type; |
|
335 | - $vars[] = $type; |
|
336 | - $vars[] = $WT_TREE->getTreeId(); |
|
337 | - break; |
|
316 | + case 'INDI': |
|
317 | + $sql[] = "SELECT i_id, 'INDI' FROM `##individuals` WHERE i_file=?"; |
|
318 | + $vars[] = $WT_TREE->getTreeId(); |
|
319 | + break; |
|
320 | + case 'FAM': |
|
321 | + $sql[] = "SELECT f_id, 'FAM' FROM `##families` WHERE f_file=?"; |
|
322 | + $vars[] = $WT_TREE->getTreeId(); |
|
323 | + break; |
|
324 | + case 'SOUR': |
|
325 | + $sql[] = "SELECT s_id, 'SOUR' FROM `##sources` WHERE s_file=?"; |
|
326 | + $vars[] = $WT_TREE->getTreeId(); |
|
327 | + break; |
|
328 | + case 'OBJE': |
|
329 | + $sql[] = "SELECT m_id, 'OBJE' FROM `##media` WHERE m_file=?"; |
|
330 | + $vars[] = $WT_TREE->getTreeId(); |
|
331 | + break; |
|
332 | + default: |
|
333 | + $sql[] = "SELECT o_id, ? FROM `##other` WHERE o_type=? AND o_file=?"; |
|
334 | + $vars[] = $type; |
|
335 | + $vars[] = $type; |
|
336 | + $vars[] = $WT_TREE->getTreeId(); |
|
337 | + break; |
|
338 | 338 | } |
339 | 339 | } |
340 | 340 | $this->all_xrefs = |
@@ -411,20 +411,20 @@ discard block |
||
411 | 411 | global $WT_TREE; |
412 | 412 | |
413 | 413 | switch ($type) { |
414 | - case 'INDI': |
|
415 | - return Individual::getInstance($xref, $WT_TREE)->getGedcom(); |
|
416 | - case 'FAM': |
|
417 | - return Family::getInstance($xref, $WT_TREE)->getGedcom(); |
|
418 | - case 'SOUR': |
|
419 | - return Source::getInstance($xref, $WT_TREE)->getGedcom(); |
|
420 | - case 'REPO': |
|
421 | - return Repository::getInstance($xref, $WT_TREE)->getGedcom(); |
|
422 | - case 'OBJE': |
|
423 | - return Media::getInstance($xref, $WT_TREE)->getGedcom(); |
|
424 | - case 'NOTE': |
|
425 | - return Note::getInstance($xref, $WT_TREE)->getGedcom(); |
|
426 | - default: |
|
427 | - return GedcomRecord::getInstance($xref, $WT_TREE)->getGedcom(); |
|
414 | + case 'INDI': |
|
415 | + return Individual::getInstance($xref, $WT_TREE)->getGedcom(); |
|
416 | + case 'FAM': |
|
417 | + return Family::getInstance($xref, $WT_TREE)->getGedcom(); |
|
418 | + case 'SOUR': |
|
419 | + return Source::getInstance($xref, $WT_TREE)->getGedcom(); |
|
420 | + case 'REPO': |
|
421 | + return Repository::getInstance($xref, $WT_TREE)->getGedcom(); |
|
422 | + case 'OBJE': |
|
423 | + return Media::getInstance($xref, $WT_TREE)->getGedcom(); |
|
424 | + case 'NOTE': |
|
425 | + return Note::getInstance($xref, $WT_TREE)->getGedcom(); |
|
426 | + default: |
|
427 | + return GedcomRecord::getInstance($xref, $WT_TREE)->getGedcom(); |
|
428 | 428 | } |
429 | 429 | } |
430 | 430 |
@@ -58,6 +58,7 @@ |
||
58 | 58 | * An HTML form to edit block settings |
59 | 59 | * |
60 | 60 | * @param int $block_id |
61 | + * @return void |
|
61 | 62 | */ |
62 | 63 | public function configureBlock($block_id); |
63 | 64 | } |
@@ -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]; |
@@ -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; |
@@ -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; |
@@ -59,7 +59,7 @@ |
||
59 | 59 | * @param ReportHtml $html |
60 | 60 | * @param int $cellWidth The width of the cell to use it for text wraping |
61 | 61 | * |
62 | - * @return int Footnote height in points |
|
62 | + * @return double Footnote height in points |
|
63 | 63 | */ |
64 | 64 | public function getFootnoteHeight($html, $cellWidth = 0) { |
65 | 65 | if ($html->getCurrentStyle() != $this->styleName) { |
@@ -59,7 +59,7 @@ |
||
59 | 59 | * |
60 | 60 | * @param ReportTcpdf $renderer |
61 | 61 | * |
62 | - * @return float $h |
|
62 | + * @return integer $h |
|
63 | 63 | */ |
64 | 64 | public function getFootnoteHeight($renderer) { |
65 | 65 | return 0; |