/** * Checks automated hosting structure * * This part is executed once in manager is run this cronjob. * php cron.php -s site_admin -e instance -c cron/extensions_update * * */ public function checkStructure() { // Just do table updates erLhcoreClassUpdate::doTablesUpdate(json_decode(file_get_contents('extension/xmppservice/doc/structure.json'), true)); // Shared rosters for standalone enviroment have to be created manually if ($this->settings['ahosting'] == true) { erLhcoreClassExtensionXmppserviceHandler::checkSharedRoasters(array('subdomain' => $this->settings['subdomain'], 'xmpp_host' => $this->settings['xmpp_host'], 'node_api_server' => $this->settings['node_api_server'], 'handler' => $this->settings['handler'], 'rpc_server' => $this->settings['rpc_server'], 'rpc_username' => $this->settings['rpc_username'], 'rpc_password' => $this->settings['rpc_password'], 'rpc_account_host' => $this->settings['rpc_account_host'])); } }