mirror of
https://gh.llkk.cc/https://github.com/CaptainCore/captaincore-manager.git
synced 2025-10-03 14:04:44 +08:00
14 lines
268 B
PHP
14 lines
268 B
PHP
|
<?php
|
||
|
|
||
|
namespace CaptainCore;
|
||
|
|
||
|
class AccountPortals extends DB {
|
||
|
|
||
|
static $primary_key = 'account_portal_id';
|
||
|
|
||
|
public function refresh_domains() {
|
||
|
$domains = array_column( self::all(), "domain" );
|
||
|
set_transient( "captaincore_authorized_domains", $domains );
|
||
|
}
|
||
|
|
||
|
}
|