You are here

class smart_ip_views_bridge_handler_field_longitude in Smart IP 6

Same name and namespace in other branches
  1. 6.2 modules/smart_ip_views_bridge/views/smart_ip_views_bridge_handler_field_longitude.inc \smart_ip_views_bridge_handler_field_longitude
  2. 7.2 modules/smart_ip_views_bridge/views/smart_ip_views_bridge_handler_field_longitude.inc \smart_ip_views_bridge_handler_field_longitude

Field handler to display visitor's longitude.

Hierarchy

Expanded class hierarchy of smart_ip_views_bridge_handler_field_longitude

1 string reference to 'smart_ip_views_bridge_handler_field_longitude'
smart_ip_views_bridge_views_data in modules/smart_ip_views_bridge/views/smart_ip_views_bridge.views.inc
Implements hook_views_data().

File

modules/smart_ip_views_bridge/views/smart_ip_views_bridge_handler_field_longitude.inc, line 12
Contains the 'smart_ip_views_bridge_handler_field_longitude' markup field handler.

View source
class smart_ip_views_bridge_handler_field_longitude extends smart_ip_views_bridge_handler_field_coordinates {
  function construct() {
    parent::construct();
  }
  function render($values) {
    $smart_ip_session = smart_ip_session_get('smart_ip');
    if ($this->options['style'] == 'dd') {
      return $smart_ip_session['location']['longitude'];
    }
    else {
      return theme('smart_ip_longitude_dms', $smart_ip_session['location']['longitude']);
    }
  }

}

Members