From: Bharat M. <bh...@us...> - 2005-09-28 08:33:29
|
Update of /cvsroot/gallery/gallery2/modules/exif/classes/interfaces In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4528/modules/exif/classes/interfaces Modified Files: ExifPropertiesMap.inc Log Message: Now that the interfaces have been moved to pure PHP, perform some cleanup on the template to make them look a little prettier. Take advantage of the fact that we're not handcuffed by XSLT to properly capitalize getter/setters and fix various spacing issues. Index: ExifPropertiesMap.inc =================================================================== RCS file: /cvsroot/gallery/gallery2/modules/exif/classes/interfaces/ExifPropertiesMap.inc,v retrieving revision 1.12 retrieving revision 1.13 diff -u -d -r1.12 -r1.13 --- ExifPropertiesMap.inc 28 Sep 2005 07:57:54 -0000 1.12 +++ ExifPropertiesMap.inc 28 Sep 2005 08:33:20 -0000 1.13 @@ -35,13 +35,12 @@ * it by hand, as your changes will be lost next time this file is * rebuilt. If you want to add more getters/setters, you should add * them in the core class. If you want to change the format of this - * file, then you should edit the XSL template. + * file, then you should edit lib/tools/bin/interface.tpl. * * @package Exif * @subpackage Classes */ class ExifPropertiesMap extends ExifPropertiesMap_core { - /** * Return the name of this class with the proper mix of uppercase and @@ -59,10 +58,9 @@ * @return string path */ function getClassFile() { - return 'modules/' . - basename(dirname(dirname(dirname(__FILE__)))) . - '/classes/ExifPropertiesMap.class'; + return 'modules/' . basename(dirname(dirname(dirname(__FILE__)))) . '/classes/ExifPropertiesMap.class'; } + /** * Get meta information about this class' map * @@ -85,7 +83,7 @@ */ function addMapEntry($data) { global $gallery; - foreach (array('property', 'viewMode', 'sequence', ) as $key) { + foreach (array('property', 'viewMode', 'sequence') as $key) { if (!array_key_exists($key, $data)) { return GalleryStatus::error(ERROR_BAD_PARAMETER, __FILE__, __LINE__, 'Missing parameter: ' . $key); |