@@ -46,6 +46,9 @@ discard block |
||
| 46 | 46 | return $handle; |
| 47 | 47 | } |
| 48 | 48 | |
| 49 | + /** |
|
| 50 | + * @param resource $handle |
|
| 51 | + */ |
|
| 49 | 52 | protected function readLog($handle) |
| 50 | 53 | { |
| 51 | 54 | print("\n[Daemon]: +++ readLog() +++"); |
@@ -116,6 +119,9 @@ discard block |
||
| 116 | 119 | |
| 117 | 120 | } |
| 118 | 121 | |
| 122 | + /** |
|
| 123 | + * @param string $buffer |
|
| 124 | + */ |
|
| 119 | 125 | protected function parseIP($buffer) |
| 120 | 126 | { |
| 121 | 127 | $ip = ""; |
@@ -134,6 +140,9 @@ discard block |
||
| 134 | 140 | return $ip; |
| 135 | 141 | } |
| 136 | 142 | |
| 143 | + /** |
|
| 144 | + * @param string $buffer |
|
| 145 | + */ |
|
| 137 | 146 | protected function parseHostname($buffer) |
| 138 | 147 | { |
| 139 | 148 | $hostname = ""; |
@@ -152,6 +161,9 @@ discard block |
||
| 152 | 161 | return $hostname; |
| 153 | 162 | } |
| 154 | 163 | |
| 164 | + /** |
|
| 165 | + * @param string $line |
|
| 166 | + */ |
|
| 155 | 167 | protected function parseExit($line) |
| 156 | 168 | { |
| 157 | 169 | $exit = 0; |
@@ -196,6 +208,9 @@ discard block |
||
| 196 | 208 | |
| 197 | 209 | } |
| 198 | 210 | |
| 211 | + /** |
|
| 212 | + * @param integer $id |
|
| 213 | + */ |
|
| 199 | 214 | protected function sendVncWindowToNuc($id, $vncclient) |
| 200 | 215 | { |
| 201 | 216 | print("\n[Daemon]: +++sendVncWindowToNuc() +++ "); |
@@ -166,6 +166,9 @@ |
||
| 166 | 166 | } |
| 167 | 167 | } |
| 168 | 168 | |
| 169 | +/** |
|
| 170 | + * @param string $office |
|
| 171 | + */ |
|
| 169 | 172 | function convertOffice($inputFile, $office, $outputDir, $fileName) |
| 170 | 173 | { |
| 171 | 174 | shell_exec("/usr/bin/libreoffice --headless --convert-to pdf:'$office'_pdf_Export --outdir '$outputDir' '$inputFile' >/dev/null 2>&1"); |