LGV_TZ_Lookup 1.4.2
Time zone lookup for PHP applications and HTTP clients
Loading...
Searching...
No Matches
LGV_TZ_Lookup_Entity Class Reference

Public Member Functions

 __construct ( $inTZID, $inDomainRect, $inCoordinateArray)

Public Attributes

 $domainRect
 $polygon
 $tzID

Detailed Description

This class is basically a struct, containing one entity.

The entity is usually one multipolygon segment, as defined in the main data file. It may represent the entirety of a timezone, but is more likely to be just one part.

It has a timezone ID, a detailed list of polygon points, and a "domain rect," which is a simple rect that encompasses all of the points. We use the domain rect to quickly triage comparisons, and find out where they apply, before applying a more expensive algorithm to do a more exact polygon match.

Definition at line 42 of file LGV_TZ_Lookup_Entity.class.php.

Constructor & Destructor Documentation

◆ __construct()

LGV_TZ_Lookup_Entity::__construct ( $inTZID,
$inDomainRect,
$inCoordinateArray )

The default constructor. We simply pass in the values to be held by this instance.

Parameters
$inTZIDThis is the standard TZ time zone designator that applies to this entity.
$inDomainRectThis is the domain rectangle that contains the East, West, North, and South boundaries of the polygon.
$inCoordinateArrayThis is the exact polygon for the time zone.

Definition at line 66 of file LGV_TZ_Lookup_Entity.class.php.

Member Data Documentation

◆ $domainRect

LGV_TZ_Lookup_Entity::$domainRect

This is the domain rectangle that contains the East, West, North, and South boundaries of the polygon.

Definition at line 53 of file LGV_TZ_Lookup_Entity.class.php.

◆ $polygon

LGV_TZ_Lookup_Entity::$polygon

This is the exact polygon for the time zone. It is an array of simple 2-element floating point arrays, with the longitude of each element being [0], and the latitude being [1].

Definition at line 60 of file LGV_TZ_Lookup_Entity.class.php.

◆ $tzID

LGV_TZ_Lookup_Entity::$tzID

This is the standard TZ time zone designator that applies to this entity.

Definition at line 47 of file LGV_TZ_Lookup_Entity.class.php.


The documentation for this class was generated from the following file: