mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 11:11:39 +09:00
Implement moduleModel::getAllDomains()
This commit is contained in:
parent
94c45958c4
commit
37a0aa0f13
3 changed files with 22 additions and 11 deletions
|
|
@ -44,6 +44,24 @@ class moduleModel extends module
|
|||
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Get all domains
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
function getAllDomains($count = 20, $page = 1)
|
||||
{
|
||||
$args = new stdClass;
|
||||
$args->list_count = $count;
|
||||
$args->page = $page;
|
||||
$output = executeQueryArray('module.getDomains', $args);
|
||||
foreach ($output->data as &$domain)
|
||||
{
|
||||
$domain->settings = $domain->settings ? json_decode($domain->settings) : new stdClass;
|
||||
}
|
||||
return $output->data;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Get site information
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue