Public Member Functions | |
| __construct (SMWDataItem $dataItem, $comparator, $radius) | |
| Constructor. | |
| getQueryString ($asValue=false) | |
| prune (&$maxsize, &$maxdepth, &$log) | |
| getBounds () | |
| Returns the bounds of the area. | |
| getSQLCondition ($tableName, array $fieldNames, $dbs) | |
Protected Member Functions | |
| calculateBounds (SMWDIGeoCoord $dataItem, $radius) | |
| Sets the bounds fields to an array returned by SMAreaValueDescription::getBoundingBox. | |
Static Protected Member Functions | |
| static | getBoundingBox (array $centerCoordinates, $circleRadius) |
| Returns the lat and lon limits of a bounding box around a circle defined by the provided parameters. | |
| static | geoFunctionsAreAvailable () |
| Returns a boolean indicating if MapsGeoFunctions is available. | |
Protected Attributes | |
| $bounds = false | |
Definition at line 18 of file SM_AreaValueDescription.php.
| SMAreaValueDescription::__construct | ( | SMWDataItem $ | dataItem, | |
| $ | comparator, | |||
| $ | radius | |||
| ) |
Constructor.
| SMWDataItem | $dataItem | |
| string | $comparator | |
| string | $radius |
Reimplemented from SMWValueDescription.
Definition at line 38 of file SM_AreaValueDescription.php.
References calculateBounds().
| SMAreaValueDescription::calculateBounds | ( | SMWDIGeoCoord $ | dataItem, | |
| $ | radius | |||
| ) | [protected] |
Sets the bounds fields to an array returned by SMAreaValueDescription::getBoundingBox.
| SMWDIGeoCoord | $dataItem | |
| string | $radius |
Definition at line 55 of file SM_AreaValueDescription.php.
Referenced by __construct().
| SMAreaValueDescription::getQueryString | ( | $ | asValue = false |
) |
| Boolean | $asValue |
Reimplemented from SMWValueDescription.
Definition at line 69 of file SM_AreaValueDescription.php.
References SMWValueDescription::getDataItem(), and SMWDataValueFactory::newDataItemValue().
Referenced by prune().
| SMAreaValueDescription::prune | ( | &$ | maxsize, | |
| &$ | maxdepth, | |||
| &$ | log | |||
| ) |
Reimplemented from SMWDescription.
Definition at line 83 of file SM_AreaValueDescription.php.
References SMWDescription::getDepth(), SMWDescription::getPrintRequests(), getQueryString(), and SMWValueDescription::getSize().
| SMAreaValueDescription::getBounds | ( | ) |
Returns the bounds of the area.
Definition at line 105 of file SM_AreaValueDescription.php.
| SMAreaValueDescription::getSQLCondition | ( | $ | tableName, | |
| array $ | fieldNames, | |||
| $ | dbs | |||
| ) |
| string | $tableName | |
| array | $fieldNames | |
| DatabaseBase | or Database $dbs |
Definition at line 120 of file SM_AreaValueDescription.php.
References SMWValueDescription::getComparator(), SMWValueDescription::getDataItem(), and SMWDataItem::TYPE_GEO.
| static SMAreaValueDescription::getBoundingBox | ( | array $ | centerCoordinates, | |
| $ | circleRadius | |||
| ) | [static, protected] |
Returns the lat and lon limits of a bounding box around a circle defined by the provided parameters.
| array | $centerCoordinates Array containing non-directional float coordinates with lat and lon keys. | |
| float | $circleRadius The radius of the circle to create a bounding box for, in m. |
Definition at line 162 of file SM_AreaValueDescription.php.
| static SMAreaValueDescription::geoFunctionsAreAvailable | ( | ) | [static, protected] |
Returns a boolean indicating if MapsGeoFunctions is available.
Definition at line 183 of file SM_AreaValueDescription.php.
SMAreaValueDescription::$bounds = false [protected] |
Definition at line 27 of file SM_AreaValueDescription.php.
1.5.6