This repository was archived by the owner on Sep 10, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -373,6 +373,17 @@ private function _setApiCallbacks($apiMethodPrefix)
373
373
$ help ['description ' ] = 'Get metadata ' ;
374
374
$ this ->helpContent [$ apiMethodPrefix .'item.getmetadata ' ] = $ help ;
375
375
$ this ->apicallbacks [$ apiMethodPrefix .'item.getmetadata ' ] = array (&$ this , 'itemGetMetadata ' );
376
+
377
+ // Extend web API to other modules via CALLBACK_API_METHODS
378
+ $ additionalMethods = Zend_Registry::get ('notifier ' )->callback ('CALLBACK_API_METHODS ' , array ());
379
+ foreach ($ additionalMethods as $ module => $ methods )
380
+ {
381
+ foreach ($ methods as $ method )
382
+ {
383
+ $ this ->helpContent [$ apiMethodPrefix .strtolower ($ module ).'. ' .$ method ['name ' ]] = $ method ['help ' ];
384
+ $ this ->apicallbacks [$ apiMethodPrefix .strtolower ($ module ).'. ' .$ method ['name ' ]] = array ($ method ['callbackObject ' ], $ method ['callbackFunction ' ]);
385
+ }
386
+ }
376
387
}
377
388
378
389
/** Initialize property allowing to generate XML */
@@ -1370,7 +1381,7 @@ function userFolders($args)
1370
1381
return array ();
1371
1382
}
1372
1383
1373
- $ userRootFolder = $ userDao ->getFolder ();
1384
+ $ userRootFolder = $ userDao ->getFolder ();
1374
1385
return $ this ->Folder ->getChildrenFoldersFiltered ($ userRootFolder , $ userDao , MIDAS_POLICY_READ );
1375
1386
}
1376
1387
You can’t perform that action at this time.
0 commit comments