|
@@ 97-104 (lines=8) @@
|
| 94 |
|
* @param integer $maxLength If set then user names are truncated to x chars |
| 95 |
|
* @return string The output |
| 96 |
|
*/ |
| 97 |
|
public function profileLinkByUserId($userId, $class = '', $image = '', $maxLength = 0, $title = '') |
| 98 |
|
{ |
| 99 |
|
if (empty($userId) || (int)$userId < 1) { |
| 100 |
|
return $userId; |
| 101 |
|
} |
| 102 |
|
|
| 103 |
|
return $this->determineProfileLink((int)$userId, null, $class, $image, $maxLength, $title); |
| 104 |
|
} |
| 105 |
|
|
| 106 |
|
/** |
| 107 |
|
* Create a link to a users profile from the username. |
|
@@ 124-131 (lines=8) @@
|
| 121 |
|
* @param integer $maxLength If set then user names are truncated to x chars |
| 122 |
|
* @return string The output |
| 123 |
|
*/ |
| 124 |
|
public function profileLinkByUserName($userName, $class = '', $image = '', $maxLength = 0, $title = '') |
| 125 |
|
{ |
| 126 |
|
if (empty($userName)) { |
| 127 |
|
return $userName; |
| 128 |
|
} |
| 129 |
|
|
| 130 |
|
return $this->determineProfileLink(null, $userName, $class, $image, $maxLength, $title); |
| 131 |
|
} |
| 132 |
|
|
| 133 |
|
/** |
| 134 |
|
* Internal function used by profileLinkByUserId() and profileLinkByUserName(). |