Changeset View
Changeset View
Standalone View
Standalone View
src/app/Backends/Roundcube.php
Show First 20 Lines • Show All 190 Lines • ▼ Show 20 Lines | */ | ||||
if ($debug) { | if ($debug) { | ||||
\Log::debug("[SYNC] Removed file: $file"); | \Log::debug("[SYNC] Removed file: $file"); | ||||
} | } | ||||
} | } | ||||
} | } | ||||
/** | /** | ||||
* Delete a Roundcube user. | |||||
* | |||||
* @param string $email User email address | |||||
*/ | |||||
public static function deleteUser(string $email): void | |||||
{ | |||||
$db = self::dbh(); | |||||
$db->table(self::USERS_TABLE)->where('username', \strtolower($email))->delete(); | |||||
} | |||||
/** | |||||
* Find the Roundcube user identifier for the specified user. | * Find the Roundcube user identifier for the specified user. | ||||
* | * | ||||
* @param string $email User email address | * @param string $email User email address | ||||
* @param bool $create Make sure the user record exists | * @param bool $create Make sure the user record exists | ||||
* | * | ||||
* @returns ?int Roundcube user identifier | * @returns ?int Roundcube user identifier | ||||
*/ | */ | ||||
public static function userId(string $email, bool $create = true): ?int | public static function userId(string $email, bool $create = true): ?int | ||||
▲ Show 20 Lines • Show All 63 Lines • Show Last 20 Lines |