You are here

class currency_handler_argument_currency in Currency 6

Same name and namespace in other branches
  1. 7 includes/views/handlers/currency_handler_argument_currency.inc \currency_handler_argument_currency

@file Views argument handler.

Hierarchy

Expanded class hierarchy of currency_handler_argument_currency

1 string reference to 'currency_handler_argument_currency'
currency_views_data in views/currency.views.inc
Implementation of hook_views_data().

File

views/handlers/currency_handler_argument_currency.inc, line 8
Views argument handler.

View source
class currency_handler_argument_currency extends views_handler_argument {
  function query() {
    currency_views_preload($this->view);
    return parent::query();
  }

  /**
   * Get the title this argument will assign the view, given the argument.
   *
   * This usually needs to be overridden to provide a proper title.
   */
  function title() {
    $currency_names = currency_api_get_list();
    return $currency_names[$this->argument];
  }

}

Members

Namesort descending Modifiers Type Description Overrides
currency_handler_argument_currency::query function
currency_handler_argument_currency::title function Get the title this argument will assign the view, given the argument.