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

Public Member Functions

_fromRow (&$row)
 
_getAllInternally ($symbolic=null, $assocType=null, $assocId=null, $userId=null, $userGroupId=null)
 
build ($symbolic, $assocType, $assocId, $userId=null, $userGroupId=null, $fileId=null, $fileRevision=null)
 
 deleteObject ($signoff)
 
 deleteObjectById ($signoffId)
 
getAllByAssocType ($assocType, $assocId, $symbolic=null, $userId=null, $userGroupId=null)
 
getAllBySymbolic ($symbolic, $assocType=null, $assocId=null, $userId=null, $userGroupId=null)
 
 getAllSymbolics ()
 
getByFileRevision ($fileId, $revision=null)
 
 getById ($signoffId, $assocType=null, $assocId=null)
 
getBySymbolic ($symbolic, $assocType, $assocId, $userId=null, $userGroupId=null, $fileId=null, $fileRevision=null)
 
getByUserId ($userId)
 
 getInsertId ()
 
getUsersBySymbolic ($symbolic, $assocType, $assocId, $userGroupId=null, $unique=true)
 
 insertObject (&$signoff)
 
 newDataObject ()
 
 PKPSignoffDAO ()
 
 signoffExists ($symbolic, $assocType, $assocId, $userId=null, $userGroupId=null)
 
 transferSignoffs ($oldUserId, $newUserId)
 
 updateObject (&$signoff)
 
- 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 Signoff objects.

See Also
Signoff

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

Member Function Documentation

& PKPSignoffDAO::_fromRow ( $row)

Internal function to return an Signoff object from a row.

Parameters
$rowarray
Returns
Signoff

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

References DAO\datetimeFromDB(), and newDataObject().

Referenced by getById(), and getBySymbolic().

& PKPSignoffDAO::_getAllInternally (   $symbolic = null,
  $assocType = null,
  $assocId = null,
  $userId = null,
  $userGroupId = null 
)

Retrieve all signoffs matching the specified input parameters

Parameters
$symbolicstring
$assocTypeint
$assocIdint
$userIdint
$stageIdint
$userGroupIdint
Returns
DAOResultFactory

Definition at line 435 of file PKPSignoffDAO.inc.php.

References DAO\retrieve().

Referenced by getAllByAssocType(), and getAllBySymbolic().

& PKPSignoffDAO::build (   $symbolic,
  $assocType,
  $assocId,
  $userId = null,
  $userGroupId = null,
  $fileId = null,
  $fileRevision = null 
)

Fetch a signoff by symbolic info, building it if needed.

Parameters
$symbolicstring
$assocTypeint
$assocIdint
$userIdint
$stageIdint
$userGroupIdint
$fileIdint
$fileRevisionint
Returns
Signoff

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

References getBySymbolic(), insertObject(), and newDataObject().

PKPSignoffDAO::deleteObject (   $signoff)

Delete a signoff.

Parameters
$signoffSignoff
Returns
boolean

Definition at line 229 of file PKPSignoffDAO.inc.php.

References deleteObjectById().

PKPSignoffDAO::deleteObjectById (   $signoffId)

Delete a signoff by ID.

Parameters
$signoffIdint
Returns
boolean

Definition at line 238 of file PKPSignoffDAO.inc.php.

References DAO\update().

Referenced by deleteObject().

& PKPSignoffDAO::getAllByAssocType (   $assocType,
  $assocId,
  $symbolic = null,
  $userId = null,
  $userGroupId = null 
)

Retrieve all signoffs matching the specified input parameters

Parameters
$symbolicstring
$assocTypeint
$assocIdint
$userIdint
$stageIdint
$userGroupIdint
Returns
DAOResultFactory

Definition at line 315 of file PKPSignoffDAO.inc.php.

References _getAllInternally().

& PKPSignoffDAO::getAllBySymbolic (   $symbolic,
  $assocType = null,
  $assocId = null,
  $userId = null,
  $userGroupId = null 
)

Retrieve all signoffs matching the specified input parameters

Parameters
$symbolicstring
$assocTypeint
$assocIdint
$userIdint
$stageIdint
$userGroupIdint
Returns
DAOResultFactory

Definition at line 300 of file PKPSignoffDAO.inc.php.

References _getAllInternally().

PKPSignoffDAO::getAllSymbolics ( )

Get an array map with all signoff symbolics.

Returns
array

Definition at line 411 of file PKPSignoffDAO.inc.php.

& PKPSignoffDAO::getByFileRevision (   $fileId,
  $revision = null 
)

Retrieve all signoffs for a given file.

Parameters
$fileIdinteger
$revisioninteger
Returns
DAOResultFactory

Definition at line 341 of file PKPSignoffDAO.inc.php.

References DAO\retrieve().

PKPSignoffDAO::getById (   $signoffId,
  $assocType = null,
  $assocId = null 
)

Retrieve a signoff by ID.

Parameters
$signoffIdint
Returns
Signoff

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

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

& PKPSignoffDAO::getBySymbolic (   $symbolic,
  $assocType,
  $assocId,
  $userId = null,
  $userGroupId = null,
  $fileId = null,
  $fileRevision = null 
)

Retrieve the first signoff matching the specified symbolic name and assoc info.

Parameters
$symbolicstring
$assocTypeint
$assocIdint
$userIdint
$stageIdint
$userGroupIdint
$fileIdint
$fileRevisionint
Returns
Signoff

Definition at line 254 of file PKPSignoffDAO.inc.php.

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

Referenced by build().

& PKPSignoffDAO::getByUserId (   $userId)

Retrieve an array of signoffs matching the specified user id

Parameters
$userIdint
Returns
DAOResultFactory

Definition at line 325 of file PKPSignoffDAO.inc.php.

References DAO\retrieve().

PKPSignoffDAO::getInsertId ( )

Get the ID of the last inserted signoff.

Returns
int

Definition at line 403 of file PKPSignoffDAO.inc.php.

Referenced by insertObject().

& PKPSignoffDAO::getUsersBySymbolic (   $symbolic,
  $assocType,
  $assocId,
  $userGroupId = null,
  $unique = true 
)

Get all users assigned to a particular workflow stage

Parameters
$symbolicstring
$assocTypeint
$assocIdint
$stageIdint
$userGroupId
$uniqueboolean
Returns
object

Definition at line 363 of file PKPSignoffDAO.inc.php.

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

PKPSignoffDAO::insertObject ( $signoff)

Insert a new Signoff.

Parameters
$signoffSignoff
Returns
int

Definition at line 158 of file PKPSignoffDAO.inc.php.

References DAO\datetimeToDB(), getInsertId(), and DAO\update().

Referenced by build().

PKPSignoffDAO::newDataObject ( )

Construct a new data object corresponding to this DAO.

Returns
SignoffEntry

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

Referenced by _fromRow(), and build().

PKPSignoffDAO::PKPSignoffDAO ( )

Constructor

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

PKPSignoffDAO::signoffExists (   $symbolic,
  $assocType,
  $assocId,
  $userId = null,
  $userGroupId = null 
)

Determine if a signoff exists

Parameters
string$symbolic
int$assocType
int$assocId
int$stageId
int$userGroupId
Returns
boolean

Definition at line 97 of file PKPSignoffDAO.inc.php.

References DAO\retrieve().

PKPSignoffDAO::transferSignoffs (   $oldUserId,
  $newUserId 
)

Transfer all existing signoffs to another user.

Parameters
$oldUserIdint
$newUserIdint

Definition at line 387 of file PKPSignoffDAO.inc.php.

References DAO\update().

PKPSignoffDAO::updateObject ( $signoff)

Update an existing signoff.

Parameters
$signoffSignoff
Returns
boolean

Definition at line 189 of file PKPSignoffDAO.inc.php.

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


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