63        $this->obj_type = $a_type;
 
   76        if (is_object(self::$instance[$a_type])) {
 
   77            return self::$instance[$a_type];
 
  101        return array_key_exists($a_field_name, $this->possible_fields);
 
  122        foreach ($this->possible_fields as $field => $exportable) {
 
  127        return $fields ? $fields : array();
 
  148                    $fields[
'login'][
'txt'] = 
$lng->txt(
'login');
 
  149                    $fields[
'login'][
'default'] = 1;
 
  154                    $caption = ($field == 
"title")
 
  157                    $fields[$field][
'txt'] = 
$lng->txt($caption);
 
  158                    $fields[$field][
'default'] = 0;
 
  163        include_once 
'./Services/Booking/classes/class.ilBookingEntry.php';
 
  165            $GLOBALS[
'DIC'][
'lng']->loadLanguageModule(
'dateplaner');
 
  166            $fields[
'consultation_hour'][
'txt'] = 
$GLOBALS[
'DIC'][
'lng']->txt(
'cal_ch_field_ch');
 
  167            $fields[
'consultation_hour'][
'default'] = 0;
 
  170        include_once 
'./Services/User/classes/class.ilUserDefinedFields.php';
 
  171        if ($this->
getType() == 
'crs') {
 
  173        } elseif ($this->
getType() == 
'grp') {
 
  177            foreach ($udf as $field_id => $field) {
 
  178                $fields[
'udf_' . $field_id][
'txt'] = $field[
'field_name'];
 
  179                $fields[
'udf_' . $field_id][
'default'] = 0;
 
  183        include_once 
'./Modules/Course/classes/Export/class.ilCourseDefinedFieldDefinition.php';
 
  185        foreach ($cdf as $def) {
 
  186            $fields[
'odf_' . $def->getId()][
'txt'] = $def->getName();
 
  187            $fields[
'odf_' . $def->getId()][
'default'] = 0;
 
  192            $fields[
'odf_last_update'][
'txt'] = 
$GLOBALS[
'DIC'][
'lng']->txt($this->
getType() . 
'_cdf_tbl_last_edit');
 
  193            $fields[
'odf_last_update'][
'default'] = 0;
 
  209            $fields[] = $this->lng->txt($field);
 
  211        return implode(
'<br />', $fields);
 
  222        include_once 
'./Services/User/classes/class.ilUserProfile.php';
 
  225        $profile->skipGroup(
'settings');
 
  227        foreach ($profile->getStandardFields() as $key => 
$data) {
 
  228            if ($this->
getType() == 
'crs') {
 
  229                if (!
$data[
'course_export_hide']) {
 
  230                    if (isset(
$data[
'course_export_fix_value']) and 
$data[
'course_export_fix_value']) {
 
  231                        $this->possible_fields[$key] = 
$data[
'course_export_fix_value'];
 
  233                        $this->possible_fields[$key] = 0;
 
  236            } elseif ($this->
getType() == 
'grp') {
 
  237                if (!
$data[
'group_export_hide']) {
 
  238                    if (isset(
$data[
'group_export_fix_value']) and 
$data[
'group_export_fix_value']) {
 
  239                        $this->possible_fields[$key] = 
$data[
'group_export_fix_value'];
 
  241                        $this->possible_fields[$key] = 0;
 
  246        $settings_all = $this->
settings->getAll();
 
  248        $field_part_limit = 5;
 
  251                $field_prefix = 
'usr_settings_course_export_';
 
  252                $field_part_limit = 5;
 
  256                $field_prefix = 
'usr_settings_group_export_';
 
  257                $field_part_limit = 5;
 
  261        foreach ($settings_all as $key => $value) {
 
  262            if ($field_prefix && stristr($key, $field_prefix) and $value) {
 
  264                $field_parts = explode(
'_', $key, $field_part_limit);
 
  265                $field = $field_parts[count($field_parts) - 1];
 
  266                if (array_key_exists($field, $this->possible_fields)) {
 
  267                    $this->possible_fields[$field] = 1;
 
  279        $start_order = array(
"lastname" => array(), 
"firstname" => array(), 
"username" => array());
 
  281        foreach ($start_order as $key => $value) {
 
  282            if (isset($this->possible_fields[$key])) {
 
  283                $start_order[$key] = $this->possible_fields[$key];
 
  284                unset($this->possible_fields[$key]);
 
  286                unset($start_order[$key]);
 
  290        if (count($start_order) > 0) {
 
  291            $this->possible_fields = array_merge($start_order, $this->possible_fields);
 
if(!defined('PATH_SEPARATOR')) $GLOBALS['_PEAR_default_error_mode']
An exception for terminatinating execution or to throw for unit testing.
static hasObjectBookingEntries($a_obj_id, $a_usr_id)
Check if object has assigned consultation hour appointments.
static _getFields($a_container_id, $a_sort=IL_CDF_SORT_NAME)
Get all fields of a container.
getFieldsInfo()
Get informations (exportable) about user data profile fields.
__construct($a_type)
Private Singleton Constructor.
sortExportFields()
sort Exports fields User for Name Presentation Guideline
static _getInstanceByType($a_type)
Get Singleton Instance.
getType()
Get object type.
isExportable($a_field_name)
Check if field is exportable.
getExportableFields()
Get Exportable Fields.
read()
Read info about exportable fields.
exportableFieldsToInfoString()
Get exportable fields as info string.
getSelectableFieldsInfo($a_obj_id)
Get selectable fields.
static _getInstance()
Get instance.