@@ -31,6 +31,9 @@ |
||
| 31 | 31 | return $this->userName; |
| 32 | 32 | } |
| 33 | 33 | |
| 34 | + /** |
|
| 35 | + * @param string $targets |
|
| 36 | + */ |
|
| 34 | 37 | public function prepare($targets) |
| 35 | 38 | { |
| 36 | 39 | if (is_string($targets)) { |
@@ -20,6 +20,9 @@ discard block |
||
| 20 | 20 | private $_lastitem = null; |
| 21 | 21 | private $_ignored = false; |
| 22 | 22 | |
| 23 | + /** |
|
| 24 | + * @param string $data |
|
| 25 | + */ |
|
| 23 | 26 | public function &load($data) |
| 24 | 27 | { |
| 25 | 28 | $this->ical = false; |
@@ -145,6 +148,10 @@ discard block |
||
| 145 | 148 | return $value; |
| 146 | 149 | } |
| 147 | 150 | |
| 151 | + /** |
|
| 152 | + * @param string|null $group |
|
| 153 | + * @param null|string $parentgroup |
|
| 154 | + */ |
|
| 148 | 155 | public function addItem($line, $group, $parentgroup) |
| 149 | 156 | { |
| 150 | 157 | $line = $this->transformLine($line); |
@@ -215,6 +222,9 @@ discard block |
||
| 215 | 222 | } |
| 216 | 223 | } |
| 217 | 224 | |
| 225 | + /** |
|
| 226 | + * @return string |
|
| 227 | + */ |
|
| 218 | 228 | public function transformLine($line) |
| 219 | 229 | { |
| 220 | 230 | $patterns = ['\\\\[n]', '\\\\[t]', '\\\\,', '\\\\;']; |
@@ -223,6 +233,10 @@ discard block |
||
| 223 | 233 | return $this->mb_eregi_replace_all($patterns, $replacements, $line); |
| 224 | 234 | } |
| 225 | 235 | |
| 236 | + /** |
|
| 237 | + * @param string[] $pattern |
|
| 238 | + * @param string[] $replacement |
|
| 239 | + */ |
|
| 226 | 240 | public function mb_eregi_replace_all($pattern, $replacement, $string) |
| 227 | 241 | { |
| 228 | 242 | if (is_array($pattern) and is_array($replacement)) { |