You are here

class quiz_views_handler_field_takes in Quiz 8.4

Same name and namespace in other branches
  1. 6.6 includes/views/handlers/quiz_views_handler_field_takes.inc \quiz_views_handler_field_takes
  2. 6.3 includes/views/handlers/quiz_views_handler_field_takes.inc \quiz_views_handler_field_takes
  3. 6.4 includes/views/handlers/quiz_views_handler_field_takes.inc \quiz_views_handler_field_takes
  4. 6.5 includes/views/handlers/quiz_views_handler_field_takes.inc \quiz_views_handler_field_takes
  5. 7.6 includes/views/handlers/quiz_views_handler_field_takes.inc \quiz_views_handler_field_takes
  6. 7 includes/views/handlers/quiz_views_handler_field_takes.inc \quiz_views_handler_field_takes
  7. 7.4 includes/views/handlers/quiz_views_handler_field_takes.inc \quiz_views_handler_field_takes

Hierarchy

Expanded class hierarchy of quiz_views_handler_field_takes

1 string reference to 'quiz_views_handler_field_takes'
quiz_views_data in includes/views/quiz.views.inc
Implementation of hook_views_data().

File

includes/views/handlers/quiz_views_handler_field_takes.inc, line 7

View source
class quiz_views_handler_field_takes extends views_handler_field {
  function render($values) {
    $value = $values->{$this->field_alias};
    if ((int) $value === 0) {
      return 'Unlimited';
    }
    return $value;
  }

}

Members