2023-07-19 12:36:13 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Clan;
|
|
|
|
|
|
|
|
use Core\Db;
|
|
|
|
|
|
|
|
class ClanInfo
|
|
|
|
{
|
|
|
|
public static function isJoinable(string $name): bool
|
|
|
|
{
|
|
|
|
return Db::getValue('select count(name) from clan where name = ? and status = 1', [$name]) > 0;
|
|
|
|
}
|
2023-10-16 13:12:16 +00:00
|
|
|
|
|
|
|
public static function getNameById(int $id): string
|
|
|
|
{
|
|
|
|
Db::getValue('select name from clan where id = ?', [$id]);
|
|
|
|
}
|
2023-07-19 12:36:13 +00:00
|
|
|
}
|