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

Public Member Functions

 build ()
 
 getAllInterests ($filter=null)
 
 getUserIdsByInterest ($interest)
 
 getUserInterestIds ($userId)
 
 setUserInterests ($interests, $userId)
 
- Public Member Functions inherited from ControlledVocabDAO
 _fromRow (&$row)
 
 build ($symbolic, $assocType=0, $assocId=0)
 
 ControlledVocabDAO ()
 
 deleteObject ($controlledVocab)
 
 deleteObjectById ($controlledVocabId)
 
 enumerate ($controlledVocabId, $settingName= 'name')
 
 enumerateBySymbolic ($symbolic, $assocType, $assocId, $settingName= 'name')
 
 getById ($controlledVocabId)
 
 getBySymbolic ($symbolic, $assocType, $assocId)
 
getEntryDAO ()
 
 getInsertId ()
 
 insertObject (&$controlledVocab)
 
 newDataObject ()
 
 updateObject (&$controlledVocab)
 
- 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 a user's review interests.

See Also
User

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

Member Function Documentation

InterestDAO::build ( )

Create or return the Controlled Vocabulary for interests

Returns
ControlledVocab

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

Referenced by getAllInterests(), getUserInterestIds(), and setUserInterests().

InterestDAO::getAllInterests (   $filter = null)

Get all user's interests

Parameters
$filterstring (optional)
Returns
object

Definition at line 84 of file InterestDAO.inc.php.

References build(), and DAORegistry\getDAO().

InterestDAO::getUserIdsByInterest (   $interest)

Get a list of user IDs attributed to an interest

Parameters
$userIdint
Returns
array

Definition at line 59 of file InterestDAO.inc.php.

References DAO\retrieve().

InterestDAO::getUserInterestIds (   $userId)

Get a list of controlled vocabulary entry IDs (corresponding to interest keywords) attributed to a user

Parameters
$userIdint
Returns
array

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

References build(), and DAO\retrieveRange().

InterestDAO::setUserInterests (   $interests,
  $userId 
)

Update a user's set of interests

Parameters
$interestsarray
$userIdint

Definition at line 103 of file InterestDAO.inc.php.

References build(), DAORegistry\getDAO(), and DAO\update().


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