Horde_Alarm::exists PHP Method

exists() public method

Returns whether an alarm with the given id exists already.
public exists ( string $id, string $user, string $instanceid = null ) : boolean
$id string The alarm's unique id.
$user string The alarm's user
$instanceid string An optional instanceid to check for. @since 2.2.0
return boolean True if the specified alarm exists.
    public function exists($id, $user, $instanceid = null)
    {
        try {
            return $this->_exists($id, $user, $instanceid);
        } catch (Horde_Alarm_Exception $e) {
            return false;
        }
    }