TYPO3  7.6
Static Public Member Functions | Public Attributes | Private Member Functions | List of all members
PropertyType Class Reference

Static Public Member Functions

static nameFromValue ($type)
 
static valueFromName ($name)
 
static valueFromType ($type)
 

Public Attributes

const UNDEFINED = 0
 
const STRING = 1
 
const BINARY = 2
 
const LONG = 3
 
const DOUBLE = 4
 
const DATE = 5
 
const BOOLEAN = 6
 
const NAME = 7
 
const PATH = 8
 
const REFERENCE = 9
 
const WEAKREFERENCE = 10
 
const URI = 11
 
const DECIMAL = 12
 
const INTEGER = 13
 
const TYPENAME_UNDEFINED = 'undefined'
 
const TYPENAME_STRING = 'String'
 
const TYPENAME_BINARY = 'Binary'
 
const TYPENAME_LONG = 'Long'
 
const TYPENAME_DOUBLE = 'Double'
 
const TYPENAME_DATE = 'Date'
 
const TYPENAME_BOOLEAN = 'Boolean'
 
const TYPENAME_NAME = 'Name'
 
const TYPENAME_PATH = 'Path'
 
const TYPENAME_REFERENCE = 'Reference'
 
const TYPENAME_WEAKREFERENCE = 'WeakReference'
 
const TYPENAME_URI = 'URI'
 
const TYPENAME_DECIMAL = 'Decimal'
 
const TYPENAME_INTEGER = 'Integer'
 

Private Member Functions

 __construct ()
 

Detailed Description

The property types supported by the JCR standard.

The STRING property type is used to store strings. BINARY properties are used to store binary data. The LONG property type is used to store integers. The DECIMAL property type is used to store precise decimal numbers. The DOUBLE property type is used to store floating point numbers. The DATE property type is used to store time and date information. See 4.2.6.1 Date in the specification. The BOOLEAN property type is used to store boolean values. A NAME is a pairing of a namespace and a local name. When read, the namespace is mapped to the current prefix. See 4.2.6.2 Name in the specification. A PATH property is an ordered list of path elements. A path element is a NAME with an optional index. When read, the NAMEs within the path are mapped to their current prefix. A path may be absolute or relative. See 4.2.6.3 Path in the specification. A REFERENCE property stores the identifier of a referenceable node (one having type mix:referenceable), which must exist within the same workspace or session as the REFERENCE property. A REFERENCE property enforces this referential integrity by preventing (in level 2 implementations) the removal of its target node. See 4.2.6.4 Reference in the specification. A WEAKREFERENCE property stores the identifier of a referenceable node (one having type mix:referenceable). A WEAKREFERENCE property does not enforce referential integrity. See 4.2.6.5 Weak Reference in the specification. A URI property is identical to STRING property except that it only accepts values that conform to the syntax of a URI-reference as defined in RFC 3986. See also 4.2.6.6 URI in the specification. UNDEFINED can be used within a property definition (see 4.7.5 Property Definitions) to specify that the property in question may be of any type. However, it cannot be the actual type of any property instance. For example it will never be returned by Property.getType() and (in level 2 implementations) it cannot be assigned as the type when creating a new property.

Definition at line 34 of file PropertyType.php.

Constructor & Destructor Documentation

__construct ( )
private

Make instantiation impossible...

Definition at line 206 of file PropertyType.php.

Member Function Documentation

static nameFromValue (   $type)
static

Returns the name of the specified type, as used in serialization.

Parameters
int$typetype the property type
Returns
string name of the specified type

Definition at line 216 of file PropertyType.php.

static valueFromName (   $name)
static

Returns the numeric constant value of the type with the specified name.

Parameters
string$nameThe name of the property type
Returns
int The numeric constant value

Definition at line 272 of file PropertyType.php.

static valueFromType (   $type)
static

Returns the numeric constant value of the type for the given PHP type name as returned by gettype().

Parameters
string$type
Returns
int

Definition at line 329 of file PropertyType.php.

Member Data Documentation

const BINARY = 2

BINARY properties are used to store binary data.

Definition at line 53 of file PropertyType.php.

const BOOLEAN = 6

The BOOLEAN property type is used to store boolean values.

Definition at line 73 of file PropertyType.php.

const DATE = 5

The DATE property type is used to store time and date information.

Definition at line 68 of file PropertyType.php.

const DECIMAL = 12

The DECIMAL property type is used to store precise decimal numbers.

WE DO NOT USE THIS IN EXTBASE!

Definition at line 124 of file PropertyType.php.

const DOUBLE = 4

The DOUBLE property type is used to store floating point numbers.

Definition at line 63 of file PropertyType.php.

const INTEGER = 13

The INTEGER property type is used to store precise decimal numbers.

WE DO NOT USE THIS IN EXTBASE!

Definition at line 131 of file PropertyType.php.

const LONG = 3

The LONG property type is used to store integers.

Definition at line 58 of file PropertyType.php.

const NAME = 7

A NAME is a pairing of a namespace and a local name. When read, the namespace is mapped to the current prefix.

WE DO NOT USE THIS IN EXTBASE!

Definition at line 81 of file PropertyType.php.

const PATH = 8

A PATH property is an ordered list of path elements. A path element is a NAME with an optional index. When read, the NAMEs within the path are mapped to their current prefix. A path may be absolute or relative.

WE DO NOT USE THIS IN EXTBASE!

Definition at line 90 of file PropertyType.php.

const REFERENCE = 9

A REFERENCE property stores the identifier of a referenceable node (one having type mix:referenceable), which must exist within the same workspace or session as the REFERENCE property. A REFERENCE property enforces this referential integrity by preventing the removal of its target node.

Definition at line 99 of file PropertyType.php.

const STRING = 1

The STRING property type is used to store strings.

Definition at line 48 of file PropertyType.php.

const TYPENAME_BINARY = 'Binary'

String constant for type name as used in serialization.

Definition at line 146 of file PropertyType.php.

const TYPENAME_BOOLEAN = 'Boolean'

String constant for type name as used in serialization.

Definition at line 166 of file PropertyType.php.

const TYPENAME_DATE = 'Date'

String constant for type name as used in serialization.

Definition at line 161 of file PropertyType.php.

const TYPENAME_DECIMAL = 'Decimal'

String constant for type name as used in serialization.

Definition at line 196 of file PropertyType.php.

const TYPENAME_DOUBLE = 'Double'

String constant for type name as used in serialization.

Definition at line 156 of file PropertyType.php.

const TYPENAME_INTEGER = 'Integer'

String constant for type name as used in serialization.

Definition at line 201 of file PropertyType.php.

const TYPENAME_LONG = 'Long'

String constant for type name as used in serialization.

Definition at line 151 of file PropertyType.php.

const TYPENAME_NAME = 'Name'

String constant for type name as used in serialization.

Definition at line 171 of file PropertyType.php.

const TYPENAME_PATH = 'Path'

String constant for type name as used in serialization.

Definition at line 176 of file PropertyType.php.

const TYPENAME_REFERENCE = 'Reference'

String constant for type name as used in serialization.

Definition at line 181 of file PropertyType.php.

const TYPENAME_STRING = 'String'

String constant for type name as used in serialization.

Definition at line 141 of file PropertyType.php.

const TYPENAME_UNDEFINED = 'undefined'

String constant for type name as used in serialization.

Definition at line 136 of file PropertyType.php.

const TYPENAME_URI = 'URI'

String constant for type name as used in serialization.

Definition at line 191 of file PropertyType.php.

const TYPENAME_WEAKREFERENCE = 'WeakReference'

String constant for type name as used in serialization.

Definition at line 186 of file PropertyType.php.

const UNDEFINED = 0

This constant can be used within a property definition to specify that the property in question may be of any type. However, it cannot be the actual type of any property instance. For example, it will never be returned by Property::getType and it cannot be assigned as the type when creating a new property.

Definition at line 43 of file PropertyType.php.

const URI = 11

A URI property is identical to STRING property except that it only accepts values that conform to the syntax of a URI-reference as defined in RFC 3986.

WE DO NOT USE THIS IN EXTBASE!

Definition at line 117 of file PropertyType.php.

const WEAKREFERENCE = 10

A WEAKREFERENCE property stores the identifier of a referenceable node (one having type mix:referenceable). A WEAKREFERENCE property does not enforce referential integrity.

WE DO NOT USE THIS IN EXTBASE!

Definition at line 108 of file PropertyType.php.