Open Monograph Press  1.1
 All Classes Namespaces Functions Variables Groups Pages
SubmissionSearchDAO Class Reference
Inheritance diagram for SubmissionSearchDAO:
DAO MonographSearchDAO

Public Member Functions

 clearIndex ()
 deleteSubmissionKeywords ($submissionId, $type=null, $assocId=null)
 insertKeyword ($keyword)
 insertObject ($submissionId, $type, $assocId, $keepExisting=false)
 insertObjectKeyword ($objectId, $keyword, $position)
 SubmissionSearchDAO ()
- 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 ()
getDataSource ()
 getDirectionMapping ($direction)
 getDriver ()
 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

- Static Public Member Functions inherited from DAO
static getDataChangedEvent ($elementId=null, $parentElementId=null)
- Public Attributes inherited from DAO
- Protected Member Functions inherited from DAO
 _getInsertId ($table= '', $id= '')

Detailed Description

DAO class for submission search index.

See Also

Definition at line 17 of file

Member Function Documentation

SubmissionSearchDAO::clearIndex ( )

Clear the search index.

Definition at line 139 of file

References DAO\getDataSource(), Config\getVar(), DAO\setCacheDir(), and DAO\update().

SubmissionSearchDAO::deleteSubmissionKeywords (   $submissionId,
  $type = null,
  $assocId = null 

Delete all keywords for a submission.

$typeint optional
$assocIdint optional

Definition at line 65 of file

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

SubmissionSearchDAO::insertKeyword (   $keyword)

Add a word to the keyword list (if it doesn't already exist).

int the keyword ID

Definition at line 30 of file

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

Referenced by insertObjectKeyword().

SubmissionSearchDAO::insertObject (   $submissionId,
  $keepExisting = false 

Add a submission object to the index (if already exists, indexed keywords are cleared).

int the object ID

Definition at line 96 of file

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

SubmissionSearchDAO::insertObjectKeyword (   $objectId,

Index an occurrence of a keyword in an object.


Definition at line 126 of file

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

SubmissionSearchDAO::SubmissionSearchDAO ( )


Definition at line 21 of file

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