1 | <?php |
||
13 | class Simplify |
||
14 | { |
||
15 | /** |
||
16 | * Get user nickname by user id with predefined value on empty or not exist profile |
||
17 | * @param $userId |
||
18 | * @param string $onEmpty |
||
19 | * @return string |
||
20 | */ |
||
21 | public static function parseUserNick($userId = null, $onEmpty = 'guest') |
||
39 | |||
40 | /** |
||
41 | * Prepare HTML DOM link (a href) to user with him name or guest name without link |
||
42 | * @param int $userId |
||
43 | * @param string $onEmpty |
||
44 | * @param string $controllerAction |
||
45 | * @return string |
||
46 | */ |
||
47 | public function parseUserLink($userId = null, $onEmpty = 'guest', $controllerAction = 'profile/show') |
||
57 | |||
58 | } |