function hostingService_http_cluster::load in Hostmaster (Aegir) 6
Overrides hostingService::load
File
- modules/
hosting/ web_cluster/ hosting_web_cluster.service.inc, line 30
Class
Code
function load() {
parent::load();
$ssl_enabled = TRUE;
$web_servers = array();
$result = db_query('SELECT web_server_nid FROM {hosting_web_cluster} WHERE vid = %d', $this->server->vid);
while ($web_server = db_fetch_object($result)) {
$web_servers[] = $web_server->web_server_nid;
$server = node_load($web_server->web_server_nid);
$ssl_enabled = $ssl_enabled && $server->services['http']->ssl_enabled;
}
$this->ssl_enabled = $ssl_enabled;
$this
->setValues(array(
'web_servers' => drupal_map_assoc($web_servers),
));
}