mango r162 - in trunk: . lib
- From: ovitters svn gnome org
- To: svn-commits-list gnome org,gnome-sysadmin gnome org
- Subject: mango r162 - in trunk: . lib
- Date: Sat, 31 May 2008 20:08:35 +0000 (UTC)
Author: ovitters
Date: Sat May 31 20:08:35 2008
New Revision: 162
URL: http://svn.gnome.org/viewvc/mango?rev=162&view=rev
Log:
* lib/user.php: Change to PHP5 style object.
Modified:
trunk/ChangeLog
trunk/lib/user.php
Modified: trunk/lib/user.php
==============================================================================
--- trunk/lib/user.php (original)
+++ trunk/lib/user.php Sat May 31 20:08:35 2008
@@ -5,20 +5,24 @@
class User {
// Main attributes
- var $uid;
- var $cn;
- var $mail;
- var $description;
- var $authorizedKeys;
-
- // Details of the groups the user is in
- var $groups;
- var $uid_from_ldap;
+ public
+ $uid,
+ $cn,
+ $mail,
+ $description,
+ $authorizedKeys,
+ $homeDirectory
+
+ // Details of the groups the user is in
+ $groups;
+
+ private
+ // Has 'pubkeyauthenticationuser' objectclass set?
+ $pubkeyauthenticationuser,
+ // Determines if the uid came from LDAP (avoids uid validation)
+ $uid_from_ldap;
- // Has 'pubkeyauthenticationuser' objectclass set?
- var $pubkeyauthenticationuser;
-
- function User() {
+ function __construct() {
$this->authorizedKeys = array();
$this->groups = array();
$this->uid_from_ldap = false;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]