Can now save Network Roles

This commit is contained in:
Frank Schubert
2021-07-01 22:40:39 +02:00
parent fc9064ea91
commit dd8db7904d
8 changed files with 242 additions and 134 deletions

View File

@@ -22,18 +22,6 @@ class Network extends mfBaseModel {
//var_dump($this->addresstypes);exit;
}
public function loadRoles() {
if(!$this->id) {
return false;
}
$types = AddresstypeModel::search(['addresstype' => TT_NETWORK_ROLES]);
var_dump($types);exit;
foreach($types as $type) {
}
}
public function getProperty($name) {
if($this->$name == null) {

View File

@@ -18,6 +18,8 @@ class NetworkController extends mfBaseController {
$this->layout()->set("owners", AddressModel::search(['addresstype' => ["netowner"]]));
$this->layout()->set("networks", NetworkModel::getAll());
/*$net = new Network(1);
$at = $net->addresstypes; //[1]->addresstype->address;
var_dump($at);exit;*/