Class PhpiCalLib_DataType

Description

Base class for all PhpiCalLib data types

Located in /datatypes.php (line 65)


	
			
Direct descendents
Class Description
PhpiCalLib_DataTypes_Date The date data type.
PhpiCalLib_DataTypes_DateTime The date-time data type.
PhpiCalLib_DataTypes_Duration The dur-value data type.
PhpiCalLib_DataTypes_Text The text data type.
PhpiCalLib_DataTypes_Time The time data type.
Variable Summary
static string $IanaTokenRegex
static array $TypeMap
mixed $DataType
Method Summary
static string FromDataType (integer $Type)
static int ToDataType (string $Name)
Variables
static string $IanaTokenRegex = '[a-zA-Z0-9-]+' (line 75)

Regex to capture validate an iana-token

static array $TypeMap = array(
PHPICALLIB_DATATYPE_BINARY => 'BINARY',
PHPICALLIB_DATATYPE_BOOLEAN => 'BOOLEAN',
PHPICALLIB_DATATYPE_CAL_ADDRESS => 'CAL-ADDRESS',
PHPICALLIB_DATATYPE_DATE => 'DATE',
PHPICALLIB_DATATYPE_DATE_TIME => 'DATE-TIME',
PHPICALLIB_DATATYPE_DURATION => 'DURATION',
PHPICALLIB_DATATYPE_FLOAT => 'FLOAT',
PHPICALLIB_DATATYPE_INTEGER => 'INTEGER',
PHPICALLIB_DATATYPE_PERIOD => 'PERIOD',
PHPICALLIB_DATATYPE_RECUR => 'RECUR',
PHPICALLIB_DATATYPE_TEXT => 'TEXT',
PHPICALLIB_DATATYPE_TIME => 'TIME',
PHPICALLIB_DATATYPE_URI => 'URI',
PHPICALLIB_DATATYPE_UTC_OFFSET => 'UTC-OFFSET')
(line 82)

Map a data type id to it's string name.

  • var: Keyed by PHPICALLIB_DATATYPE_?, value is a string
  • access: public
mixed $DataType = 0 (line 66)
  • access: protected
Methods
static method FromDataType (line 128)

Convert a data type to it's defined name

  • return: A "name" RFC2445 token
  • access: public
static string FromDataType (integer $Type)
  • integer $Type: one of the PHPICALLIB_DATATYPE_* values
static method ToDataType (line 106)

Convert a data type name to it's defined type

  • return: one of the PHPICALLIB_DATATYPE_* values
  • access: public
static int ToDataType (string $Name)
  • string $Name: a "name" RFC2445 token

Documentation generated on Tue, 01 Apr 2008 00:20:06 +0100 by phpDocumentor 1.4.0