初始上传
This commit is contained in:
38
extend/barcode/class/drawer/BCGDraw.php
Executable file
38
extend/barcode/class/drawer/BCGDraw.php
Executable file
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
/**
|
||||
*--------------------------------------------------------------------
|
||||
*
|
||||
* Base class to draw images
|
||||
*
|
||||
*--------------------------------------------------------------------
|
||||
* Copyright (C) Jean-Sebastien Goupil
|
||||
* http://www.barcodephp.com
|
||||
*/
|
||||
abstract class BCGDraw {
|
||||
protected $im;
|
||||
protected $filename;
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param resource $im
|
||||
*/
|
||||
protected function __construct($im) {
|
||||
$this->im = $im;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the filename.
|
||||
*
|
||||
* @param string $filename
|
||||
*/
|
||||
public function setFilename($filename) {
|
||||
$this->filename = $filename;
|
||||
}
|
||||
|
||||
/**
|
||||
* Method needed to draw the image based on its specification (JPG, GIF, etc.).
|
||||
*/
|
||||
abstract public function draw();
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user