Inherits SMWDataItem.
Inherited by SMWDIString.
Public Member Functions | |
| __construct ($string) | |
| getDIType () | |
| Convenience method that returns a constant that defines the concrete class that implements this data item. | |
| getString () | |
| getSortKey () | |
| Return a value that can be used for sorting data of this type. | |
| getSortKeyDataItem () | |
| getSerialization () | |
| Get a UTF-8 encoded string serialization of this data item. | |
Static Public Member Functions | |
| static | doUnserialize ($serialization) |
| Create a data item from the provided serialization string and type ID. | |
Protected Attributes | |
| $m_string | |
Definition at line 15 of file SMW_DI_Blob.php.
| SMWDIBlob::__construct | ( | $ | string | ) |
| SMWDIBlob::getDIType | ( | ) |
Convenience method that returns a constant that defines the concrete class that implements this data item.
Used to switch when processing data items.
Reimplemented from SMWDataItem.
Reimplemented in SMWDIString.
Definition at line 27 of file SMW_DI_Blob.php.
References SMWDataItem::TYPE_BLOB.
| SMWDIBlob::getString | ( | ) |
Definition at line 31 of file SMW_DI_Blob.php.
| SMWDIBlob::getSortKey | ( | ) |
Return a value that can be used for sorting data of this type.
If the data is of a numerical type, the sorting must be done in numerical order. If the data is a string, the data must be sorted alphabetically.
Wiki pages are a special case in SMW. They are ordered by a sortkey that is assigned to them as a property value. When pages are sorted, this data should be used if possible.
Reimplemented from SMWDataItem.
Definition at line 35 of file SMW_DI_Blob.php.
| SMWDIBlob::getSortKeyDataItem | ( | ) |
Reimplemented from SMWDataItem.
Definition at line 43 of file SMW_DI_Blob.php.
| SMWDIBlob::getSerialization | ( | ) |
Get a UTF-8 encoded string serialization of this data item.
The serialisation should be concise and need not be pretty, but it must allow unserialization. Each subclass of SMWDataItem implements a static method doUnserialize() for this purpose.
Reimplemented from SMWDataItem.
Definition at line 47 of file SMW_DI_Blob.php.
| static SMWDIBlob::doUnserialize | ( | $ | serialization | ) | [static] |
Create a data item from the provided serialization string and type ID.
Reimplemented in SMWDIString.
Definition at line 56 of file SMW_DI_Blob.php.
SMWDIBlob::$m_string [protected] |
Definition at line 21 of file SMW_DI_Blob.php.
1.5.6