OCA\OcSms\Db\ConfigMapper::hasKey PHP Method

hasKey() public method

public hasKey ( $key, $value )
    public function hasKey($key, $value)
    {
        try {
            $sql = "SELECT `key` FROM `*PREFIX*ocsms_config` WHERE `key` = ? AND `user` = ?";
            $this->findEntity($sql, array($key, $this->user));
            return true;
        } catch (DoesNotExistException $e) {
            return false;
        }
    }