wCMF  3.6
 All Classes Namespaces Files Functions Variables Groups Pages
class.UserImpl.php
Go to the documentation of this file.
1 <?php
2 /**
3  * wCMF - wemove Content Management Framework
4  * Copyright (C) 2005-2014 wemove digital solutions GmbH
5  *
6  * Licensed under the terms of any of the following licenses
7  * at your choice:
8  *
9  * - GNU Lesser General Public License (LGPL)
10  * http://www.gnu.org/licenses/lgpl.html
11  * - Eclipse Public License (EPL)
12  * http://www.eclipse.org/org/documents/epl-v10.php
13  *
14  * See the license.txt file distributed with this work for
15  * additional information.
16  *
17  * $Id: class.UserImpl.php 1462 2014-02-04 23:52:27Z iherwig $
18  */
19 require_once(BASE."wcmf/lib/security/class.User.php");
20 
21 /**
22  * @class User
23  * @ingroup Security
24  * @brief Implementation of a system user.
25  *
26  * @author ingo herwig <ingo@wemove.com>
27  */
28 class UserImpl extends User
29 {
30  /**
31  * Default constructor.
32  */
33  function UserImpl($oid=null, $type='UserImpl')
34  {
35  parent::User($oid, $type);
36  }
37 
38  /**
39  * Set the login of the user.
40  * @param login The login of the user.
41  */
42  function setLogin($login)
43  {
44  $this->setValue('login', $login, DATATYPE_ATTRIBUTE);
45  }
46 
47  /**
48  * Get the login of the user.
49  * @return The login of the user.
50  */
51  function getLogin()
52  {
53  return $this->getValue('login', DATATYPE_ATTRIBUTE);
54  }
55 
56  /**
57  * Set the password of the user.
58  * @param password The unencrypted password of the user.
59  */
60  function setPassword($password)
61  {
62  $this->setValue('password', $password, DATATYPE_ATTRIBUTE);
63  }
64 
65  /**
66  * Get the password of the user.
67  * @return The unencrypted password of the user.
68  */
69  function getPassword()
70  {
71  return $this->getValue('password', DATATYPE_ATTRIBUTE);
72  }
73 
74  /**
75  * Set the name of the user.
76  * @param name The name of the user.
77  */
78  function setName($name)
79  {
80  $this->setValue('name', $name, DATATYPE_ATTRIBUTE);
81  }
82 
83  /**
84  * Get name of the user.
85  * @return The name of the user.
86  */
87  function getName()
88  {
89  return $this->getValue('name', DATATYPE_ATTRIBUTE);
90  }
91 
92  /**
93  * Set the firstname of the user.
94  * @param firstname The firstname of the user.
95  */
96  function setFirstname($firstname)
97  {
98  $this->setValue('firstname', $firstname, DATATYPE_ATTRIBUTE);
99  }
100 
101  /**
102  * Get the firstname of the user.
103  * @return The firstname of the user.
104  */
105  function getFirstname()
106  {
107  return $this->getValue('firstname', DATATYPE_ATTRIBUTE);
108  }
109 
110  /**
111  * Set the configuration file of the user.
112  * @param config The configuration file of the user.
113  */
114  function setConfig($config)
115  {
116  $this->setValue('config', $config, DATATYPE_ATTRIBUTE);
117  }
118 
119  /**
120  * Get the configuration file of the user.
121  * @return The configuration file of the user.
122  */
123  function getConfig()
124  {
125  return $this->getValue('config', DATATYPE_ATTRIBUTE);
126  }
127 }
128 ?>
const DATATYPE_ATTRIBUTE
Abstract base class for user classes that represent a system user.
Definition: class.User.php:31
getValue($name, $type=null)
setFirstname($firstname)
setName($name)
UserImpl($oid=null, $type='UserImpl')
setConfig($config)
setLogin($login)
setValue($name, $value, $type=null, $forceSet=false)
setPassword($password)