View Single Post
Old 11-18-2008, 12:09 AM   #7 (permalink)
Kalle
The Frequenter
Zend Certified 
 
Join Date: Sep 2007
Location: Denmark
Posts: 352
Thanks: 8
Kalle is on a distinguished road
Default

Just as a note your class requires PHP 5.2.5 because it uses all the imagefilter() constants and do not check if their availability for people who may use this for cross php version scripts.

Another thing I've noticed, wouldn't it be easier to make a new exception instead of prefixing all error messages sent to the Exception class. Eg.:
PHP Code:
class ImageException extends Exception
{
    public function 
__construct($message)
    {
        
parent::__construct('[Image error] ' $message);
    }

__________________
Send a message via MSN to Kalle Send a message via Skype™ to Kalle
Kalle is offline  
Reply With Quote