class hosting_server_handler_field_status

A handler for the Server status field.

Hierarchy

Expanded class hierarchy of hosting_server_handler_field_status

Members

Contains filters are case sensitive

File

server/includes/views/handlers/hosting_server_handler_field_status.inc, line 8

View source
class hosting_server_handler_field_status extends hosting_site_handler_field_status {
  function render($values) {
    $value = $values->{$this->field_alias};
    $output = _hosting_server_status($value);

    switch ($this->options['status_mode']) {
      case 'image':
        return "<span class='hosting-status hosting-status-icon'></span>";

      case 'text_image':
        return "<span class='hosting-status'>{$output}</span>";

      case 'class':
        return _hosting_server_list_class($value);
    }
    return $output;
  }
}