eZ\Publish\Core\Persistence\Legacy\Content\Location\Gateway::listTrashed PHP Method

listTrashed() abstract public method

Returns entries from ezcontentobject_trash.
abstract public listTrashed ( integer $offset, integer $limit, array $sort = null ) : array
$offset integer
$limit integer
$sort array
return array
    public abstract function listTrashed($offset, $limit, array $sort = null);

Usage Example

 /**
  * Lists trashed items.
  * Returns entries from ezcontentobject_trash.
  *
  * @param int $offset
  * @param int $limit
  * @param array $sort
  *
  * @return array
  */
 public function listTrashed($offset, $limit, array $sort = null)
 {
     try {
         return $this->innerGateway->listTrashed($offset, $limit, $sort);
     } catch (DBALException $e) {
         throw new RuntimeException('Database error', 0, $e);
     } catch (PDOException $e) {
         throw new RuntimeException('Database error', 0, $e);
     }
 }
All Usage Examples Of eZ\Publish\Core\Persistence\Legacy\Content\Location\Gateway::listTrashed