From: Bharat M. <bh...@us...> - 2003-04-22 23:41:11
|
Update of /cvsroot/gallery/gallery2/modules/core/classes In directory sc8-pr-cvs1:/tmp/cvs-serv10816/modules/core/classes Modified Files: GalleryToolkitHelper.class GalleryToolkitOperationParameterMap.class Log Message: Refactored the GalleryToolkit API. We no longer require a default value for toolkit operations. Index: GalleryToolkitHelper.class =================================================================== RCS file: /cvsroot/gallery/gallery2/modules/core/classes/GalleryToolkitHelper.class,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- GalleryToolkitHelper.class 22 Apr 2003 11:43:00 -0000 1.4 +++ GalleryToolkitHelper.class 22 Apr 2003 23:40:36 -0000 1.5 @@ -127,8 +127,7 @@ array('operationName' => $operationName, 'position' => $i, 'type' => $parameterType['type'], - 'description' => $parameterType['description'], - 'default' => $parameterType['default'])); + 'description' => $parameterType['description'])); if ($ret->isError()) { return $ret->wrap(__FILE__, __LINE__); } @@ -328,8 +327,7 @@ * 'outputMimeType' => ..., * 'description' => ..., * arguments => array('type' => ..., - * 'description' => ..., - * 'default' => ...), + * 'description' => ...), * ...) * @todo use priorities for choosing the correct toolkit */ @@ -344,8 +342,7 @@ [GalleryToolkitOperationMap::outputMimeType], [GalleryToolkitOperationMap::description], [GalleryToolkitOperationParameterMap::type], - [GalleryToolkitOperationParameterMap::description], - [GalleryToolkitOperationParameterMap::default] + [GalleryToolkitOperationParameterMap::description] FROM [GalleryToolkitOperationMap], [GalleryToolkitOperationMimeTypeMap], @@ -381,8 +378,7 @@ 'description' => $result[2]); } $current['parameters'][] = array('type' => $result[3], - 'description' => $result[4], - 'default' => $result[5]); + 'description' => $result[4]); } $data[] = $current; GalleryDataCache::put($cacheKey, $data); Index: GalleryToolkitOperationParameterMap.class =================================================================== RCS file: /cvsroot/gallery/gallery2/modules/core/classes/GalleryToolkitOperationParameterMap.class,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- GalleryToolkitOperationParameterMap.class 12 Mar 2003 11:20:29 -0000 1.2 +++ GalleryToolkitOperationParameterMap.class 22 Apr 2003 23:40:37 -0000 1.3 @@ -61,11 +61,6 @@ * @g2 <member-type>STRING</member-type> * @g2 <member-size>LARGE</member-size> * @g2 </member> - * @g2 <member> - * @g2 <member-name>default</member-name> - * @g2 <member-type>STRING</member-type> - * @g2 <member-size>LARGE</member-size> - * @g2 </member> * @g2 </map> */ |