PHP Class GDS\Entity

Author: Tom Walder ([email protected])
Afficher le fichier Open project: tomwalder/php-gds Class Usage Examples

Méthodes publiques

Méthode Description
__get ( $str_key ) : null Magic getter.
__isset ( $str_key ) : boolean Is a data value set?
__set ( $str_key, $mix_value ) Magic setter.
getAncestry ( ) : null | array Get the ancestry of the entity
getData ( ) : array Get the entire data array
getKeyId ( ) : string Get the key ID
getKeyName ( ) : string Get the key name
getKind ( ) : null Get the Entity Kind
getSchema ( ) : Schema | null The Schema for the Entity, if known.
setAncestry ( $mix_path ) Set the Entity's ancestry. This either an array of paths OR another Entity
setKeyId ( $str_key_id ) Set the key ID
setKeyName ( $str_key_name ) Set the key name
setKind ( $str_kind )
setSchema ( Schema $obj_schema ) Set the Schema for the Entity

Method Details

__get() public méthode

. sorry
public __get ( $str_key ) : null
$str_key
Résultat null

__isset() public méthode

Is a data value set?
public __isset ( $str_key ) : boolean
$str_key
Résultat boolean

__set() public méthode

. sorry
public __set ( $str_key, $mix_value )
$str_key
$mix_value

getAncestry() public méthode

Get the ancestry of the entity
public getAncestry ( ) : null | array
Résultat null | array

getData() public méthode

Get the entire data array
public getData ( ) : array
Résultat array

getKeyId() public méthode

Get the key ID
public getKeyId ( ) : string
Résultat string

getKeyName() public méthode

Get the key name
public getKeyName ( ) : string
Résultat string

getKind() public méthode

Get the Entity Kind
public getKind ( ) : null
Résultat null

getSchema() public méthode

The Schema for the Entity, if known.
public getSchema ( ) : Schema | null
Résultat Schema | null

setAncestry() public méthode

Set the Entity's ancestry. This either an array of paths OR another Entity
public setAncestry ( $mix_path )
$mix_path

setKeyId() public méthode

Set the key ID
public setKeyId ( $str_key_id )
$str_key_id

setKeyName() public méthode

Set the key name
public setKeyName ( $str_key_name )
$str_key_name

setKind() public méthode

public setKind ( $str_kind )
$str_kind

setSchema() public méthode

Set the Schema for the Entity
public setSchema ( Schema $obj_schema )
$obj_schema Schema