PHP Class Scalr\Upgrade\AbstractEntity

Since: 4.5.0 (10.10.2013)
Author: Vitaliy Demidov ([email protected])
Inheritance: extends Scalr\Upgrade\AbstractGetter, implements IteratorAggregat\IteratorAggregate
Afficher le fichier Open project: scalr/scalr

Méthodes publiques

Méthode Description
__call ( $method, $args )
__set ( $prop, $value )
__unset ( $prop )
getActual ( ) : stdClass Returns actual state of the entity
getIterator ( )
getPrimaryKey ( ) : string Gets primary key
load ( array | object $obj ) Loads an entity from array or object
save ( ) Saves entity to storage

Méthodes protégées

Méthode Description
getChanges ( ) : EntityChangesIterator Gets changes bewteen real and database state of the entity

Method Details

__call() public méthode

public __call ( $method, $args )

__set() public méthode

public __set ( $prop, $value )

__unset() public méthode

public __unset ( $prop )

getActual() public méthode

Returns actual state of the entity
public getActual ( ) : stdClass
Résultat stdClass

getChanges() protected méthode

Gets changes bewteen real and database state of the entity
protected getChanges ( ) : EntityChangesIterator
Résultat EntityChangesIterator Returns iterator over the changes

getIterator() public méthode

See also: IteratorAggregate::getIterator()
public getIterator ( )

getPrimaryKey() abstract public méthode

Gets primary key
abstract public getPrimaryKey ( ) : string
Résultat string Returns property name which is primary key

load() public méthode

Loads an entity from array or object
public load ( array | object $obj )
$obj array | object Source data

save() abstract public méthode

Saves entity to storage
abstract public save ( )