mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-10 11:33:17 +00:00
Add API get collection route
Signed-off-by: Benoît Burnichon <bburnichon@alchemy.fr> Forward port from 3.8
This commit is contained in:

committed by
Benoît Burnichon

parent
dc7a50548a
commit
a903594fbc
@@ -257,6 +257,10 @@ class appbox extends base
|
||||
return $this->databoxes;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param $sbas_id
|
||||
* @return databox
|
||||
*/
|
||||
public function get_databox($sbas_id)
|
||||
{
|
||||
$databoxes = $this->get_databoxes();
|
||||
@@ -268,6 +272,10 @@ class appbox extends base
|
||||
return $databoxes[$sbas_id];
|
||||
}
|
||||
|
||||
/**
|
||||
* @param int $base_id
|
||||
* @return collection
|
||||
*/
|
||||
public function get_collection($base_id)
|
||||
{
|
||||
$sbas_id = phrasea::sbasFromBas($this->app, $base_id);
|
||||
|
Reference in New Issue
Block a user