-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathNetwork.php
More file actions
42 lines (35 loc) · 728 Bytes
/
Copy pathNetwork.php
File metadata and controls
42 lines (35 loc) · 728 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/
namespace Piwik\Plugins\CampusGeoIP;
class Network {
public $ip;
public $cidr;
public $city;
public $campus;
public $region;
public $country;
public $org;
public $provider;
public $latitude;
public $longitude;
public $building;
public $floor;
public $note;
public $use;
public $disabled;
public $ts_created;
public $ts_last_edit;
public function __construct($networkData = []){
foreach($networkData as $k => $v){
$this->{$k} = $v;
}
}
public function isValid(){
return ($this->cidr !== null);
}
}