Open Journal Systems  2.4.4
 All Classes Namespaces Functions Variables Groups Pages
ReviewFormResponseDAO Class Reference
Inheritance diagram for ReviewFormResponseDAO:
DAO

Public Member Functions

_returnReviewFormResponseFromRow (&$row)
 
 deleteById ($reviewId, $reviewFormElementId)
 
 deleteByReviewFormElementId ($reviewFormElementId)
 
 deleteByReviewId ($reviewId)
 
 deleteObject (&$reviewFormResponse)
 
getReviewFormResponse ($reviewId, $reviewFormElementId)
 
getReviewReviewFormResponseValues ($reviewId)
 
 insertObject (&$reviewFormResponse)
 
 insertReviewFormResponse (&$reviewFormResponse)
 
 newDataObject ()
 
 ReviewFormResponseDAO ()
 
 reviewFormResponseExists ($reviewId, $reviewFormElementId=null)
 
 updateObject (&$reviewFormResponse)
 
- Public Member Functions inherited from DAO
 concat ()
 
 convertFromDB ($value, $type)
 
 convertToDB ($value, &$type)
 
 DAO ($dataSource=null, $callHooks=true)
 
 dateFromDB ($d)
 
 datetimeFromDB ($dt)
 
 datetimeToDB ($dt)
 
 dateToDB ($d)
 
 flushCache ()
 
 formatDateToDB ($date, $defaultNumWeeks=null, $acceptPastDate=true)
 
 getAffectedRows ()
 
 getDataChangedEvent ($elementId=null, $parentElementId=null)
 
getDataSource ()
 
 getDirectionMapping ($direction)
 
 getDriver ()
 
 getInsertId ($table= '', $id= '', $callHooks=true)
 
 getType ($value)
 
 replace ($table, $arrFields, $keyCols)
 
retrieve ($sql, $params=false, $callHooks=true)
 
retrieveCached ($sql, $params=false, $secsToCache=3600, $callHooks=true)
 
retrieveLimit ($sql, $params=false, $numRows=false, $offset=false, $callHooks=true)
 
retrieveRange ($sql, $params=false, $dbResultRange=null, $callHooks=true)
 
 setCacheDir ()
 
 setDataSource (&$dataSource)
 
 update ($sql, $params=false, $callHooks=true, $dieOnError=true)
 
 updateDataObjectSettings ($tableName, &$dataObject, $idArray)
 

Additional Inherited Members

- Public Attributes inherited from DAO
 $_dataSource
 

Detailed Description

Operations for retrieving and modifying ReviewFormResponse objects.

See Also
ReviewFormResponse

Definition at line 20 of file ReviewFormResponseDAO.inc.php.

Member Function Documentation

& ReviewFormResponseDAO::_returnReviewFormResponseFromRow ( $row)

Internal function to return a ReviewFormResponse object from a row.

Parameters
$rowarray
Returns
ReviewFormResponse

Definition at line 64 of file ReviewFormResponseDAO.inc.php.

References HookRegistry\call(), DAO\convertFromDB(), and newDataObject().

Referenced by getReviewFormResponse(), and getReviewReviewFormResponseValues().

ReviewFormResponseDAO::deleteById (   $reviewId,
  $reviewFormElementId 
)

Delete a review form response by ID.

Parameters
$reviewIdint
$reviewFormElementIdint

Definition at line 134 of file ReviewFormResponseDAO.inc.php.

References DAO\update().

Referenced by deleteObject().

ReviewFormResponseDAO::deleteByReviewFormElementId (   $reviewFormElementId)

Delete group membership by user ID

Parameters
$reviewFormElementIdint

Definition at line 156 of file ReviewFormResponseDAO.inc.php.

References DAO\update().

ReviewFormResponseDAO::deleteByReviewId (   $reviewId)

Delete review form responses by review ID

Parameters
$reviewIdint

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

References DAO\update().

ReviewFormResponseDAO::deleteObject ( $reviewFormResponse)

Delete a review form response.

Parameters
$reviewFormResponseReviewFormResponse

Definition at line 125 of file ReviewFormResponseDAO.inc.php.

References deleteById().

& ReviewFormResponseDAO::getReviewFormResponse (   $reviewId,
  $reviewFormElementId 
)

Retrieve a review form response.

Parameters
$reviewIdint
$reviewFormElementIdint
Returns
ReviewFormResponse

Definition at line 35 of file ReviewFormResponseDAO.inc.php.

References _returnReviewFormResponseFromRow(), and DAO\retrieve().

& ReviewFormResponseDAO::getReviewReviewFormResponseValues (   $reviewId)

Retrieve all review form responses for a review in an associative array.

Parameters
$reviewIdint
Returns
array review_form_element_id => array(review form response for this element)

Definition at line 168 of file ReviewFormResponseDAO.inc.php.

References _returnReviewFormResponseFromRow(), and DAO\retrieveRange().

ReviewFormResponseDAO::insertObject ( $reviewFormResponse)

Insert a new review form response.

Parameters
$reviewFormResponseReviewFormResponse

Definition at line 82 of file ReviewFormResponseDAO.inc.php.

References DAO\convertToDB(), and DAO\update().

Referenced by insertReviewFormResponse().

ReviewFormResponseDAO::insertReviewFormResponse ( $reviewFormResponse)

DEPRECATED

Definition at line 214 of file ReviewFormResponseDAO.inc.php.

References Config\getVar(), and insertObject().

ReviewFormResponseDAO::newDataObject ( )

Construct a new data object corresponding to this DAO.

Returns
ReviewFormResponse

Definition at line 55 of file ReviewFormResponseDAO.inc.php.

Referenced by _returnReviewFormResponseFromRow().

ReviewFormResponseDAO::ReviewFormResponseDAO ( )

Constructor.

Definition at line 25 of file ReviewFormResponseDAO.inc.php.

ReviewFormResponseDAO::reviewFormResponseExists (   $reviewId,
  $reviewFormElementId = null 
)

Check if a review form response for the review.

Parameters
$reviewIdint
$reviewFormElementIdint optional
Returns
boolean

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

References DAO\retrieve().

ReviewFormResponseDAO::updateObject ( $reviewFormResponse)

Update an existing review form response.

Parameters
$reviewFormResponseReviewFormResponse

Definition at line 102 of file ReviewFormResponseDAO.inc.php.

References DAO\convertToDB(), and DAO\update().


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