/** * @see SMWDataValue::loadDataItem() * * @param $dataitem SMWDataItem * * @return boolean */ protected function loadDataItem(SMWDataItem $dataItem) { if (!$dataItem instanceof SMWDIBlob) { return false; } $this->m_dataitem = $dataItem; $this->m_diProperties = array(); foreach (explode(';', $dataItem->getString()) as $propertyKey) { $property = null; try { $property = new SMWDIProperty($propertyKey); } catch (SMWDataItemException $e) { $property = new SMWDIProperty('Error'); $this->addError(wfMessage('smw_parseerror')->inContentLanguage()->text()); } if ($property instanceof SMWDIProperty) { // Find a possible redirect $this->m_diProperties[] = $property->getRedirectTarget(); } } $this->m_caption = false; return true; }