Fixed vlan display in Cpeprovisioning
This commit is contained in:
@@ -33,6 +33,22 @@ class Termination extends mfBaseModel {
|
||||
return $address;
|
||||
}
|
||||
|
||||
public function getWorkflowvalue($itemname, $type = "string") {
|
||||
if(array_key_exists($itemname, $this->getProperty("workflowitems"))) {
|
||||
return $this->getProperty("workflowitems")[$itemname]->value->{"value_$type"};
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
public function getPop() {
|
||||
$pop_id = $this->getWorkflowvalue('pop_id');
|
||||
if(!$pop_id) {
|
||||
return null;
|
||||
}
|
||||
return new Pop($pop_id);
|
||||
}
|
||||
|
||||
public function getNewObjectCode() {
|
||||
if(!$this->building_id) {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user