PersistenceOperation Class Reference

Detailed Description

A PersistenceOperation instance holds data necessary to accomplish an operation on the persistent store.

Author
ingo herwig ingo@.nosp@m.wemo.nosp@m.ve.co.nosp@m.m

Definition at line 21 of file PersistenceOperation.php.

+ Inheritance diagram for PersistenceOperation:

Public Member Functions

 __construct ($type, array $values, array $criteria)
 
 getType ()
 
 getValues ()
 
 getCriteria ()
 
 __toString ()
 

Protected Attributes

 $type = null
 
 $values = null
 
 $criteria = null
 

Constructor & Destructor Documentation

◆ __construct()

__construct (   $type,
array  $values,
array  $criteria 
)

Constructor.

Parameters
$typeThe type of PersistentObject on which the operation should be executed
$valuesAn array of attribute/value pairs to apply
$criteriaAn array of criteria instances to select the objects on which the operation will be executed

Definition at line 35 of file PersistenceOperation.php.

Member Function Documentation

◆ getType()

getType ( )

Get the type of PersistentObject on which the operation should be executed.

Returns
String

Definition at line 45 of file PersistenceOperation.php.

◆ getValues()

getValues ( )

Get values to apply.

Returns
Array of attribute/value pairs

Definition at line 53 of file PersistenceOperation.php.

◆ getCriteria()

getCriteria ( )

Get criteria to match.

Returns
Array of Criteria instances

Definition at line 61 of file PersistenceOperation.php.

◆ __toString()

__toString ( )

Get a string representation of the operation.

Returns
String

Definition at line 69 of file PersistenceOperation.php.

Member Data Documentation

◆ $type

$type = null
protected

Definition at line 23 of file PersistenceOperation.php.

◆ $values

$values = null
protected

Definition at line 24 of file PersistenceOperation.php.

◆ $criteria

$criteria = null
protected

Definition at line 25 of file PersistenceOperation.php.