appdb/include application.php user.php

WineHQ wineowner at wine.codeweavers.com
Sun Mar 25 11:03:35 CDT 2007


ChangeSet ID:	31005
CVSROOT:	/opt/cvs-commit
Module name:	appdb
Changes by:	wineowner at winehq.org	2007/03/25 11:03:35

Modified files:
	include        : application.php user.php 

Log message:
	Alexander Nicolaysen Sørnes <alex at thehandofagony.com>
	Add user::objectMakeLink(), used by appData and testData objectOutputTableRow()

Patch: http://cvs.winehq.org/patch.py?id=31005

Old revision  New revision  Changes     Path
 1.96          1.97          +1 -2       appdb/include/application.php
 1.84          1.85          +12 -0      appdb/include/user.php

Index: appdb/include/application.php
diff -u -p appdb/include/application.php:1.96 appdb/include/application.php:1.97
--- appdb/include/application.php:1.96	25 Mar 2007 16: 3:35 -0000
+++ appdb/include/application.php	25 Mar 2007 16: 3:35 -0000
@@ -888,8 +888,7 @@ class Application {
 
         $aCells = array(
                 print_date(mysqltimestamp_to_unixtimestamp($this->sSubmitTime)),
-                "<a href=\"contact.php?iRecipientId=$oUser->iUserId\">".
-                        "$oUser->sRealname</a>",
+                $oUser->objectMakeLink(),
                 $sVendor,
                 $this->sName);
 
Index: appdb/include/user.php
diff -u -p appdb/include/user.php:1.84 appdb/include/user.php:1.85
--- appdb/include/user.php:1.84	25 Mar 2007 16: 3:35 -0000
+++ appdb/include/user.php	25 Mar 2007 16: 3:35 -0000
@@ -1043,6 +1043,18 @@ class User {
 
          return false;
      }
+
+     function objectMakeUrl()
+     {
+         $sUrl = BASE."contact.php?iRecipientId=$this->iUserId";
+         return $sUrl;
+     }
+
+     function objectMakeLink()
+     {
+         $sLink = "<a href=\"".$this->objectMakeUrl()."\">$this->sRealname</a>";
+         return $sLink;
+     }
 }
 
 ?>



More information about the wine-cvs mailing list