ActivityLog\Model\Event\Model::delete PHP Method

delete() public method

Delete event
public delete ( ) : boolean
return boolean
    public function delete()
    {
        $id = $this->getId();
        if (!empty($id)) {
            try {
                parent::delete(array('id' => $id));
            } catch (\Exception $e) {
                throw new \Gc\Exception($e->getMessage(), $e->getCode(), $e);
            }
            unset($this);
            return true;
        }
        return false;
    }