Lines Matching refs:this

16 		$this->_attributes = [
28 if (method_exists($this, $setter)) {
30 $this->$setter($value);
39 if (method_exists($this, $getter)) {
41 return $this->$getter();
49 $this->_attributes[$name] = $value;
54 return $this->_attributes[$name];
59 array_merge($this->_attributes, $attrs);
64 return $this->_attributes;
69 $this->setAttribute('code', $value);
70 return $this;
75 return $this->getAttribute('code');
80 $this->setAttribute('file', $value);
81 return $this;
86 return $this->getAttribute('file');
91 $this->setAttribute('size', $value);
92 return $this;
97 return $this->getAttribute('size') * $this->_scalePx;
102 $this->setAttribute('margin', $value);
103 return $this;
108 return $this->getAttribute('margin');
113 $this->setAttribute('color', $value);
114 return $this;
119 return $this->getAttribute('color');
124 return new Barcode2D($this->code, 'PDF417');
129 $color = $this->color;
136 $color = $this->color;
154 $bcd = $this->barcode->getBarcodeArray();
156 if ($this->size < $bcd['num_cols'])
159 if ($this->margin > 0) {
160 $scale['frameX'] = $this->size - ($this->_borderPx * 2);
161 $scale['margin'] = round($this->size * ($this->margin / 100));
168 $scale['frameX'] = $this->size;
170 $scale['area'] = $this->size;
184 $bcd = $this->barcode->getBarcodeArray();
185 $color = $this->hexColor;
186 $scale = $this->scale;
188 if ($this->margin > 0) {
189 $pdf417Data = '<div style="position:absolute; border: solid '.$this->_borderPx.'px '.$this->hexColor.'; width:'.$scale->frameX.'px; height:'.$scale->frameY.'px">';
224 $bcd = $this->barcode->getBarcodeArray();
225 $this->_borderPx = 0;
226 $color = $this->rgbColor;
227 $scale = $this->scale;
257 $blank = imagecreate($this->size, $this->size);
264 if ($this->file === null) {
269 preg_match("/\.png$/", $this->file, $output);
273 $filePath = explode(DIRECTORY_SEPARATOR, $this->file);
275 $savePath = dirname(dirname(__FILE__)).DIRECTORY_SEPARATOR.'tmp'.DIRECTORY_SEPARATOR.$this->file;
277 $savePath = $this->file;
293 $bcd = $this->barcode->getBarcodeArray();
294 $color = $this->hexColor;
295 $scale = $this->scale;
306 if ($this->margin > 0) {
332 if ($this->file != null) {
333 preg_match("/\.svg$/", $this->file, $output);
337 $filePath = explode(DIRECTORY_SEPARATOR, $this->file);
339 $savePath = dirname(dirname(__FILE__)).DIRECTORY_SEPARATOR.'tmp'.DIRECTORY_SEPARATOR.$this->file;
341 $savePath = $this->file;
353 $pdf417Data = $this->getPDF417HtmlData();
365 $pdf417Data = $this->getPDF417PngData();
377 $pdf417Data = $this->getPDF417SvgData();