Open Journal Systems  3.3.0
InterestManager Class Reference

Public Member Functions

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

Detailed Description

Handle user interest functions.

See also
InterestDAO

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

Constructor & Destructor Documentation

◆ __construct()

InterestManager::__construct ( )

Constructor.

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

Member Function Documentation

◆ getAllInterests()

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().

◆ getInterestsForUser()

InterestManager::getInterestsForUser (   $user)

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

Parameters
$userUser
Returns
array

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

References DAORegistry\getDAO().

Referenced by getInterestsString().

◆ getInterestsString()

InterestManager::getInterestsString (   $user)

Returns a comma separated string of a user's interests

Parameters
$userUser
Returns
string

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

References getInterestsForUser().

◆ setInterestsForUser()

InterestManager::setInterestsForUser (   $user,
  $interests 
)

Set a user's interests

Parameters
$userUser
$interestsmixed

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

References DAORegistry\getDAO().


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