mango r167 - in trunk: . www



Author: ovitters
Date: Sat May 31 20:59:03 2008
New Revision: 167
URL: http://svn.gnome.org/viewvc/mango?rev=167&view=rev

Log:
	* www/update_user.php: PHP5 style object.



Modified:
   trunk/ChangeLog
   trunk/www/update_user.php

Modified: trunk/www/update_user.php
==============================================================================
--- trunk/www/update_user.php	(original)
+++ trunk/www/update_user.php	Sat May 31 20:59:03 2008
@@ -28,18 +28,20 @@
 
 class UpdateUser {
     // Details for the user being created
-    var $user;
 
-    // Groups the user belongs to that we're not responsible for
-    var $othergroups;
-    
-    // Tab being displayed
-    var $tab;
+    private
+        $user,
 
-    // An initialisation error message
-    var $error;
-        
-    function UpdateUser($uid) {
+        // Groups the user belongs to that we're not responsible for
+        $othergroups;
+
+        // Tab being displayed
+        $tab;
+
+        // An initialisation error message
+        $error;
+
+    function __construct($uid) {
         global $AFFECTEDGROUPS;
 
         $user = User::fetchuser($uid);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]