Inherits SMWDIBlob.
Public Member Functions | |
| __construct ($string) | |
| Constructor. | |
| getDIType () | |
| Convenience method that returns a constant that defines the concrete class that implements this data item. | |
Static Public Member Functions | |
| static | doUnserialize ($serialization) |
| Create a data item from the provided serialization string and type ID. | |
Public Attributes | |
| const | MAXLENGTH = 255 |
Definition at line 37 of file SMW_DI_String.php.
| SMWDIString::__construct | ( | $ | string | ) |
Constructor.
| SMWStringLengthException | if the string is longer than SMWDIString::MAXLENGTH. The bytes are counted, not the (possibly multibyte) glyphs of UTF-8, since we care about byte length in (any) storage backend. |
Reimplemented from SMWDIBlob.
Definition at line 49 of file SMW_DI_String.php.
References MAXLENGTH.
| SMWDIString::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 SMWDIBlob.
Definition at line 56 of file SMW_DI_String.php.
References SMWDataItem::TYPE_STRING.
| static SMWDIString::doUnserialize | ( | $ | serialization | ) | [static] |
Create a data item from the provided serialization string and type ID.
Reimplemented from SMWDIBlob.
Definition at line 65 of file SMW_DI_String.php.
| const SMWDIString::MAXLENGTH = 255 |
1.5.6