I believe he uses this method to shorten the class name.
Zend_Pdf_Resource_Image_Jpeg => Zend_Pdf_Image_Jpeg
I would argue in favor of convention over a few less keystrokes. It's a
longer name, but that's one of the downsides of using a language that has no
namespace support. :-)
import Zend.Pdf.Resource.Image.Jpeg as PdfJpeg;
$jpeg = new PdfJpeg('some/image.jpg');
-Matt
----- Original Message -----
From: "Lars Strojny" <[EMAIL PROTECTED]>
To: <fw-general@lists.zend.com>
Sent: Monday, February 19, 2007 12:51 PM
Subject: Re: [fw-general] UML, ZF Coding Standard differences in Zend_Pdf
Zend_Pdf_Image is not intended to be used without Zend_Pdf class.
Zend/Pdf/Resource/Image.php file is loaded by require_once() call in
Zend/Pdf.php file.
So there are no problem for classes autoloading.
That's not the thing. It has something to do with conventions.
Conventions suck when there are exceptions. There are a lot of classes
in the Zend Framework which are not indended for the plain usage of a
common user. The normal concept for hiding a class is to just not
document the class. I would like to ask you to move or rename the class,
it does not make any sense. Or at least, until now it does not make any
sense.