mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-15 13:32:41 +08:00
torrent list cancel join category
This commit is contained in:
@@ -274,5 +274,21 @@ class SearchBox extends NexusModel
|
||||
return implode('', $options);
|
||||
}
|
||||
|
||||
public static function listCategoryId($searchBoxId, $glue = null): array|string|null
|
||||
{
|
||||
static $results = null;
|
||||
if (is_null($results)) {
|
||||
$results = [];
|
||||
$res = genrelist($searchBoxId);
|
||||
foreach ($res as $item) {
|
||||
$results[] = $item['id'];
|
||||
}
|
||||
}
|
||||
if (!is_null($glue)) {
|
||||
$results = implode($glue, $results);
|
||||
}
|
||||
return $results;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user