Public Member Functions

RepresentativeDAO Class Reference
[Monograph]

Operations for retrieving and modifying Representative (suppliers and agents) objects. More...

List of all members.

Public Member Functions

_fromRow (&$row, $callHooks=true)
 deleteById ($entryId)
 deleteObject ($representative)
getAgentsByMonographId ($monographId)
getById ($representativeId, $monographId=null)
 getInsertRepresentativeId ()
getSuppliersByMonographId ($monographId)
 insertObject (&$representative)
 newDataObject ()
 RepresentativeDAO ()
 updateObject (&$representative)

Detailed Description

Operations for retrieving and modifying Representative (suppliers and agents) objects.

See also:
Representative

Definition at line 18 of file RepresentativeDAO.inc.php.


Member Function Documentation

& RepresentativeDAO._fromRow ( &$  row,
callHooks = true 
)

Internal function to return a Representative object from a row.

Parameters:
$row array
$callHooks boolean
Returns:
Representative

Definition at line 94 of file RepresentativeDAO.inc.php.

References newDataObject().

Referenced by getById().

RepresentativeDAO.deleteById ( entryId  ) 

delete a representative entry by id.

Parameters:
$entryId int

Definition at line 185 of file RepresentativeDAO.inc.php.

Referenced by deleteObject().

RepresentativeDAO.deleteObject ( representative  ) 

Delete a representative entry by object.

Parameters:
$representative Representative

Definition at line 177 of file RepresentativeDAO.inc.php.

References deleteById().

& RepresentativeDAO.getAgentsByMonographId ( monographId  ) 

Retrieve all agent representatives for a monograph.

Parameters:
$monographId int
Returns:
DAOResultFactory containing matching representatives.

Definition at line 72 of file RepresentativeDAO.inc.php.

& RepresentativeDAO.getById ( representativeId,
monographId = null 
)

Retrieve a representative entry by id.

Parameters:
$representativeId int
$monographId optional int
Returns:
Representative

Definition at line 32 of file RepresentativeDAO.inc.php.

References _fromRow().

RepresentativeDAO.getInsertRepresentativeId (  ) 

Get the ID of the last inserted representative entry.

Returns:
int

Definition at line 195 of file RepresentativeDAO.inc.php.

Referenced by insertObject().

& RepresentativeDAO.getSuppliersByMonographId ( monographId  ) 

Retrieve all supplier representatives for a monograph.

Parameters:
$monographId int
Returns:
DAOResultFactory containing matching representatives.

Definition at line 59 of file RepresentativeDAO.inc.php.

RepresentativeDAO.insertObject ( &$  representative  ) 

Insert a new representative entry.

Parameters:
$representative Representative

Definition at line 117 of file RepresentativeDAO.inc.php.

References getInsertRepresentativeId().

RepresentativeDAO.newDataObject (  ) 

Construct a new data object corresponding to this DAO.

Returns:
Representative

Definition at line 84 of file RepresentativeDAO.inc.php.

Referenced by _fromRow().

RepresentativeDAO.RepresentativeDAO (  ) 

Constructor

Definition at line 22 of file RepresentativeDAO.inc.php.

RepresentativeDAO.updateObject ( &$  representative  ) 

Update an existing representative entry.

Parameters:
$representative Representative

Definition at line 145 of file RepresentativeDAO.inc.php.


The documentation for this class was generated from the following file: