updateInstanceSort() public method

Updates the instance with input data
public updateInstanceSort ( $id, $sort ) : CollectionInstance
return CollectionInstance
Beispiel #1
0
 /**
  * Updates the sort order for a given instance
  *
  * @param  integer $pageVersionId
  * @param  integer $collectionSetId
  * @param  array $input
  * @return array
  */
 public function updateSortOrder($pageVersionId, $collectionSetId, $input)
 {
     foreach ($input['instances'] as $i => $id) {
         $this->CollectionsManager->updateInstanceSort($id, $i + 1);
     }
     return $input;
 }