PaperDAO Class Reference
[Paper]

Operations for retrieving and modifying Paper objects. More...

List of all members.

Public Member Functions

 _paperFromRow (&$paper, &$row)
_returnPaperFromRow (&$row)
 changePaperStatus ($paperId, $status)
 deletePaper (&$paper)
 deletePaperById ($paperId)
 deletePapersBySchedConfId ($schedConfId)
 getAdditionalFieldNames ()
 getInsertPaperId ()
 getLocaleFieldNames ()
getPaper ($paperId)
getPapersBySchedConfId ($schedConfId, $trackId=null)
getPapersByUserId ($userId, $schedConfId=null)
 getPaperSchedConfId ($paperId)
 incompleteSubmissionExists ($paperId, $userId, $schedConfId)
 insertPaper (&$paper)
 PaperDAO ()
 removePapersFromTrack ($trackId)
 updateLocaleFields (&$paper)
 updatePaper (&$paper)

Public Attributes

 $authorDao


Detailed Description

Operations for retrieving and modifying Paper objects.

Definition at line 21 of file PaperDAO.inc.php.


Member Function Documentation

PaperDAO._paperFromRow ( &$  paper,
&$  row 
)

Internal function to fill in the passed paper object from the row.

Parameters:
$paper Paper output paper
$row array input row

Definition at line 118 of file PaperDAO.inc.php.

References _returnPaperFromRow().

Referenced by _returnPaperFromRow().

& PaperDAO._returnPaperFromRow ( &$  row  ) 

Internal function to return an Paper object from a row.

Parameters:
$row array
Returns:
Paper

Definition at line 107 of file PaperDAO.inc.php.

References _paperFromRow().

Referenced by _paperFromRow(), getPaper(), getPapersBySchedConfId(), and getPapersByUserId().

PaperDAO.changePaperStatus ( paperId,
status 
)

Change the status of the paper

Parameters:
$paperId int
$status int

Definition at line 531 of file PaperDAO.inc.php.

PaperDAO.deletePaper ( &$  paper  ) 

Delete a paper.

Parameters:
$paper Paper

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

References deletePaperById().

PaperDAO.deletePaperById ( paperId  ) 

Delete a paper by ID.

Parameters:
$paperId int

Definition at line 322 of file PaperDAO.inc.php.

Referenced by deletePaper(), and deletePapersBySchedConfId().

PaperDAO.deletePapersBySchedConfId ( schedConfId  ) 

Delete all papers by scheduled conference ID.

Parameters:
$schedConfId int

Definition at line 429 of file PaperDAO.inc.php.

References deletePaperById(), and getPapersBySchedConfId().

PaperDAO.getAdditionalFieldNames (  ) 

Get a list of non-localized additional fields to maintain.

Returns:
array

Definition at line 36 of file PaperDAO.inc.php.

PaperDAO.getInsertPaperId (  ) 

Get the ID of the last inserted paper.

Returns:
int

Definition at line 551 of file PaperDAO.inc.php.

Referenced by insertPaper().

PaperDAO.getLocaleFieldNames (  ) 

Get a list of field names for which data is localized.

Returns:
array

Definition at line 44 of file PaperDAO.inc.php.

& PaperDAO.getPaper ( paperId  ) 

Retrieve a paper by ID.

Parameters:
$paperId int
Returns:
Paper

Definition at line 63 of file PaperDAO.inc.php.

References _returnPaperFromRow(), AppLocale.getLocale(), and AppLocale.getPrimaryLocale().

& PaperDAO.getPapersBySchedConfId ( schedConfId,
trackId = null 
)

Get all papers for a scheduled conference.

Parameters:
$userId int
$schedConfId int
Returns:
DAOResultFactory containing matching Papers

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

References _returnPaperFromRow(), AppLocale.getLocale(), and AppLocale.getPrimaryLocale().

Referenced by deletePapersBySchedConfId().

& PaperDAO.getPapersByUserId ( userId,
schedConfId = null 
)

Get all papers for a user.

Parameters:
$userId int
$schedConfId int optional
Returns:
array Papers

Definition at line 444 of file PaperDAO.inc.php.

References _returnPaperFromRow(), AppLocale.getLocale(), and AppLocale.getPrimaryLocale().

PaperDAO.getPaperSchedConfId ( paperId  ) 

Get the ID of the scheduled conference a paper is in.

Parameters:
$paperId int
Returns:
int

Definition at line 494 of file PaperDAO.inc.php.

PaperDAO.incompleteSubmissionExists ( paperId,
userId,
schedConfId 
)

Check if the specified incomplete submission exists.

Parameters:
$paperId int
$userId int
$schedConfId int
Returns:
int the submission progress

Definition at line 513 of file PaperDAO.inc.php.

PaperDAO.insertPaper ( &$  paper  ) 

Insert a new Paper.

Parameters:
$paper Paper

Definition at line 166 of file PaperDAO.inc.php.

References getInsertPaperId(), and updateLocaleFields().

PaperDAO.PaperDAO (  ) 

Constructor.

Definition at line 27 of file PaperDAO.inc.php.

PaperDAO.removePapersFromTrack ( trackId  ) 

Removes papers from a track by track ID

Parameters:
$trackId int

Definition at line 541 of file PaperDAO.inc.php.

PaperDAO.updateLocaleFields ( &$  paper  ) 

Update the settings for this object

Parameters:
$paper object

Definition at line 52 of file PaperDAO.inc.php.

Referenced by insertPaper(), and updatePaper().

PaperDAO.updatePaper ( &$  paper  ) 

Update an existing paper.

Parameters:
$paper Paper

Definition at line 236 of file PaperDAO.inc.php.

References updateLocaleFields().


The documentation for this class was generated from the following file:
Generated on 25 Jul 2013 for Open Conference Systems by  doxygen 1.4.7