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, 'DATAMATRIX');
129 $color = $this->color;
136 $color = $this->color;
154 $bcd = $this->barcode->getBarcodeArray();
156 if ($this->margin > 0) {
157 $scale['frame'] = $this->size - ($this->_borderPx * 2);
158 $scale['margin'] = round($this->size * ($this->margin / 100));
164 $scale['frame'] = $this->size;
166 $scale['area'] = $this->size;
172 if ($this->size < $scale['frame'])
180 $bcd = $this->barcode->getBarcodeArray();
181 $color = $this->hexColor;
182 $scale = $this->scale;
184 if ($this->margin > 0) {
185 …ition:absolute; border: solid '.$this->_borderPx.'px '.$this->hexColor.'; width:'.($this->size - 2…
187 …$datamatrixData = '<div style="position:absolute; width:'.$this->size.'px; height:'.$this->size.'p…
220 $bcd = $this->barcode->getBarcodeArray();
221 $this->_borderPx = 0;
222 $color = $this->rgbColor;
223 $scale = $this->scale;
252 $frame = imagecreatetruecolor($this->size, $this->size);
253 $blank = imagecreate($this->size, $this->size);
260 if ($this->file === null) {
265 preg_match("/\.png$/", $this->file, $output);
269 $filePath = explode(DIRECTORY_SEPARATOR, $this->file);
271 … $savePath = dirname(dirname(__FILE__)).DIRECTORY_SEPARATOR.'tmp'.DIRECTORY_SEPARATOR.$this->file;
273 $savePath = $this->file;
289 $bcd = $this->barcode->getBarcodeArray();
290 $color = $this->hexColor;
291 $scale = $this->scale;
299 …$datamatrixData .= '<svg width="'.$this->size.'" height="'.$this->size.'" version="1.1" xmlns="htt…
302 if ($this->margin > 0) {
304 …$datamatrixData .= "\t\t".'<rect height="'.$this->size.'" width="'.$this->size.'" y="0" x="0" />'.…
328 if ($this->file != null) {
329 preg_match("/\.svg$/", $this->file, $output);
333 $filePath = explode(DIRECTORY_SEPARATOR, $this->file);
335 … $savePath = dirname(dirname(__FILE__)).DIRECTORY_SEPARATOR.'tmp'.DIRECTORY_SEPARATOR.$this->file;
337 $savePath = $this->file;
349 $datamatrixData = $this->getDatamatrixHtmlData();
361 $datamatrixData = $this->getDatamatrixPngData();
373 $datamatrixData = $this->getDatamatrixSvgData();