*/
function __construct()
{
- if (PEAR5::loadExtension('imagick')) {
+ if (PEAR::loadExtension('imagick')) {
include 'Image/Transform/Driver/Imagick/ImageTypes.php';
} else {
- $this->isError(PEAR5::raiseError('Could not find the imagick extension.',
+ $this->isError(PEAR::staticRaiseError('Could not find the imagick extension.',
IMAGE_TRANSFORM_ERROR_UNSUPPORTED));
}
}
$this->image = $image;
$result = $this->_get_image_details($image);
- if (PEAR5::isError($result)) {
+ if (PEAR::isError($result)) {
return $result;
}
{
// Sanity check
if (!$this->intersects($width, $height, $x, $y)) {
- return PEAR5::raiseError('Nothing to crop', IMAGE_TRANSFORM_ERROR_OUTOFBOUND);
+ return PEAR::staticRaiseError('Nothing to crop', IMAGE_TRANSFORM_ERROR_OUTOFBOUND);
}
try {
$this->imagick->cropImage($width, $height, $x, $y);
*/
function raiseError($message, $code = 0)
{
- return PEAR5::raiseError($message, $code);
+ return PEAR::staticRaiseError($message, $code);
}
}
\ No newline at end of file