mirror of
https://github.com/Karaka-Management/oms-Media.git
synced 2026-02-17 09:48:41 +00:00
fix tests
This commit is contained in:
parent
51792d7018
commit
4c2448cfc8
|
|
@ -1080,6 +1080,20 @@ final class ApiController extends Controller
|
||||||
return $parentCollection;
|
return $parentCollection;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Add Media to a collection and arbitrary model
|
||||||
|
*
|
||||||
|
* @param int $account Request account
|
||||||
|
* @param int[] $files Files to add
|
||||||
|
* @param null|int $rel Relation to model id
|
||||||
|
* @param string $mapper Mapper to use for relation
|
||||||
|
* @param string $field Field to use for relation
|
||||||
|
* @param string $collectionPath Path of the collection the files should get added to
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
public function addMediaToCollectionAndModel(
|
public function addMediaToCollectionAndModel(
|
||||||
int $account,
|
int $account,
|
||||||
array $files,
|
array $files,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user