Зачем-то инкапсуляция...

This commit is contained in:
Igor Barkov (iwork)
2021-02-01 18:42:52 +02:00
parent 8d0bce6299
commit 7dd6368b84
23 changed files with 867 additions and 236 deletions
+5 -5
View File
@@ -15,9 +15,9 @@ class Nick extends User
* Отображение иконки склонности.
* @return string
*/
private function getAlign():?string
private function getAlignToNickname():?string
{
if (isset($this->align)) {
if ($this->align) {
return sprintf('<img src="i/align_%s.gif">', $this->align);
} else {
return null;
@@ -28,9 +28,9 @@ class Nick extends User
* Отображение иконки клана.
* @return string
*/
private function getClan():?string
private function getClanToNickname():?string
{
if (isset($this->clan)) {
if ($this->clan) {
return sprintf('<img src="i/clan/%s.png">', $this->clan);
} else {
return null;
@@ -60,7 +60,7 @@ class Nick extends User
if ($showInvisibility && $this->getInvisibilityStatus()) {
return INVIS;
}
return $this->getAlign().$this->getClan().sprintf('<b>%s</b> [%s] <a href="inf.php?%s" target="_blank"><img src="i/inf.gif" style="width:12px;height:11px"></a>', $this->login, $this->level, $this->login);
return $this->getAlignToNickname().$this->getClanToNickname().sprintf('<b>%s</b> [%s] <a href="inf.php?%s" target="_blank"><img src="i/inf.gif" style="width:12px;height:11px"></a>', $this->login, $this->level, $this->login);
}
/**