public function getVirtualInterface() { $this->__load(); return parent::getVirtualInterface(); }
/** * You can add `OSS_Message`s here and redirect to a custom destination after a * successful add / edit operation. * * @param IXP_Form_Interface_Vlan $form The form object * @param \Entities\VlanInterface $object The Doctrine2 entity (being edited or blank for add) * @param bool $isEdit True of we are editing an object, false otherwise * @return bool `false` for standard message and redirection, otherwise redirect within this function */ protected function addDestinationOnSuccess($form, $object, $isEdit) { if ($this->getParam('rtn', false) == 'vli') { return false; } $this->addMessage('VLAN interface successfuly ' . ($isEdit ? 'edited.' : 'added.'), OSS_Message::SUCCESS); $this->redirectAndEnsureDie('virtual-interface/edit/id/' . $object->getVirtualInterface()->getId()); }