var $email;
var $enabled;
- function Person($person) {
+ function __construct($person) {
$this->roles = $person['role_ids'];
$this->person_id = $person['person_id'];
$this->first_name = $person['first_name'];
class PCU {
var $data;
- function PCU($pcu) {
+ function __construct($pcu) {
$this->data = $pcu;
}
class Address {
var $data;
- function Address($address) {
+ function __construct($address) {
$this->data = $address;
}
var $pcu_ids;
var $data;
- function Node($node) {
+ function __construct($node) {
global $plc, $api, $adm;
$this->data = $node;
+ $this->node_type = $node['node_type'];
$this->model = $node['model'];
$this->node_id = $node['node_id'];
$this->hostname = $node['hostname'];
$this->dns1 = $nnet['dns1'];
$this->dns2 = $nnet['dns2'];
$this->method = $nnet['method'];
+ $this->interface_id = $nnet['interface_id'];
}
}
}
class Slice {
var $data;
- function Slice($val) {
+ function __construct($val) {
$this->data = $val;
}
var $site_id;
var $data;
- function Site($site_id) {
+ function __construct($site_id) {
global $plc, $api, $adm;
$site_info= $adm->GetSites( array( intval($site_id) ) );
$this->data = $site_info[0];