mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 23:13:15 +00:00
PHRAS-1863 PORT PHRAS-60 Add applicative trash (#2492)
This commit is contained in:
@@ -601,6 +601,19 @@ class databox extends base implements ThumbnailedElement
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @return collection|null
|
||||
*/
|
||||
public function getTrashCollection()
|
||||
{
|
||||
foreach($this->get_collections() as $collection) {
|
||||
if($collection->get_name() === '_TRASH_') {
|
||||
return $collection;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @param int $record_id
|
||||
|
Reference in New Issue
Block a user