@@ -180,6 +180,9 @@ |
||
| 180 | 180 | return str_replace( [ '\\', ',', ':', ';' ], [ '\\\\', '\,', '\:', '\;' ], $text ); |
| 181 | 181 | } |
| 182 | 182 | |
| 183 | + /** |
|
| 184 | + * @param string $vcard |
|
| 185 | + */ |
|
| 183 | 186 | private function prepareCard( $vcard ) { |
| 184 | 187 | |
| 185 | 188 | $vcard['label'] = ''; |
@@ -2,9 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace SRF\vCard; |
| 4 | 4 | |
| 5 | -use Title; |
|
| 6 | -use Article; |
|
| 7 | - |
|
| 8 | 5 | /** |
| 9 | 6 | * Represents a single entry in an vCard |
| 10 | 7 | * |
@@ -113,6 +113,9 @@ discard block |
||
| 113 | 113 | return $result; |
| 114 | 114 | } |
| 115 | 115 | |
| 116 | + /** |
|
| 117 | + * @param QueryResult $res |
|
| 118 | + */ |
|
| 116 | 119 | private function getVCardContent( $res ) { |
| 117 | 120 | |
| 118 | 121 | $result = ''; |
@@ -402,6 +405,9 @@ discard block |
||
| 402 | 405 | return $list; |
| 403 | 406 | } |
| 404 | 407 | |
| 408 | + /** |
|
| 409 | + * @return string |
|
| 410 | + */ |
|
| 405 | 411 | private function getFieldValue( $field ) { |
| 406 | 412 | |
| 407 | 413 | $v = ''; |
@@ -2,7 +2,7 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace SRF\vCard; |
| 4 | 4 | |
| 5 | -use SMWQueryResult as QueryResult; |
|
| 5 | +use SMWQueryResult as QueryResult; |
|
| 6 | 6 | use SMWQueryProcessor as QueryProcessor; |
| 7 | 7 | use SMWQuery as Query; |
| 8 | 8 | use SMWExportPrinter as FileExportPrinter; |