Changeset View
Changeset View
Standalone View
Standalone View
externals/phpqrcode/phpqrcode.php
Show First 20 Lines • Show All 2,931 Lines • ▼ Show 20 Lines | class QRrawcode { | ||||
} | } | ||||
return 0; | return 0; | ||||
} | } | ||||
//---------------------------------------------------------------------- | //---------------------------------------------------------------------- | ||||
public function getCode() | public function getCode() | ||||
{ | { | ||||
$ret; | $ret = null; | ||||
if($this->count < $this->dataLength) { | if($this->count < $this->dataLength) { | ||||
$row = $this->count % $this->blocks; | $row = $this->count % $this->blocks; | ||||
$col = $this->count / $this->blocks; | $col = $this->count / $this->blocks; | ||||
if($col >= $this->rsblocks[0]->dataLength) { | if($col >= $this->rsblocks[0]->dataLength) { | ||||
$row += $this->b1; | $row += $this->b1; | ||||
} | } | ||||
$ret = $this->rsblocks[$row]->data[$col]; | $ret = $this->rsblocks[$row]->data[$col]; | ||||
▲ Show 20 Lines • Show All 364 Lines • Show Last 20 Lines |