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

Public Member Functions

_returnReviewFormElementFromRow (&$row)
 
 deleteById ($reviewFormElementId)
 
 deleteByReviewFormId ($reviewFormId)
 
 deleteObject (&$reviewFormElement)
 
 deleteSetting ($reviewFormElementId, $name, $locale=null)
 
 getInsertReviewFormElementId ()
 
 getLocaleFieldNames ()
 
 getRequiredReviewFormElementIds ($reviewFormId)
 
getReviewFormElement ($reviewFormElementId)
 
getReviewFormElements ($reviewFormId)
 
getReviewFormElementsByReviewForm ($reviewFormId, $rangeInfo=null)
 
 insertObject (&$reviewFormElement)
 
 insertReviewFormElement (&$reviewFormElement)
 
 newDataObject ()
 
 resequenceReviewFormElements ($reviewFormId)
 
 ReviewFormElementDAO ()
 
 reviewFormElementExists ($reviewFormElementId, $reviewFormId=null)
 
 updateLocaleFields (&$reviewFormElement)
 
 updateObject (&$reviewFormElement)
 
- 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 ReviewFormElement objects.

See Also
ReviewFormElement

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

Member Function Documentation

& ReviewFormElementDAO::_returnReviewFormElementFromRow ( $row)

Internal function to return a ReviewFormElement object from a row.

Parameters
$rowarray
Returns
ReviewFormElement

Definition at line 62 of file ReviewFormElementDAO.inc.php.

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

Referenced by getReviewFormElement(), and getReviewFormElements().

ReviewFormElementDAO::deleteById (   $reviewFormElementId)

Delete a review form element by ID.

Parameters
$reviewFormElementIdint

Definition at line 159 of file ReviewFormElementDAO.inc.php.

References DAORegistry\getDAO(), and DAO\update().

Referenced by deleteByReviewFormId(), and deleteObject().

ReviewFormElementDAO::deleteByReviewFormId (   $reviewFormId)

Delete review form elements by review form ID to be called only when deleting a review form.

Parameters
$reviewFormIdint

Definition at line 172 of file ReviewFormElementDAO.inc.php.

References deleteById(), and getReviewFormElements().

ReviewFormElementDAO::deleteObject ( $reviewFormElement)

Delete a review form element.

Parameters
$reviewFormElementreviewFormElement

Definition at line 151 of file ReviewFormElementDAO.inc.php.

References deleteById().

ReviewFormElementDAO::deleteSetting (   $reviewFormElementId,
  $name,
  $locale = null 
)

Delete a review form element setting

Parameters
$reviewFormElementIdint
$settingNamestring
$localestring

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

References DAO\update().

ReviewFormElementDAO::getInsertReviewFormElementId ( )

Get the ID of the last inserted review form element.

Returns
int

Definition at line 314 of file ReviewFormElementDAO.inc.php.

References DAO\getInsertId().

Referenced by insertObject().

ReviewFormElementDAO::getLocaleFieldNames ( )

Get the list of fields for which data can be localized.

Returns
array

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

ReviewFormElementDAO::getRequiredReviewFormElementIds (   $reviewFormId)

Retrieve ids of all required elements for a review form.

Parameters
$reviewFormIdint return array

Definition at line 242 of file ReviewFormElementDAO.inc.php.

References DAO\retrieve().

& ReviewFormElementDAO::getReviewFormElement (   $reviewFormElementId)

Retrieve a review form element by ID.

Parameters
$reviewFormElementIdint
Returns
ReviewFormElement

Definition at line 33 of file ReviewFormElementDAO.inc.php.

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

& ReviewFormElementDAO::getReviewFormElements (   $reviewFormId)

Retrieve all elements for a review form.

Parameters
$reviewFormIdint
Returns
array ReviewFormElements ordered by sequence

Definition at line 201 of file ReviewFormElementDAO.inc.php.

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

Referenced by deleteByReviewFormId().

& ReviewFormElementDAO::getReviewFormElementsByReviewForm (   $reviewFormId,
  $rangeInfo = null 
)

Retrieve all elements for a review form.

Parameters
$reviewFormIdint
$rangeInfoobject RangeInfo object (optional)
Returns
DAOResultFactory containing ReviewFormElements ordered by sequence

Definition at line 227 of file ReviewFormElementDAO.inc.php.

References DAO\retrieveRange().

ReviewFormElementDAO::insertObject ( $reviewFormElement)

Insert a new review form element.

Parameters
$reviewFormElementReviewFormElement

Definition at line 100 of file ReviewFormElementDAO.inc.php.

References getInsertReviewFormElementId(), DAO\update(), and updateLocaleFields().

Referenced by insertReviewFormElement().

ReviewFormElementDAO::insertReviewFormElement ( $reviewFormElement)

DEPRECATED

Definition at line 320 of file ReviewFormElementDAO.inc.php.

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

ReviewFormElementDAO::newDataObject ( )

Construct a new data object corresponding to this DAO.

Returns
ReviewFormElement

Definition at line 53 of file ReviewFormElementDAO.inc.php.

Referenced by _returnReviewFormElementFromRow().

ReviewFormElementDAO::resequenceReviewFormElements (   $reviewFormId)

Sequentially renumber a review form elements in their sequence order.

Parameters
$reviewFormIdint

Definition at line 288 of file ReviewFormElementDAO.inc.php.

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

ReviewFormElementDAO::ReviewFormElementDAO ( )

Constructor

Definition at line 24 of file ReviewFormElementDAO.inc.php.

ReviewFormElementDAO::reviewFormElementExists (   $reviewFormElementId,
  $reviewFormId = null 
)

Check if a review form element exists with the specified ID.

Parameters
$reviewFormElementIdint
$reviewFormIdint optional
Returns
boolean

Definition at line 267 of file ReviewFormElementDAO.inc.php.

References DAO\retrieve().

ReviewFormElementDAO::updateLocaleFields ( $reviewFormElement)

Update the localized fields for this table

Parameters
$reviewFormElementobject

Definition at line 90 of file ReviewFormElementDAO.inc.php.

References DAO\updateDataObjectSettings().

Referenced by insertObject(), and updateObject().

ReviewFormElementDAO::updateObject ( $reviewFormElement)

Update an existing review form element.

Parameters
$reviewFormElementReviewFormElement

Definition at line 124 of file ReviewFormElementDAO.inc.php.

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


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