PHRAS-1863 PORT PHRAS-60 Add applicative trash (#2492)

This commit is contained in:
KallooaSan
2018-02-27 20:02:24 +04:00
committed by jygaulier
parent 1ca68fb9a5
commit cb4ef28072
2 changed files with 38 additions and 2 deletions

View File

@@ -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