Public Member Functions

MonographSearchDAO Class Reference

DAO class for monograph search index. More...

List of all members.

Public Member Functions

 deleteMonographKeywords ($monographId, $type=null, $assocId=null)
getPhraseResults (&$press, $phrase, $publishedFrom=null, $publishedTo=null, $type=null, $limit=500, $cacheHours=24)
 insertKeyword ($keyword)
 insertObject ($monographId, $type, $assocId, $keepExisting=false)
 insertObjectKeyword ($objectId, $keyword, $position)
 MonographSearchDAO ()

Detailed Description

DAO class for monograph search index.

See also:
MonographSearch

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


Member Function Documentation

MonographSearchDAO.deleteMonographKeywords ( monographId,
type = null,
assocId = null 
)

Delete all keywords for an monograph object.

Parameters:
$monographId int
$type int optional
$assocId int optional

Definition at line 131 of file MonographSearchDAO.inc.php.

& MonographSearchDAO.getPhraseResults ( &$  press,
phrase,
publishedFrom = null,
publishedTo = null,
type = null,
limit = 500,
cacheHours = 24 
)

Retrieve the top results for a phrases with the given limit (default 500 results).

Parameters:
$keywordId int
Returns:
array of results (associative arrays)

Definition at line 70 of file MonographSearchDAO.inc.php.

MonographSearchDAO.insertKeyword ( keyword  ) 

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

Parameters:
$keyword string
Returns:
int the keyword ID

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

Referenced by insertObjectKeyword().

MonographSearchDAO.insertObject ( monographId,
type,
assocId,
keepExisting = false 
)

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

Parameters:
$monographId int
$type int
$assocId int
Returns:
int the object ID

Definition at line 163 of file MonographSearchDAO.inc.php.

MonographSearchDAO.insertObjectKeyword ( objectId,
keyword,
position 
)

Index an occurrence of a keyword in an object.s

Parameters:
$objectId int
$keyword string
$position int
Returns:
$keywordId

Definition at line 195 of file MonographSearchDAO.inc.php.

References insertKeyword().

MonographSearchDAO.MonographSearchDAO (  ) 

Constructor

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


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