m_string = trim( $string ); } public function getDIType() { return SMWDataItem::TYPE_BLOB; } public function getString() { return $this->m_string; } public static function normalize( $text ) { return Normalizer::convertDoubleWidth( Normalizer::applyTransliteration( Normalizer::toLowercase( $text ) ) ); } public function getSortKey() { return $this->m_string; } /** * @see SMWDataItem::getSortKeyDataItem() * @return SMWDataItem */ public function getSortKeyDataItem() { return $this; } public function getSerialization() { return $this->m_string; } /** * Create a data item from the provided serialization string and type * ID. * @return SMWDIBlob */ public static function doUnserialize( $serialization ) { return new SMWDIBlob( $serialization ); } public function equals( SMWDataItem $di ) { if ( !( $di instanceof SMWDIBlob ) ) { return false; } return $di->getString() === $this->m_string; } }