From: Bharat M. <bh...@us...> - 2005-09-28 08:33:30
|
Update of /cvsroot/gallery/gallery2/modules/rewrite/classes/interfaces In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4528/modules/rewrite/classes/interfaces Modified Files: RewriteMap.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: RewriteMap.inc =================================================================== RCS file: /cvsroot/gallery/gallery2/modules/rewrite/classes/interfaces/RewriteMap.inc,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- RewriteMap.inc 28 Sep 2005 07:57:55 -0000 1.3 +++ RewriteMap.inc 28 Sep 2005 08:33:21 -0000 1.4 @@ -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 Rewrite * @subpackage Classes */ class RewriteMap extends RewriteMap_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/RewriteMap.class'; + return 'modules/' . basename(dirname(dirname(dirname(__FILE__)))) . '/classes/RewriteMap.class'; } + /** * Get meta information about this class' map * @@ -86,7 +84,7 @@ */ function addMapEntry($data) { global $gallery; - foreach (array('pattern', 'module', 'ruleId', 'match', ) as $key) { + foreach (array('pattern', 'module', 'ruleId', 'match') as $key) { if (!array_key_exists($key, $data)) { return GalleryStatus::error(ERROR_BAD_PARAMETER, __FILE__, __LINE__, 'Missing parameter: ' . $key); |