/** * Initialises the class with the uploaded media file * * @param Mixed $file The resource pointer to the uploaded file */ public function __construct($file) { $this->media = $file; $this->error = false; $this->watchdog = new Watchdog(1); $this->watchdog->startBacktrace("Media Manager"); }
/** * Constructor for the class * Sets the image array with the contents of uploaded file * * @param Array $file The uploaded file */ function __construct($file) { $this->image = $file; $this->error = 0; $this->watchdog = new Watchdog(1); //enable watchdog to perform backtrace $this->watchdog->startBacktrace("Image"); //start the backtrace }