----------------------------------------------------------------------
($string, $version, $level)
| 242 | |
| 243 | //---------------------------------------------------------------------- |
| 244 | public function encodeString8bit($string, $version, $level) |
| 245 | { |
| 246 | if(string == NULL) { |
| 247 | throw new Exception('empty string!'); |
| 248 | return NULL; |
| 249 | } |
| 250 | |
| 251 | $input = new QRinput($version, $level); |
| 252 | if($input == NULL) return NULL; |
| 253 | |
| 254 | $ret = $input->append($input, QR_MODE_8, strlen($string), str_split($string)); |
| 255 | if($ret < 0) { |
| 256 | unset($input); |
| 257 | return NULL; |
| 258 | } |
| 259 | return $this->encodeInput($input); |
| 260 | } |
| 261 | |
| 262 | //---------------------------------------------------------------------- |
| 263 | public function encodeString($string, $version, $level, $hint, $casesensitive) |
no test coverage detected