You are here

class smart_ip_views_bridge_handler_field_latitude 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_latitude.inc \smart_ip_views_bridge_handler_field_latitude
  2. 7.2 modules/smart_ip_views_bridge/views/smart_ip_views_bridge_handler_field_latitude.inc \smart_ip_views_bridge_handler_field_latitude

Field handler to display visitor's latitude.

Hierarchy

Expanded class hierarchy of smart_ip_views_bridge_handler_field_latitude

1 string reference to 'smart_ip_views_bridge_handler_field_latitude'
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_latitude.inc, line 12
Contains the 'smart_ip_views_bridge_handler_field_latitude' field handler.

View source
class smart_ip_views_bridge_handler_field_latitude 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']['latitude'];
    }
    else {
      return theme('smart_ip_longitude_dms', $smart_ip_session['location']['latitude']);
    }
  }

}

Members