4 require_once
"./Services/Badge/interfaces/interface.ilBadgeType.php";
5 require_once
"./Services/Badge/interfaces/interface.ilBadgeAuto.php";
25 return $lng->txt(
"badge_user_profile");
40 include_once
"Services/User/classes/Badges/class.ilUserProfileBadgeGUI.php";
52 if ($ilSetting->get(
'user_portfolios'))
54 include_once
"Modules/Portfolio/classes/class.ilObjPortfolio.php";
60 if(!in_array($user->getPref(
"public_profile"),
array(
"y",
"g")))
67 include_once(
"./Services/User/classes/class.ilUserProfile.php");
69 $pfields = $up->getStandardFields();
73 foreach($a_config[
"profile"] as $field)
75 $field = substr($field, 4);
77 if(substr($field, 0, 4) ==
"udf_")
79 $udf_field_id = substr($field, 4);
80 if($user->getPref(
"public_udf_".$udf_field_id) !=
"y")
84 $udf = $user->getUserDefinedData();
85 if($udf[
"f_".$udf_field_id] ==
"")
93 if($user->getPref(
"public_".$field) !=
"y")
97 if($field ==
"upload")
107 if(isset($pfields[$field][
"method"]))
109 $m = $pfields[$field][
"method"];
getId()
Get typ id (unique for component)
isSingleton()
Can only be created once?
getValidObjectTypes()
Get valid (repository) "parent" object types.
evaluate($a_user_id, array $a_params, array $a_config)
Evaluate if given user has earned badge.
getConfigGUIInstance()
Get GUI config instance.
Create styles array
The data for the language used.
static _getPersonalPicturePath($a_usr_id, $a_size="small", $a_force_pic=false, $a_prevent_no_photo_image=false)
Get path to personal picture.
static getDefaultPortfolio($a_user_id)
Get default portfolio of user.