Add user::objectMakeLink(), used by appData and testData objectOutputTableRow()
This commit is contained in:
committed by
WineHQ
parent
558ff17e36
commit
fa3872b256
@@ -888,8 +888,7 @@ class Application {
|
|||||||
|
|
||||||
$aCells = array(
|
$aCells = array(
|
||||||
print_date(mysqltimestamp_to_unixtimestamp($this->sSubmitTime)),
|
print_date(mysqltimestamp_to_unixtimestamp($this->sSubmitTime)),
|
||||||
"<a href=\"contact.php?iRecipientId=$oUser->iUserId\">".
|
$oUser->objectMakeLink(),
|
||||||
"$oUser->sRealname</a>",
|
|
||||||
$sVendor,
|
$sVendor,
|
||||||
$this->sName);
|
$this->sName);
|
||||||
|
|
||||||
|
|||||||
@@ -1043,6 +1043,18 @@ class User {
|
|||||||
|
|
||||||
return false;
|
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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|||||||
Reference in New Issue
Block a user