PropertyType

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.

Internal

only to be used within Extbase, not part of TYPO3 Core API.

Table of Contents

Constants

BINARY  = 2
BINARY properties are used to store binary data.
BOOLEAN  = 6
The BOOLEAN property type is used to store boolean values.
DATE  = 5
The DATE property type is used to store time and date information.
DECIMAL  = 12
The DECIMAL property type is used to store precise decimal numbers.
DOUBLE  = 4
The DOUBLE property type is used to store floating point numbers.
INTEGER  = 13
The INTEGER property type is used to store precise decimal numbers.
LONG  = 3
The LONG property type is used to store integers.
NAME  = 7
A NAME is a pairing of a namespace and a local name. When read, the namespace is mapped to the current prefix.
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.
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.
STRING  = 1
The STRING property type is used to store strings.
TYPENAME_BINARY  = 'Binary'
String constant for type name as used in serialization.
TYPENAME_BOOLEAN  = 'Boolean'
String constant for type name as used in serialization.
TYPENAME_DATE  = 'Date'
String constant for type name as used in serialization.
TYPENAME_DECIMAL  = 'Decimal'
String constant for type name as used in serialization.
TYPENAME_DOUBLE  = 'Double'
String constant for type name as used in serialization.
TYPENAME_INTEGER  = 'Integer'
String constant for type name as used in serialization.
TYPENAME_LONG  = 'Long'
String constant for type name as used in serialization.
TYPENAME_NAME  = 'Name'
String constant for type name as used in serialization.
TYPENAME_PATH  = 'Path'
String constant for type name as used in serialization.
TYPENAME_REFERENCE  = 'Reference'
String constant for type name as used in serialization.
TYPENAME_STRING  = 'String'
String constant for type name as used in serialization.
TYPENAME_UNDEFINED  = 'undefined'
String constant for type name as used in serialization.
TYPENAME_URI  = 'URI'
String constant for type name as used in serialization.
TYPENAME_WEAKREFERENCE  = 'WeakReference'
String constant for type name as used in serialization.
UNDEFINED  = 0
This constant can be used within a property definition to specify that the property in question may be of any type.
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.
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.

Methods

nameFromValue()  : string
Returns the name of the specified type, as used in serialization.
valueFromName()  : int
Returns the numeric constant value of the type with the specified name.
valueFromType()  : int
Returns the numeric constant value of the type for the given PHP type name as returned by gettype().

Constants

BINARY

BINARY properties are used to store binary data.

public mixed BINARY = 2

BOOLEAN

The BOOLEAN property type is used to store boolean values.

public mixed BOOLEAN = 6

DATE

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

public mixed DATE = 5

DECIMAL

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

public mixed DECIMAL = 12

WE DO NOT USE THIS IN EXTBASE!

DOUBLE

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

public mixed DOUBLE = 4

INTEGER

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

public mixed INTEGER = 13

WE DO NOT USE THIS IN EXTBASE!

LONG

The LONG property type is used to store integers.

public mixed LONG = 3

NAME

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

public mixed NAME = 7

WE DO NOT USE THIS IN EXTBASE!

PATH

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.

public mixed PATH = 8

WE DO NOT USE THIS IN EXTBASE!

REFERENCE

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.

public mixed REFERENCE = 9

STRING

The STRING property type is used to store strings.

public mixed STRING = 1

TYPENAME_BINARY

String constant for type name as used in serialization.

public mixed TYPENAME_BINARY = 'Binary'

TYPENAME_BOOLEAN

String constant for type name as used in serialization.

public mixed TYPENAME_BOOLEAN = 'Boolean'

TYPENAME_DATE

String constant for type name as used in serialization.

public mixed TYPENAME_DATE = 'Date'

TYPENAME_DECIMAL

String constant for type name as used in serialization.

public mixed TYPENAME_DECIMAL = 'Decimal'

TYPENAME_DOUBLE

String constant for type name as used in serialization.

public mixed TYPENAME_DOUBLE = 'Double'

TYPENAME_INTEGER

String constant for type name as used in serialization.

public mixed TYPENAME_INTEGER = 'Integer'

TYPENAME_LONG

String constant for type name as used in serialization.

public mixed TYPENAME_LONG = 'Long'

TYPENAME_NAME

String constant for type name as used in serialization.

public mixed TYPENAME_NAME = 'Name'

TYPENAME_PATH

String constant for type name as used in serialization.

public mixed TYPENAME_PATH = 'Path'

TYPENAME_REFERENCE

String constant for type name as used in serialization.

public mixed TYPENAME_REFERENCE = 'Reference'

TYPENAME_STRING

String constant for type name as used in serialization.

public mixed TYPENAME_STRING = 'String'

TYPENAME_UNDEFINED

String constant for type name as used in serialization.

public mixed TYPENAME_UNDEFINED = 'undefined'

TYPENAME_URI

String constant for type name as used in serialization.

public mixed TYPENAME_URI = 'URI'

TYPENAME_WEAKREFERENCE

String constant for type name as used in serialization.

public mixed TYPENAME_WEAKREFERENCE = 'WeakReference'

UNDEFINED

This constant can be used within a property definition to specify that the property in question may be of any type.

public mixed UNDEFINED = 0

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.

URI

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.

public mixed URI = 11

WE DO NOT USE THIS IN EXTBASE!

WEAKREFERENCE

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

public mixed WEAKREFERENCE = 10

WE DO NOT USE THIS IN EXTBASE!

Methods

nameFromValue()

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

public static nameFromValue(int $type) : string
Parameters
$type : int

type the property type

Return values
string

name of the specified type

valueFromName()

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

public static valueFromName(string $name) : int
Parameters
$name : string

The name of the property type

Return values
int

The numeric constant value

valueFromType()

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

public static valueFromType(string $type) : int
Parameters
$type : string
Return values
int

        
On this page

Search results