Lines Matching refs:this

16 		$this->_attributes = [
30 if (method_exists($this, $setter)) {
32 $this->$setter($value);
41 if (method_exists($this, $getter)) {
43 return $this->$getter();
51 $this->_attributes[$name] = $value;
56 return $this->_attributes[$name];
61 array_merge($this->_attributes, $attrs);
66 return $this->_attributes;
71 $this->setAttribute('code', $value);
72 return $this;
77 return $this->getAttribute('code');
82 $this->setAttribute('emblem', $value);
83 return $this;
88 if ($this->getAttribute('emblem') == null) return null;
92 $emblem['image'] = $this->getAttribute('emblem');
93 $bcd = $this->barcode->getBarcodeArray();
95 $emblem['frame'] = $this->size;
96 $area = floor(($this->scale->size * $bcd['num_cols']) * 0.2);
106 if (!in_array($value, ['L','M','Q','H'])) return $this;
108 $this->setAttribute('level', $value);
109 return $this;
114 return $this->getAttribute('level');
119 $this->setAttribute('file', $value);
120 return $this;
125 return $this->getAttribute('file');
130 $this->setAttribute('size', $value);
131 return $this;
136 return $this->getAttribute('size') * $this->_scalePx;
141 $this->setAttribute('margin', $value);
142 return $this;
147 return $this->getAttribute('margin');
152 $this->setAttribute('color', $value);
153 return $this;
158 return $this->getAttribute('color');
163 return new Barcode2D($this->code, 'QRCODE,' . $this->level);
168 $color = $this->color;
175 $color = $this->color;
193 $bcd = $this->barcode->getBarcodeArray();
195 if ($this->margin > 0) {
196 $scale['frame'] = $this->size - ($this->_borderPx * 2);
197 $scale['margin'] = round($this->size * ($this->margin / 100));
203 $scale['frame'] = $this->size;
205 $scale['area'] = $this->size;
211 if ($this->size < $scale['frame'])
219 $bcd = $this->barcode->getBarcodeArray();
220 $color = $this->hexColor;
221 $scale = $this->scale;
223 if ($this->margin > 0) {
224 …ition:absolute; border: solid '.$this->_borderPx.'px '.$this->hexColor.'; width:'.($this->size - 2…
226 …$qrcodeData = '<div style="position:absolute; width:'.$this->size.'px; height:'.$this->size.'px">';
252 if ($this->emblem != null) {
253 $emblem = $this->emblem;
264 $bcd = $this->barcode->getBarcodeArray();
265 $this->_borderPx = 0;
266 $color = $this->rgbColor;
267 $scale = $this->scale;
296 $frame = imagecreatetruecolor($this->size, $this->size);
297 $blank = imagecreate($this->size, $this->size);
304 if ($this->emblem != null) {
305 $emblem = $this->emblem;
312 if ($this->file === null) {
317 preg_match("/\.png$/", $this->file, $output);
321 $filePath = explode(DIRECTORY_SEPARATOR, $this->file);
323 … $savePath = dirname(dirname(__FILE__)).DIRECTORY_SEPARATOR.'tmp'.DIRECTORY_SEPARATOR.$this->file;
325 $savePath = $this->file;
341 $bcd = $this->barcode->getBarcodeArray();
342 $color = $this->hexColor;
343 $scale = $this->scale;
351 …$qrcodeData .= '<svg width="'.$this->size.'" height="'.$this->size.'" version="1.1" xmlns="http://…
354 if ($this->margin > 0) {
356 …$qrcodeData .= "\t\t".'<rect height="'.$this->size.'" width="'.$this->size.'" y="0" x="0" />'."\n";
378 if ($this->emblem != null) {
379 $emblem = $this->emblem;
387 if ($this->file != null) {
388 preg_match("/\.svg$/", $this->file, $output);
392 $filePath = explode(DIRECTORY_SEPARATOR, $this->file);
394 … $savePath = dirname(dirname(__FILE__)).DIRECTORY_SEPARATOR.'tmp'.DIRECTORY_SEPARATOR.$this->file;
396 $savePath = $this->file;
408 $qrcodeData = $this->getQRcodeHtmlData();
420 $qrcodeData = $this->getQRcodePngData();
432 $qrcodeData = $this->getQRcodeSvgData();