Pimcore\Model\Element\Recyclebin\Item\Dao::getById PHP Method

getById() public method

public getById ( $id )
$id
    public function getById($id)
    {
        $data = $this->db->fetchRow("SELECT * FROM recyclebin WHERE id = ?", $id);
        if (!$data["id"]) {
            throw new \Exception("Recyclebin item with id " . $id . " not found");
        }
        $this->assignVariablesToModel($data);
    }