function &getImageRef() { if (!($img_path = $this->getImageFileName())) { return false; } require_once 'AMP/Content/Image.inc.php'; $image = new Content_Image(); $image->setData($this->getImageData()); return $image; }
function &getImageRef() { $empty_value = false; if (!($img_path = $this->getImageFileName())) { return $empty_value; } $image = new Content_Image($img_path); $image->setData($this->getImageData()); return $image; }