/** * Fetch the highest or lowest weight of all children * @param int $itemId the parent item id * @param int $direction the direction (HIGHER_WEIGHT, LOWER_WEIGHT) * @return int a weight */ function fetchExtremeChildWeight($itemId, $direction) { MyOOS_CoreApi::requireOnce( 'modules/core/classes/helpers/GalleryItemAttributesHelper_advanced.class'); return GalleryItemAttributesHelper_advanced::fetchExtremeChildWeight($itemId, $direction); }
/** * Update all items containing the source parent sequence to the new parent sequence * * @param array $oldParentSequence * @param array $newParentSequence the parent sequence (ids) * @return GalleryStatus a status code */ function updateParentSequence($oldParentSequence, $newParentSequence) { MyOOS_CoreApi::requireOnce('modules/core/classes/helpers/GalleryItemAttributesHelper_advanced.class'); return GalleryItemAttributesHelper_advanced::updateParentSequence($oldParentSequence, $newParentSequence); }