14 lines
231 B
PHP
14 lines
231 B
PHP
|
<?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;
|
||
|
}
|
||
|
}
|