Re: Reading PDF meta

From: Date: Tue, 27 Dec 2005 23:26:39 +0000
Subject: Re: Reading PDF meta
References: 1 2  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-40840@lists.php.net to get a copy of this message
Markus Tacker wrote: > Hoi Chris, > > On 12/27/05, Christoph Lütjen - webEdition Software GmbH > <christoph.luetjen@webedition.de> wrote: > >>/File/Meta/Drivers/image/jpeg.php (folder "Drivers" has one file per >>file/class per file format, file name = name of mime type) > > > Please use ucfirst(strtolower($str)) for all your file / directory names. > Given he wants to base drivers on MIME-type names, all-lowercase is better here, since this is the convention for them. The PEAR manual states "Class names **should** always begin with an uppercase" and not **must**. However the path to the drivers would be File/Meta/Driver/image/jpeg (not Drivers.) Furthermore, this would need more flexibility, as Driver would refer to the tool used, and "Format" would refer to the type of data itself. Possibly several drivers could be available for one given format depending on the system the package is installed on. This could somehow make things more complicated since you would now have a matrix of driver/format. -Philippe

« previous php.pear.dev (#40840) next »