@@ -332,6 +332,10 @@ discard block |
||
| 332 | 332 | } |
| 333 | 333 | |
| 334 | 334 | // smart append - field and namespace aware |
| 335 | + |
|
| 336 | + /** |
|
| 337 | + * @param string $el |
|
| 338 | + */ |
|
| 335 | 339 | function append($el, $text) { |
| 336 | 340 | if (!$el) { |
| 337 | 341 | return; |
@@ -447,6 +451,10 @@ discard block |
||
| 447 | 451 | /** |
| 448 | 452 | * return XML parser, and possibly re-encoded source |
| 449 | 453 | * |
| 454 | + * @param string $source |
|
| 455 | + * @param string $out_enc |
|
| 456 | + * @param string|null $in_enc |
|
| 457 | + * @param boolean $detect |
|
| 450 | 458 | */ |
| 451 | 459 | function create_parser($source, $out_enc, $in_enc, $detect) { |
| 452 | 460 | if ( substr(phpversion(),0,1) == 5) { |
@@ -556,6 +564,9 @@ discard block |
||
| 556 | 564 | } |
| 557 | 565 | } |
| 558 | 566 | |
| 567 | + /** |
|
| 568 | + * @param integer $lvl |
|
| 569 | + */ |
|
| 559 | 570 | function error ($errormsg, $lvl=E_USER_WARNING) { |
| 560 | 571 | // append PHP's error message if track_errors enabled |
| 561 | 572 | if ( isset($php_errormsg) ) { |
@@ -591,6 +602,9 @@ discard block |
||
| 591 | 602 | define('CASE_LOWER', 0); |
| 592 | 603 | |
| 593 | 604 | |
| 605 | + /** |
|
| 606 | + * @param integer $case |
|
| 607 | + */ |
|
| 594 | 608 | function array_change_key_case($array, $case=CASE_LOWER) { |
| 595 | 609 | $output = array(); |
| 596 | 610 | switch($case){ |