PHP Класс Doctrine\OXM\Event\PreUpdateEventArgs

С версии: 2.0
Автор: Roman Borschel ([email protected])
Автор: Benjamin Eberlei ([email protected])
Автор: Richard Fullmer ([email protected])
Наследование: extends LifecycleEventArgs
Показать файл Открыть проект

Открытые методы

Метод Описание
__construct ( object $entity, XmlEntityManager $xem, array &$changeSet )
getEntityChangeSet ( )
getNewValue ( string $field ) : mixed Get the new value of the changeset of the changed field.
getOldValue ( string $field ) : mixed Get the old value of the changeset of the changed field.
hasChangedField ( $field ) : boolean Field has a changeset?
setNewValue ( string $field, mixed $value ) Set the new value of this field.

Приватные методы

Метод Описание
assertValidField ( $field )

Описание методов

__construct() публичный Метод

public __construct ( object $entity, XmlEntityManager $xem, array &$changeSet )
$entity object
$xem Doctrine\OXM\XmlEntityManager
$changeSet array

getEntityChangeSet() публичный Метод

public getEntityChangeSet ( )

getNewValue() публичный Метод

Get the new value of the changeset of the changed field.
public getNewValue ( string $field ) : mixed
$field string
Результат mixed

getOldValue() публичный Метод

Get the old value of the changeset of the changed field.
public getOldValue ( string $field ) : mixed
$field string
Результат mixed

hasChangedField() публичный Метод

Field has a changeset?
public hasChangedField ( $field ) : boolean
Результат boolean

setNewValue() публичный Метод

Set the new value of this field.
public setNewValue ( string $field, mixed $value )
$field string
$value mixed