----------------------------------------------------------------------
($string, $version, $level, $hint, $casesensitive)
| 261 | |
| 262 | //---------------------------------------------------------------------- |
| 263 | public function encodeString($string, $version, $level, $hint, $casesensitive) |
| 264 | { |
| 265 | |
| 266 | if($hint != QR_MODE_8 && $hint != QR_MODE_KANJI) { |
| 267 | throw new Exception('bad hint'); |
| 268 | return NULL; |
| 269 | } |
| 270 | |
| 271 | $input = new QRinput($version, $level); |
| 272 | if($input == NULL) return NULL; |
| 273 | |
| 274 | $ret = QRsplit::splitStringToQRinput($string, $input, $hint, $casesensitive); |
| 275 | if($ret < 0) { |
| 276 | return NULL; |
| 277 | } |
| 278 | |
| 279 | return $this->encodeInput($input); |
| 280 | } |
| 281 | |
| 282 | //---------------------------------------------------------------------- |
| 283 | public static function png($text, $outfile = false, $level = QR_ECLEVEL_L, $size = 3, $margin = 4, $saveandprint=false) |
no test coverage detected