You are here

views_handler_field_hosting_platform_status.inc in Hosting 6.2

File

platform/views_handler_field_hosting_platform_status.inc
View source
<?php

/**
 * A handler for the Platform status field.
 *
 * @ingroup views_field_handlers
 */
class views_handler_field_hosting_platform_status extends views_handler_field_hosting_site_status {
  function render($values) {
    $value = $values->{$this->field_alias};
    $output = _hosting_platform_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_platform_list_class($value);
    }
    return $output;
  }

}

Classes

Namesort descending Description
views_handler_field_hosting_platform_status A handler for the Platform status field.