hosting_platform_handler_field_status.inc

Classes

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

File

platform/includes/views/handlers/hosting_platform_handler_field_status.inc
View source
  1. <?php
  2. /**
  3. * A handler for the Platform status field.
  4. *
  5. * @ingroup views_field_handlers
  6. */
  7. class hosting_platform_handler_field_status extends hosting_site_handler_field_status {
  8. function render($values) {
  9. $value = $values->{$this->field_alias};
  10. $output = _hosting_platform_status($value);
  11. switch ($this->options['status_mode']) {
  12. case 'image':
  13. return "<span class='hosting-status hosting-status-icon'></span>";
  14. case 'text_image':
  15. return "<span class='hosting-status'>{$output}</span>";
  16. case 'class':
  17. return _hosting_platform_list_class($value);
  18. }
  19. return $output;
  20. }
  21. }