/** * save() * @param integer $intElementId * @param string $strType * @param string $strElementId * @param integet $intVersion * @author Thomas Schedler <*****@*****.**> * @version 1.0 */ public function save($intElementId, $strType, $strElementId = null, $intVersion = null) { try { $this->strType = $strType; $this->getModel(); $this->objModel->deleteInternalLinks($strElementId, $intVersion, $this->objElement->id); if ($this->objElement->getValue() != '') { $this->objModel->addInternalLinks($this->objElement->getValue(), $strElementId, $intVersion, $this->objElement->id); } $this->load($intElementId, $strType, $strElementId, $intVersion); } catch (Exception $exc) { $this->core->logger->err($exc); } }