@@ -13,6 +13,7 @@ |
||
| 13 | 13 | * |
| 14 | 14 | * @param int $items number of feeditems to parse from feed |
| 15 | 15 | * @param string $url url of the feed to parse |
| 16 | + * @param boolean $includetext |
|
| 16 | 17 | * |
| 17 | 18 | * @return string $item feeditems as HTML-string |
| 18 | 19 | */ |
@@ -159,6 +159,9 @@ discard block |
||
| 159 | 159 | } |
| 160 | 160 | |
| 161 | 161 | // str = long text |
| 162 | +/** |
|
| 163 | + * @param boolean $simple |
|
| 164 | + */ |
|
| 162 | 165 | function ftsearch_split(&$str, $simple) |
| 163 | 166 | { |
| 164 | 167 | global $ftsearch_ignores; |
@@ -488,6 +491,9 @@ discard block |
||
| 488 | 491 | sql("DELETE FROM `search_index_times` WHERE `object_type`='&1' AND `object_id`='&2'", $object_type, $object_id); |
| 489 | 492 | } |
| 490 | 493 | |
| 494 | +/** |
|
| 495 | + * @param integer $object_type |
|
| 496 | + */ |
|
| 491 | 497 | function ftsearch_set_entries($object_type, $object_id, $cache_id, &$text, $last_modified) |
| 492 | 498 | { |
| 493 | 499 | ftsearch_delete_entries($object_type, $object_id, $cache_id); |
@@ -569,6 +569,9 @@ |
||
| 569 | 569 | return $str; |
| 570 | 570 | } |
| 571 | 571 | |
| 572 | +/** |
|
| 573 | + * @return string |
|
| 574 | + */ |
|
| 572 | 575 | function changePlaceholder($str, $inverse = false) |
| 573 | 576 | { |
| 574 | 577 | static $translate = array( |
@@ -202,6 +202,10 @@ |
||
| 202 | 202 | } |
| 203 | 203 | |
| 204 | 204 | |
| 205 | +/** |
|
| 206 | + * @param string $interval |
|
| 207 | + * @param string $dateTimeEnd |
|
| 208 | + */ |
|
| 205 | 209 | function dateDiff($interval, $dateTimeBegin, $dateTimeEnd) |
| 206 | 210 | { |
| 207 | 211 | //Parse about any English textual datetime |
@@ -203,6 +203,9 @@ |
||
| 203 | 203 | return $str; |
| 204 | 204 | } |
| 205 | 205 | |
| 206 | +/** |
|
| 207 | + * @param string $str |
|
| 208 | + */ |
|
| 206 | 209 | function lf2crlf($str) |
| 207 | 210 | { |
| 208 | 211 | return str_replace("\r\r\n", "\r\n", str_replace("\n", "\r\n", $str)); |
@@ -107,6 +107,9 @@ discard block |
||
| 107 | 107 | return $rsResult; |
| 108 | 108 | } |
| 109 | 109 | |
| 110 | + /** |
|
| 111 | + * @param string $sql |
|
| 112 | + */ |
|
| 110 | 113 | public function strip_temptable($sql) |
| 111 | 114 | { |
| 112 | 115 | $start = stripos($sql, 'SELECT '); |
@@ -118,6 +121,9 @@ discard block |
||
| 118 | 121 | return substr($sql, $start); |
| 119 | 122 | } |
| 120 | 123 | |
| 124 | + /** |
|
| 125 | + * @param string $sql |
|
| 126 | + */ |
|
| 121 | 127 | public function strip_from($sql) |
| 122 | 128 | { |
| 123 | 129 | $start = stripos($sql, 'FROM '); |
@@ -129,6 +135,9 @@ discard block |
||
| 129 | 135 | return 'SELECT * ' . substr($sql, $start); |
| 130 | 136 | } |
| 131 | 137 | |
| 138 | + /** |
|
| 139 | + * @param string $sql |
|
| 140 | + */ |
|
| 132 | 141 | public function insert_nocache($sql) |
| 133 | 142 | { |
| 134 | 143 | if (strtoupper(substr($sql, 0, 7)) == 'SELECT ') { |
@@ -283,7 +283,7 @@ discard block |
||
| 283 | 283 | /** Removes entry from the archive. |
| 284 | 284 | * please be very carefull with this function, there is no undo after you save the archive |
| 285 | 285 | * |
| 286 | - * @return bool true on success or false on failure |
|
| 286 | + * @return boolean|null true on success or false on failure |
|
| 287 | 287 | * |
| 288 | 288 | * @param int $idx |
| 289 | 289 | */ |
@@ -334,6 +334,10 @@ discard block |
||
| 334 | 334 | return $idx >= 0 and $idx < $this->cnt; |
| 335 | 335 | } |
| 336 | 336 | |
| 337 | + /** |
|
| 338 | + * @param string $name |
|
| 339 | + * @param string $data |
|
| 340 | + */ |
|
| 337 | 341 | public function _write($name, $data) |
| 338 | 342 | { |
| 339 | 343 | $fp = fopen($name, "w"); |
@@ -84,6 +84,9 @@ |
||
| 84 | 84 | return $text; |
| 85 | 85 | } |
| 86 | 86 | |
| 87 | + /** |
|
| 88 | + * @return string |
|
| 89 | + */ |
|
| 87 | 90 | public function v($message) |
| 88 | 91 | { |
| 89 | 92 | if ($message) { |
@@ -76,6 +76,10 @@ discard block |
||
| 76 | 76 | } |
| 77 | 77 | } |
| 78 | 78 | |
| 79 | + /** |
|
| 80 | + * @param string $sCode |
|
| 81 | + * @param integer $nStartSearch |
|
| 82 | + */ |
|
| 79 | 83 | public function findEndOfPHPString($sCode, $nStartSearch) |
| 80 | 84 | { |
| 81 | 85 | $nEnd = 0; |
@@ -116,6 +120,10 @@ discard block |
||
| 116 | 120 | } |
| 117 | 121 | |
| 118 | 122 | // TODO: performance ... scan once at __construct and store line positions |
| 123 | + |
|
| 124 | + /** |
|
| 125 | + * @param integer $nPos |
|
| 126 | + */ |
|
| 119 | 127 | public function findLineOfPos($nPos) |
| 120 | 128 | { |
| 121 | 129 | $nLine = 1; |