PHP Class phpDataMapper_Entity, phpDataMapper

Afficher le fichier Open project: vlucas/phpDataMapper Class Usage Examples

Protected Properties

Свойство Type Description
$_data
$_dataModified
$_getterIgnore
$_loaded
$_setterIgnore

Méthodes publiques

Méthode Description
__construct ( $data = null ) Constructor function
__get ( $var ) Getter
__isset ( $key ) Enable isset() for object properties
__set ( $var, $value ) Setter
data ( $data = null ) Sets an object or array
dataModified ( ) : array Returns array of key => value pairs for row data
loaded ( boolean $loaded ) Mark row as 'loaded' Any data set after row is loaded will be modified data
toArray ( ) : array Returns array of key => value pairs for row data
toJson ( ) Return JSON-encoded row (convenience function) Only works for basic objects right now

Method Details

__construct() public méthode

Constructor function
public __construct ( $data = null )

__get() public méthode

Getter
public __get ( $var )

__isset() public méthode

Enable isset() for object properties
public __isset ( $key )

__set() public méthode

Setter
public __set ( $var, $value )

data() public méthode

Sets an object or array
public data ( $data = null )

dataModified() public méthode

Returns array of key => value pairs for row data
public dataModified ( ) : array
Résultat array

loaded() public méthode

Mark row as 'loaded' Any data set after row is loaded will be modified data
public loaded ( boolean $loaded )
$loaded boolean

toArray() public méthode

Returns array of key => value pairs for row data
public toArray ( ) : array
Résultat array

toJson() public méthode

Return JSON-encoded row (convenience function) Only works for basic objects right now
public toJson ( )

Property Details

$_data protected_oe property

protected $_data

$_dataModified protected_oe property

protected $_dataModified

$_getterIgnore protected_oe property

protected $_getterIgnore

$_loaded protected_oe property

protected $_loaded

$_setterIgnore protected_oe property

protected $_setterIgnore