/** * load() * @param integer $intElementId * @param string $strType * @param string $strElementId * @param integet $intVersion * @author Thomas Schedler <*****@*****.**> * @version 1.0 */ public function load($intElementId, $strType, $strElementId = null, $intVersion = null) { try { $this->strType = $strType; $this->getModel(); $objItemInternalLinksData = $this->objModel->loadInternalLinks($strElementId, $intVersion, $this->objElement->id); if (count($objItemInternalLinksData) > 0) { $this->objElement->objItemInternalLinks = $objItemInternalLinksData; $strValue = ''; foreach ($objItemInternalLinksData as $objItemInternalLink) { $strValue .= '[' . $objItemInternalLink->relationId . ']'; } $this->objElement->setValue($strValue); } } catch (Exception $exc) { $this->core->logger->err($exc); } }