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

Public Member Functions

 deleteEditor ($journalId, $sectionId, $userId)
 
 deleteEditorsByJournalId ($journalId)
 
 deleteEditorsBySectionId ($sectionId, $journalId=null)
 
 deleteEditorsByUserId ($userId, $journalId=null, $sectionId=null)
 
 editorExists ($journalId, $sectionId, $userId)
 
getEditorsBySectionId ($journalId, $sectionId)
 
getEditorsNotInSection ($journalId, $sectionId)
 
 insertEditor ($journalId, $sectionId, $userId, $canReview, $canEdit)
 
- 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

Class for DAO relating sections to editors.

Definition at line 16 of file SectionEditorsDAO.inc.php.

Member Function Documentation

SectionEditorsDAO::deleteEditor (   $journalId,
  $sectionId,
  $userId 
)

Delete a section editor.

Parameters
$journalIdint
$sectionIdint
$userIdint

Definition at line 47 of file SectionEditorsDAO.inc.php.

References DAO\update().

SectionEditorsDAO::deleteEditorsByJournalId (   $journalId)

Delete all section editors for a specified journal.

Parameters
$journalIdint

Definition at line 144 of file SectionEditorsDAO.inc.php.

References DAO\update().

SectionEditorsDAO::deleteEditorsBySectionId (   $sectionId,
  $journalId = null 
)

Delete all section editors for a specified section in a journal.

Parameters
$sectionIdint
$journalIdint

Definition at line 129 of file SectionEditorsDAO.inc.php.

References DAO\update().

SectionEditorsDAO::deleteEditorsByUserId (   $userId,
  $journalId = null,
  $sectionId = null 
)

Delete all section assignments for the specified user.

Parameters
$userIdint
$journalIdint optional, include assignments only in this journal
$sectionIdint optional, include only this section

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

References DAO\update().

SectionEditorsDAO::editorExists (   $journalId,
  $sectionId,
  $userId 
)

Check if a user is assigned to a specified section.

Parameters
$journalIdint
$sectionIdint
$userIdint
Returns
boolean

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

References DAO\retrieve().

& SectionEditorsDAO::getEditorsBySectionId (   $journalId,
  $sectionId 
)

Retrieve a list of all section editors assigned to the specified section.

Parameters
$journalIdint
$sectionIdint
Returns
array matching Users

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

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

& SectionEditorsDAO::getEditorsNotInSection (   $journalId,
  $sectionId 
)

Retrieve a list of all section editors not assigned to the specified section.

Parameters
$journalIdint
$sectionIdint
Returns
array matching Users

Definition at line 96 of file SectionEditorsDAO.inc.php.

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

SectionEditorsDAO::insertEditor (   $journalId,
  $sectionId,
  $userId,
  $canReview,
  $canEdit 
)

Insert a new section editor.

Parameters
$journalIdint
$sectionIdint
$userIdint
$canReviewboolean
$canEditboolean

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

References DAO\update().


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