Ejemplo n.º 1
0
 /**
  * Transfer the ownership of all items by oldUser to newUser
  *
  * @param int $oldUserId the user id of the old owner
  * @param int $newUserId the user id of the new owner
  * @return GalleryStatus a status code
  */
 function remapOwnerId($oldUserId, $newUserId) {
 MyOOS_CoreApi::requireOnce(
     'modules/core/classes/helpers/GalleryItemHelper_advanced.class');
 return GalleryItemHelper_advanced::remapOwnerId($oldUserId, $newUserId);
 }
Ejemplo n.º 2
0
 /**
  * Remove the given renderer from all items that are using it.
  *
  * @param string $rendererClassName
  * @return GalleryStatus a status code
  */
 function deleteRenderer($rendererClassName)
 {
     MyOOS_CoreApi::requireOnce('modules/core/classes/helpers/GalleryItemHelper_advanced.class');
     return GalleryItemHelper_advanced::deleteRenderer($rendererClassName);
 }