gunnar: server/php-kolab/Kolab_Webadmin/Webadmin user.class.php, 1.9, 1.10

cvs at kolab.org cvs at kolab.org
Tue Sep 18 12:39:21 CEST 2007


Author: gunnar

Update of /kolabrepository/server/php-kolab/Kolab_Webadmin/Webadmin
In directory doto:/tmp/cvs-serv23411/Kolab_Webadmin/Webadmin

Modified Files:
	user.class.php 
Log Message:
Somehow missed commiting this list view class.

Index: user.class.php
===================================================================
RCS file: /kolabrepository/server/php-kolab/Kolab_Webadmin/Webadmin/user.class.php,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- user.class.php	18 Sep 2007 06:08:48 -0000	1.9
+++ user.class.php	18 Sep 2007 10:39:18 -0000	1.10
@@ -278,6 +278,55 @@
 		$row .= $this->getAction();
         return $row;
     }
+   
+};
+
+class KolabUserListView extends KolabObjectListView {
+
+    /**
+     * Return a list title for this type of object
+     *
+     * @return 
+     */
+    function getTitle()
+    {
+        return _("Email Users");
+    }
+
+    /**
+     * Return an array of table header entries for this type of object
+     *
+     * @return array The header entries
+     */
+    function _getHeader()
+    {
+        return array( _("Type"), _("Name"), _("E-mail"), _("UID"));
+    }
+    
+    /**
+     * Return a list entry for this object
+     *
+     * @return 
+     */
+    function getRow()
+    {
+		$row = '';
+        if ($this->_object->getType() == 'U') {
+            $row .= '<td class="contentcell" title="' . _("User Account") . '" align="center">U</td>';
+        } elseif ($this->_object->getType() == 'G') {
+            $row .= '<td class="contentcell" title="' . _("Group Account") . '" align="center">G</td>';
+        } elseif ($this->_object->getType() == 'R') {
+            $row .= '<td class="contentcell" title="' . _("Resource Account") . '" align="center">R</td>';
+        } else {
+            $row .= '<td class="contentcell" title="' . _("Unknown Account Type") . '" align="center">?</td>';
+        }
+        $row .= '<td class="contentcell">' . htmlspecialchars($this->_object->getName()) . '</td>';
+        $mail = htmlspecialchars($this->_object->getMail());
+        $row .= '<td class="contentcell"><a href="mailto:' . $email . '">' . $mail . '</a></td>';
+        $row .= '<td class="contentcell">' . htmlspecialchars($this->_object->getUid()) . '</td>';
+		$row .= $this->getAction();
+        return $row;
+    }
     
 
 }





More information about the commits mailing list