@@ -309,6 +309,9 @@ discard block |
||
| 309 | 309 | $this->_highlight('code', $text, $language, $filename); |
| 310 | 310 | } |
| 311 | 311 | |
| 312 | + /** |
|
| 313 | + * @param string $type |
|
| 314 | + */ |
|
| 312 | 315 | function _highlight($type, $text, $language = null, $filename = null) { |
| 313 | 316 | if( $this->previous_block ) $this->doc .= "\n"; |
| 314 | 317 | |
@@ -593,6 +596,11 @@ discard block |
||
| 593 | 596 | $this->_cellopen('th', $colspan, $align, $rowspan); |
| 594 | 597 | } |
| 595 | 598 | |
| 599 | + /** |
|
| 600 | + * @param string $tag |
|
| 601 | + * @param integer $colspan |
|
| 602 | + * @param integer $rowspan |
|
| 603 | + */ |
|
| 596 | 604 | function _cellopen($tag, $colspan, $align, $rowspan) { |
| 597 | 605 | $this->block(); |
| 598 | 606 | $this->_table[$this->_row][$this->_key] = compact('tag', 'colspan', 'align', 'rowspan'); |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | /** |
| 33 | 33 | * Returns the whole table data as two dimensional array |
| 34 | 34 | * |
| 35 | - * @return array |
|
| 35 | + * @return string |
|
| 36 | 36 | */ |
| 37 | 37 | public function getDataJSON() { |
| 38 | 38 | $json = new JSON(); |
@@ -42,7 +42,7 @@ discard block |
||
| 42 | 42 | /** |
| 43 | 43 | * Returns meta data for all cells in a two dimensional array of arrays |
| 44 | 44 | * |
| 45 | - * @return array |
|
| 45 | + * @return string |
|
| 46 | 46 | */ |
| 47 | 47 | public function getMetaJSON() { |
| 48 | 48 | $json = new JSON(); |
@@ -89,10 +89,10 @@ discard block |
||
| 89 | 89 | /** |
| 90 | 90 | * Used for a opening THs and TDs |
| 91 | 91 | * |
| 92 | - * @param $tag |
|
| 93 | - * @param $colspan |
|
| 92 | + * @param string $tag |
|
| 93 | + * @param integer $colspan |
|
| 94 | 94 | * @param $align |
| 95 | - * @param $rowspan |
|
| 95 | + * @param integer $rowspan |
|
| 96 | 96 | */ |
| 97 | 97 | private function _tablefield_open($tag, $colspan, $align, $rowspan) { |
| 98 | 98 | // skip cells that already exist - those are previous (span) cells! |
@@ -601,6 +601,7 @@ |
||
| 601 | 601 | * |
| 602 | 602 | * Automatically checks if a JPEGMeta object is available or if all data is |
| 603 | 603 | * supplied in array |
| 604 | + * @param string $opt |
|
| 604 | 605 | */ |
| 605 | 606 | function _meta(&$img,$opt){ |
| 606 | 607 | if($img['meta']){ |
@@ -73,6 +73,11 @@ |
||
| 73 | 73 | return false; |
| 74 | 74 | } |
| 75 | 75 | |
| 76 | + /** |
|
| 77 | + * @param string $attributeString |
|
| 78 | + * @param string $attribute |
|
| 79 | + * @param string $default |
|
| 80 | + */ |
|
| 76 | 81 | function _getAttribute($attributeString, $attribute, $default){ |
| 77 | 82 | $retVal = $default; |
| 78 | 83 | $pos = strpos($attributeString, $attribute."="); |
@@ -230,6 +230,10 @@ discard block |
||
| 230 | 230 | } |
| 231 | 231 | } |
| 232 | 232 | |
| 233 | + /** |
|
| 234 | + * @param string $class |
|
| 235 | + * @param string|null $style |
|
| 236 | + */ |
|
| 233 | 237 | function renderODTOpenBox ($renderer, $class, $style) { |
| 234 | 238 | $properties = array (); |
| 235 | 239 | |
@@ -276,6 +280,10 @@ discard block |
||
| 276 | 280 | $renderer->_odtDivCloseAsFrame (); |
| 277 | 281 | } |
| 278 | 282 | |
| 283 | + /** |
|
| 284 | + * @param string $class |
|
| 285 | + * @param string|null $style |
|
| 286 | + */ |
|
| 279 | 287 | function renderODTOpenColumns ($renderer, $class, $style) { |
| 280 | 288 | $properties = array (); |
| 281 | 289 | |
@@ -298,6 +306,13 @@ discard block |
||
| 298 | 306 | $renderer->_odtCloseMultiColumnFrame(); |
| 299 | 307 | } |
| 300 | 308 | |
| 309 | + /** |
|
| 310 | + * @param string $class |
|
| 311 | + * @param string|null $style |
|
| 312 | + * @param boolean $is_indent |
|
| 313 | + * @param boolean $is_outdent |
|
| 314 | + * @param boolean $indent_first |
|
| 315 | + */ |
|
| 301 | 316 | function renderODTOpenParagraph ($renderer, $class, $style, $language, $is_indent, $is_outdent, $indent_first) { |
| 302 | 317 | $properties = array (); |
| 303 | 318 | |
@@ -359,6 +374,10 @@ discard block |
||
| 359 | 374 | $renderer->p_close(); |
| 360 | 375 | } |
| 361 | 376 | |
| 377 | + /** |
|
| 378 | + * @param string $class |
|
| 379 | + * @param string|null $style |
|
| 380 | + */ |
|
| 362 | 381 | function renderODTOpenColumn ($renderer, $class, $style) { |
| 363 | 382 | $properties = array (); |
| 364 | 383 | |
@@ -441,6 +460,10 @@ discard block |
||
| 441 | 460 | $renderer->tablecell_close(); |
| 442 | 461 | } |
| 443 | 462 | |
| 463 | + /** |
|
| 464 | + * @param string $class |
|
| 465 | + * @param string|null $style |
|
| 466 | + */ |
|
| 444 | 467 | function renderODTOpenGroup ($renderer, $class, $style) { |
| 445 | 468 | // Nothing to do for now. |
| 446 | 469 | } |
@@ -456,6 +479,10 @@ discard block |
||
| 456 | 479 | $this->column_count = 0; |
| 457 | 480 | } |
| 458 | 481 | |
| 482 | + /** |
|
| 483 | + * @param string $class |
|
| 484 | + * @param string|null $style |
|
| 485 | + */ |
|
| 459 | 486 | function renderODTOpenSpan ($renderer, $class, $style, $language) { |
| 460 | 487 | $properties = array (); |
| 461 | 488 | |
@@ -104,6 +104,9 @@ |
||
| 104 | 104 | return false; |
| 105 | 105 | } |
| 106 | 106 | |
| 107 | + /** |
|
| 108 | + * @param string $tag |
|
| 109 | + */ |
|
| 107 | 110 | function _xhtml_link_with_approval($r, $id, $tag){ |
| 108 | 111 | global $ID; |
| 109 | 112 | |
@@ -92,7 +92,7 @@ |
||
| 92 | 92 | /** |
| 93 | 93 | * Scale (darken/lighten) a given image |
| 94 | 94 | * |
| 95 | - * @param ressource $img The truetype GD image to work on |
|
| 95 | + * @param resource $img The truetype GD image to work on |
|
| 96 | 96 | * @param float $scale Scale the colors by this value ( <1 darkens, >1 lightens) |
| 97 | 97 | */ |
| 98 | 98 | function imagecolorscale(&$img, $scale){ |