| 
    Open Journal Systems
    3.3.0
    
   | 
 
 
 
 
   21 import(
'lib.pkp.classes.identity.Identity');
 
   36       return $this->
getData(
'username');
 
   44       $this->
setData(
'username', $username);
 
   52       return $this->
getData(
'authStr');
 
   60       $this->
setData(
'authStr', $authStr);
 
   76       return $this->
getData(
'signature', $locale);
 
   85       $this->
setData(
'signature', $signature, $locale);
 
   93       return $this->
getData(
'password');
 
  101       $this->
setData(
'password', $password);
 
  109       return $this->
getData(
'phone');
 
  117       $this->
setData(
'phone', $phone);
 
  125       return $this->
getData(
'mailingAddress');
 
  133       $this->
setData(
'mailingAddress', $mailingAddress);
 
  141       return $this->
getData(
'billingAddress');
 
  149       $this->
setData(
'billingAddress', $billingAddress);
 
  157       import(
'lib.pkp.classes.user.InterestManager');
 
  159       return $interestManager->getInterestsString($this);
 
  167       return $this->
getData(
'gossip');
 
  175       $this->
setData(
'gossip', $gossip);
 
  183       $locales = $this->
getData(
'locales');
 
  184       return isset($locales) ? $locales : array();
 
  192       $this->
setData(
'locales', $locales);
 
  200       return $this->
getData(
'dateLastEmail');
 
  208       $this->
setData(
'dateLastEmail', $dateLastEmail);
 
  216       return $this->
getData(
'dateRegistered');
 
  224       $this->
setData(
'dateRegistered', $dateRegistered);
 
  232       return $this->
getData(
'dateValidated');
 
  240       $this->
setData(
'dateValidated', $dateValidated);
 
  248       return $this->
getData(
'dateLastLogin');
 
  256       $this->
setData(
'dateLastLogin', $dateLastLogin);
 
  264       return $this->
getData(
'mustChangePassword');
 
  272       $this->
setData(
'mustChangePassword', $mustChangePassword);
 
  280       return $this->
getData(
'disabled');
 
  288       $this->
setData(
'disabled', $disabled);
 
  296       return $this->
getData(
'disabled_reason');
 
  304       $this->
setData(
'disabled_reason', $reasonDisabled);
 
  312       return $this->
getData(
'authId');
 
  320       $this->
setData(
'authId', $authId);
 
  328       return $this->
getData(
'inlineHelp');
 
  336       $this->
setData(
'inlineHelp', $inlineHelp);
 
  340       $signature = htmlspecialchars($this->
getFullName());
 
  343       if ($p = $this->
getPhone()) $signature .= 
'<br/>' . __(
'user.phone') . 
' ' . htmlspecialchars($p);
 
  344       $signature .= 
'<br/>' . htmlspecialchars($this->
getEmail());
 
  355    public function hasRole($roles, $contextId) {
 
  357       $contextRoles = $this->
getRoles($contextId);
 
  359       if (empty($contextRoles)) {
 
  363       if (!is_array($roles)) {
 
  364          $roles = array($roles);
 
  367       foreach($contextRoles as $contextRole) {
 
  368          if (in_array((
int) $contextRole->getId(), $roles)) {
 
  383    public function getRoles($contextId, $noCache = 
false) {
 
  385       if ($noCache || empty($this->_roles[$contextId])) {
 
  386          import(
'lib.pkp.classes.security.RoleDAO');
 
  388          $this->
setRoles($userRolesDao->getByUserId($this->getId(), $contextId), $contextId);
 
  391       return isset($this->_roles[$contextId]) ? $this->_roles[$contextId] : array();
 
  400    public function setRoles($roles, $contextId) {
 
  401       $this->_roles[$contextId] = $roles;
 
  411       return $userSettingsDao->getSettingsByContextId($this->
getId(), $contextId);
 
  420    function getSetting($name, $contextId = 
null) {
 
  422       return $userSettingsDao->getSetting($this->
getId(), $name, $contextId);
 
  432    function updateSetting($name, $value, $type = 
null, $contextId = 
null) {
 
  434       return $userSettingsDao->updateSetting($this->
getId(), $name, $value, $type, $contextId);
 
  
 
setSignature($signature, $locale)
 
& getData($key, $locale=null)
 
static requireComponents()
 
setDateRegistered($dateRegistered)
 
static & getDAO($name, $dbconn=null)
 
setMailingAddress($mailingAddress)
 
setDateLastLogin($dateLastLogin)
 
getRoles($contextId, $noCache=false)
 
setDateValidated($dateValidated)
 
updateSetting($name, $value, $type=null, $contextId=null)
 
setInlineHelp($inlineHelp)
 
getLocalizedAffiliation()
 
hasRole($roles, $contextId)
 
getSetting($name, $contextId=null)
 
Handle user interest functions.
 
getSettings($contextId=null)
 
setDateLastEmail($dateLastEmail)
 
setRoles($roles, $contextId)
 
setBillingAddress($billingAddress)
 
Basic class providing common functionality for users and authors in the system.
 
setDisabledReason($reasonDisabled)
 
getFullName($preferred=true, $familyFirst=false, $defaultLocale=null)
 
Basic class describing users existing in the system.
 
setData($key, $value, $locale=null)
 
setMustChangePassword($mustChangePassword)
 
& getLocalizedData($key, $preferredLocale=null)