Open Journal Systems  2.4.4
 All Classes Namespaces Functions Variables Groups Pages
InterestManager Class Reference

Public Member Functions

 getAllInterests ($filter=null)
 
 getInterestsForUser ($user)
 
 getInterestsString ($user)
 
 InterestManager ()
 
 setInterestsForUser ($user, $interests)
 

Detailed Description

Handle user interest functions.

See Also
InterestDAO

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

Member Function Documentation

InterestManager::getAllInterests (   $filter = null)

Get all interests for all users in the system

Parameters
$filterstring
Returns
array

Definition at line 28 of file InterestManager.inc.php.

References DAORegistry\getDAO().

InterestManager::getInterestsForUser (   $user)

Get user reviewing interests. (Cached in memory for batch fetches.)

Parameters
$userPKPUser
Returns
array

Definition at line 46 of file InterestManager.inc.php.

References DAORegistry\getDAO().

Referenced by getInterestsString().

InterestManager::getInterestsString (   $user)

Returns a comma separated string of a user's interests

Parameters
$userPKPUser
Returns
string

Definition at line 73 of file InterestManager.inc.php.

References getInterestsForUser().

InterestManager::InterestManager ( )

Constructor.

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

InterestManager::setInterestsForUser (   $user,
  $interests 
)

Set a user's interests

Parameters
$userPKPUser
$interestsmixed

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

References DAORegistry\getDAO().


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