Lines Matching defs:title
39 'title' => 'string',
51 public function renderXhtml(string|array $user, string $title = '', ?string $align = '', ?int $size = null): string
53 $src = $this->resolveAvatarUrl($user, $title, $size);
57 'title="' . $title . '" ' .
58 'alt="' . $title . '" ' .
66 public function resolveAvatarUrl(string|array $user, ?string &$title = null, ?int &$size = null): string
71 $cacheKey = $this->getCacheKey($user, $title, $size);
77 $mail = $this->extractUserData($user, $title);
86 $src = $this->tryLocalAvatar($user, $title, $size);
99 if (empty($title)) {
100 $title = obfuscate($mail);
117 private function getCacheKey(string|array $user, ?string $title, int $size): string
120 return md5($userKey . $title . $size);
123 private function extractUserData(string|array $user, ?string &$title): string
126 if (empty($title) && !empty($user['name'])) {
127 $title = hsc($user['name']);
134 private function tryLocalAvatar(string|array $user, ?string &$title, int $size): ?string
145 if (empty($title) && !empty($userinfo['name'])) {
146 $title = hsc($userinfo['name']);