function views_handler_field::get_value

Get the value that's supposed to be rendered.

This api exists so that other modules can easy set the values of the field without having the need to change the render method as well.

Parameters

object $values: An object containing all retrieved values.

string $field: Optional name of the field where the value is stored.

55 calls to views_handler_field::get_value()
views_handler_field::render in handlers/views_handler_field.inc
Render the field.
views_handler_field_accesslog_path::render in modules/statistics/views_handler_field_accesslog_path.inc
Render the field.
views_handler_field_accesslog_path::render_link in modules/statistics/views_handler_field_accesslog_path.inc
views_handler_field_aggregator_category::render in modules/aggregator/views_handler_field_aggregator_category.inc
Render the field.
views_handler_field_aggregator_category::render_link in modules/aggregator/views_handler_field_aggregator_category.inc
Render whatever the data is as a link to the category.

... See full list

3 methods override views_handler_field::get_value()
views_handler_field_entity::get_value in handlers/views_handler_field_entity.inc
Return the entity object or a certain property of the entity.
views_handler_field_field::get_value in modules/field/views_handler_field_field.inc
Get the value that's supposed to be rendered.
views_handler_field_prerender_list::get_value in handlers/views_handler_field_prerender_list.inc
Get the value that's supposed to be rendered.

File

handlers/views_handler_field.inc, line 404

Class

views_handler_field
Base field handler that has no options and renders an unformatted field.

Code

public function get_value($values, $field = NULL) {
    $alias = isset($field) ? $this->aliases[$field] : $this->field_alias;
    if (isset($values->{$alias})) {
        return $values->{$alias};
    }
}