Path

ez components / documentation / api reference / 2006.2 / persistentobject


eZ Components 2006.2

PersistentObject: ezcPersistentObjectProperty

[ Tutorial ] [ Class tree ] [ Element index ] [ ChangeLog ] [ Credits ]

Class: ezcPersistentObjectProperty

Defines a persistent object field. [source]

Constants

PHP_TYPE_ARRAY = 4
PHP_TYPE_FLOAT = 3
PHP_TYPE_INT = 2
PHP_TYPE_OBJECT = 5
PHP_TYPE_STRING = 1
VISIBILITY_PRIVATE = 1
VISIBILITY_PROPERTY = 4
VISIBILITY_PROTECTED = 2
VISIBILITY_PUBLIC = 3

Member Variables

public mixed $columnName = null
The name of the database field that stores the value.
public mixed $propertyName = null
The name of the PersistentObject property that holds the value in the PHP object.
public mixed $propertyType = null
The type of the PHP property..

Method Summary

public ezcPersistentObjectProperty __construct( [$columnName = ''], [$propertyName = ''], [$type = ''] )
Constructs a new PersistentObjectField
public static ezcPersistentObjectProperty __set_state( $array )
Returns a new instance of this class with the data specified by $array.

Methods

__construct

ezcPersistentObjectProperty __construct( [ $columnName = ''], [ $propertyName = ''], [ $type = ''] )
Constructs a new PersistentObjectField

Parameters

Name Type Description
$columnName  
$propertyName  
$type  

__set_state

ezcPersistentObjectProperty __set_state( $array )
Returns a new instance of this class with the data specified by $array.
$array contains all the data members of this class in the form: array('member_name'=>value).
__set_state makes this class exportable with var_export. var_export() generates code, that calls this method when it is parsed with PHP.

Last updated: Thu, 01 Nov 2007