4 require_once
'Modules/Forum/classes/class.ilObjForumAccess.php';
5 require_once
'Modules/Forum/classes/class.ilForumAuthorInformationCache.php';
108 $this->globalLng =
$lng;
125 if(is_numeric($this->display_id) && $this->display_id > 0)
139 $this->author->setId(0);
140 $this->author->setPref(
'public_profile',
'n');
141 $this->author->setGender(
'');
166 return !$this->globalUser->isAnonymous();
176 if($with_profile_link && $this->public_profile_link_attributes)
180 foreach($this->public_profile_link_attributes as $attr => $value)
182 $link .=
' ' . $attr .
'="' . $value .
'"';
191 if($with_profile_link && $this->public_profile_link_attributes)
194 $linked_login .=
'</a>';
197 $this->linked_public_name = $link;
198 $this->linked_short_name = $linked_login;
206 include_once
'Modules/Forum/classes/class.ilObjForumAccess.php';
219 && $this->
getAuthor()->getPref(
'public_profile') ==
'y')
220 || $this->
getAuthor()->getPref(
'public_profile') ==
'g')
224 $this->author_name = $this->
getAuthor()->getPublicName();
225 $this->author_short_name = $this->
getAuthor()->getLogin();
227 if($this->
getAuthor()->getPref(
'public_upload') ==
'y')
236 if($this->
getAuthor()->getPref(
'public_gender') !=
'y')
246 $this->author_short_name = $this->author_name = $this->
getAuthor()->getLogin();
255 $this->author_short_name = $this->author_name = $this->alias .
' (' . $translationLanguage->txt(
'deleted') .
')';
256 $this->suffix = $translationLanguage->txt(
'deleted');
260 else if(strlen($this->import_name))
263 $this->author_short_name = $this->author_name = $this->import_name .
' (' . $translationLanguage->txt(
'imported') .
')';
264 $this->suffix = $translationLanguage->txt(
'imported');
268 else if(strlen($this->alias))
271 $this->author_short_name = $this->author_name = $this->alias .
' (' . $translationLanguage->txt(
'frm_pseudonym') .
')';
272 $this->suffix = $translationLanguage->txt(
'frm_pseudonym');
279 $this->author_short_name = $this->author_name = $translationLanguage->txt(
'forums_anonymous');
332 if(!$without_short_name)
338 return trim(preg_replace(
'/\(' . $this->
getAuthorShortName() .
'\)/',
'', $this->author_name));
371 return strlen($this->suffix);
static getCachedUserInstance($usr_id)
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
static hasHTML()
Has HTML output.
getPersonalPicturePath($a_size="small", $a_force_pic=false)
Get path to personal picture.
Create styles array
The data for the language used.