public function SmartIpLocation::__construct in Smart IP 8.4
Same name and namespace in other branches
- 8.2 src/SmartIpLocation.php \Drupal\smart_ip\SmartIpLocation::__construct()
- 8.3 src/SmartIpLocation.php \Drupal\smart_ip\SmartIpLocation::__construct()
Constructs Smart IP location.
Parameters
array $values: Array of values for the Smart IP location.
File
- src/
SmartIpLocation.php, line 142 - Contains \Drupal\smart_ip\SmartIpLocation.
Class
- SmartIpLocation
- Implements wrapper and utility methods for Smart IP's data location.
Namespace
Drupal\smart_ipCode
public function __construct(array $values = []) {
if (!empty($values)) {
$this
->setData($values);
}
else {
// Populate its location variables with stored data.
$this
->getData(FALSE);
}
}