ThumbBase::__construct PHP Method

__construct() public method

Class constructor
public __construct ( $fileName, $isDataStream = false ) : ThumbBase
return ThumbBase
    public function __construct($fileName, $isDataStream = false)
    {
        $this->imported = array();
        $this->importedFunctions = array();
        $this->errorMessage = null;
        $this->hasError = false;
        $this->fileName = $fileName;
        $this->remoteImage = false;
        $this->isDataStream = $isDataStream;
        $this->fileExistsAndReadable();
    }

Usage Example

Example #1
0
 * @filesource
 */
/**
 * GdThumb Class Definition
 * 
 * This is the GD Implementation of the PHP Thumb library.
 * 
 * @package PhpThumb
 * @subpackage Core
 */
class GdThumb extends ThumbBase
{
    /**
	 * The prior image (before manipulation)
	 * 
	 * @var resource
	 */
    protected $oldImage;
    /**
	 * The working image (used during manipulation)
	 * 
	 * @var resource
	 */
    protected $workingImage;
    /**
	 * The current dimensions of the image
All Usage Examples Of ThumbBase::__construct