/** * 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->getModelWidgets(); $objUrlData = $this->objModelWidgets->loadWidgetUrl($strElementId, $intVersion); if (count($objUrlData) > 0) { $objUrl = $objUrlData->current(); $this->objElement->setValue('/' . strtolower($objUrl->languageCode) . '/' . $objUrl->url); } } catch (Exception $exc) { $this->core->logger->err($exc); } }