Open Journal Systems  2.4.3
 All Classes Namespaces Functions Variables Groups Pages
UserDAO Class Reference
Inheritance diagram for UserDAO:

Public Member Functions

getJournalUsersByField ($field=USER_FIELD_NONE, $match=null, $value=null, $allowDisabled=true, $journalId=null, $dbResultRange=null)
 renewMembership (&$user)
- Public Member Functions inherited from PKPUserDAO
_returnUserFromRow (&$row, $callHook=true)
 deleteObject (&$user)
 deleteUserById ($userId)
getById ($userId, $allowDisabled=true)
getByUsername ($username, $allowDisabled=true)
 getGenderOptions ()
 getInsertUserId ()
getUserByAuthStr ($authstr, $allowDisabled=true)
getUserByCredentials ($username, $password, $allowDisabled=true)
getUserByEmail ($email, $allowDisabled=true)
 getUserEmail ($userId, $allowDisabled=true)
 getUserFullName ($userId, $allowDisabled=true)
getUsersByField ($field=USER_FIELD_NONE, $match=null, $value=null, $allowDisabled=true, $dbResultRange=null, $sortBy=null, $sortDirection=SORT_DIRECTION_ASC)
getUsersWithNoRole ($allowDisabled=true, $dbResultRange=null)
 insertUser (&$user)
 PKPUserDAO ()
 updateObject (&$user)
 userExistsByEmail ($email, $userId=null, $allowDisabled=true)
 userExistsById ($userId, $allowDisabled=true)
 userExistsByUsername ($username, $userId=null, $allowDisabled=true)
- 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

Detailed Description

Basic class describing users existing in the system.

See Also

Definition at line 20 of file

Member Function Documentation

& UserDAO::getJournalUsersByField (   $field = USER_FIELD_NONE,
  $match = null,
  $value = null,
  $allowDisabled = true,
  $journalId = null,
  $dbResultRange = null 

Retrieve an array of journal users matching a particular field value.

$fieldstring the field to match on
$matchstring "is" for exact match, otherwise assume "like" match
$valuemixed the value to match
$journalIdint optional, return only user from this journal
$dbResultRangeobject The desired range of results to return
array matching Users

Definition at line 49 of file

References DAO\retrieveRange().

UserDAO::renewMembership ( $user)

Renew a membership to dateEnd + 1 year if the was expired, renew to current date + 1 year


Definition at line 26 of file

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