class feeds_views_handler_field_source in Feeds 6
Same name and namespace in other branches
- 8.2 views/feeds_views_handler_field_source.inc \feeds_views_handler_field_source
- 7.2 views/feeds_views_handler_field_source.inc \feeds_views_handler_field_source
- 7 views/feeds_views_handler_field_source.inc \feeds_views_handler_field_source
@file Views handler for showing a feeds source config field.
Hierarchy
- class \feeds_views_handler_field_source extends \views_handler_field
Expanded class hierarchy of feeds_views_handler_field_source
1 string reference to 'feeds_views_handler_field_source'
- feeds_views_data in views/
feeds.views.inc - Implements hook_views_data().
File
- views/
feeds_views_handler_field_source.inc, line 8 - Views handler for showing a feeds source config field.
View source
class feeds_views_handler_field_source extends views_handler_field {
/**
* Override parent::render().
*/
function render($values) {
$value = unserialize($values->{$this->field_alias});
if (isset($value['FeedsHTTPFetcher']['source'])) {
return check_url($value['FeedsHTTPFetcher']['source']);
}
elseif (isset($value['FeedsFileFetcher']['feeds_source'])) {
// @todo This is untested.
return $GLOBALS['base_url'] . '/' . check_plain($value['FeedsFileFetcher']['feeds_source']);
}
return '';
}
/**
* Disallow advanced rendering.
*/
function allow_advanced_render() {
return FALSE;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
feeds_views_handler_field_source:: |
function | Disallow advanced rendering. | ||
feeds_views_handler_field_source:: |
function | Override parent::render(). |