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
显示文件 Open project: scalr/scalr

Public Methods

Method 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

Protected Methods

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

Method Details

__call() public method

public __call ( $method, $args )

__set() public method

public __set ( $prop, $value )

__unset() public method

public __unset ( $prop )

getActual() public method

Returns actual state of the entity
public getActual ( ) : stdClass
return stdClass

getChanges() protected method

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

getIterator() public method

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

getPrimaryKey() abstract public method

Gets primary key
abstract public getPrimaryKey ( ) : string
return string Returns property name which is primary key

load() public method

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

save() abstract public method

Saves entity to storage
abstract public save ( )