SMWDIString Class Reference
[SMWDataItems]

This class implements (length restricted) string data items. More...

Inherits SMWDIBlob.

List of all members.

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


Detailed Description

This class implements (length restricted) string data items.

Since:
1.6
Author:
Markus Krötzsch

Definition at line 37 of file SMW_DI_String.php.


Constructor & Destructor Documentation

SMWDIString::__construct ( string  ) 

Constructor.

Exceptions:
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.


Member Function Documentation

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.

Returns:
integer that specifies the basic type of data item

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.

Returns:
SMWDIString

Reimplemented from SMWDIBlob.

Definition at line 65 of file SMW_DI_String.php.


Member Data Documentation

Definition at line 39 of file SMW_DI_String.php.

Referenced by __construct().


The documentation for this class was generated from the following file:

Generated on Sun Mar 18 07:15:43 2012 for Semantic MediaWiki by  doxygen 1.5.6