Collaboration diagram for ilExportFieldsInfo:Public Member Functions | |
| isExportable ($a_field_name) | |
| Check if field is exportable. | |
| getFieldsInfo () | |
| Get informations (exportable) about user data profile fields. | |
| getExportableFields () | |
| Get Exportable Fields. | |
| exportableFieldsToInfoString () | |
| Get exportable fields as info string. | |
Static Public Member Functions | |
| static | _getInstance () |
| Get Singleton Instance. | |
Private Member Functions | |
| __construct () | |
| Private Singleton Constructor. | |
| read () | |
| Read info about exportable fields. | |
Private Attributes | |
| $settings | |
| $db | |
| $lng | |
| $possible_fields = array() | |
Static Private Attributes | |
| static | $instance = null |
Definition at line 33 of file class.ilExportFieldsInfo.php.
| ilExportFieldsInfo::__construct | ( | ) | [private] |
Private Singleton Constructor.
Use getInstance
private
Definition at line 49 of file class.ilExportFieldsInfo.php.
References $ilSetting, $lng, and read().
{
global $ilDB,$ilSetting,$lng;
$this->db = $ilDB;
$this->lng = $lng;
$this->settings = $ilSetting;
$this->read();
}
Here is the call graph for this function:| static ilExportFieldsInfo::_getInstance | ( | ) | [static] |
Get Singleton Instance.
public
Definition at line 66 of file class.ilExportFieldsInfo.php.
Referenced by ilMemberExportGUI::__construct(), ilExportUserSettings::getOrderedExportableFields(), ilObjCourseGUI::infoScreen(), ilCourseRegisterGUI::showAgreement(), and ilCourseAgreementGUI::showAgreement().
{
if(is_object(self::$instance))
{
return self::$instance;
}
return self::$instance = new ilExportFieldsInfo();
}
Here is the caller graph for this function:| ilExportFieldsInfo::exportableFieldsToInfoString | ( | ) |
Get exportable fields as info string.
public
Definition at line 122 of file class.ilExportFieldsInfo.php.
References getExportableFields().
{
$fields = array();
foreach($this->getExportableFields() as $field)
{
$fields[] = $this->lng->txt($field);
}
return implode('<br />',$fields);
}
Here is the call graph for this function:| ilExportFieldsInfo::getExportableFields | ( | ) |
Get Exportable Fields.
public
Definition at line 104 of file class.ilExportFieldsInfo.php.
Referenced by exportableFieldsToInfoString().
{
foreach($this->possible_fields as $field => $exportable)
{
if($exportable)
{
$fields[] = $field;
}
}
return $fields ? $fields : array();
}
Here is the caller graph for this function:| ilExportFieldsInfo::getFieldsInfo | ( | ) |
Get informations (exportable) about user data profile fields.
public
Definition at line 94 of file class.ilExportFieldsInfo.php.
{
return $this->possible_fields;
}
| ilExportFieldsInfo::isExportable | ( | $ | a_field_name | ) |
Check if field is exportable.
public
| string | field name |
Definition at line 83 of file class.ilExportFieldsInfo.php.
{
return array_key_exists($a_field_name,$this->possible_fields);
}
| ilExportFieldsInfo::read | ( | ) | [private] |
Read info about exportable fields.
private
Definition at line 138 of file class.ilExportFieldsInfo.php.
Referenced by __construct().
{
$this->possible_fields = array(
'login' => 1,
'gender' => 1,
'lastname' => 1,
'firstname' => 1,
'title' => 0,
'institution' => 0,
'department' => 0,
'street' => 0,
'zipcode' => 0,
'city' => 0,
'country' => 0,
'phone_home' => 0,
'phone_mobile' => 0,
'phone_office' => 0,
'fax' => 0,
'email' => 0,
'matriculation' => 0);
$settings_all = $this->settings->getAll();
foreach($settings_all as $key => $value)
{
if(stristr($key,'usr_settings_course_export_') and $value)
{
$field = substr($key,27);
if(array_key_exists($field,$this->possible_fields))
{
$this->possible_fields[$field] = 1;
}
}
}
return true;
}
Here is the caller graph for this function:ilExportFieldsInfo::$db [private] |
Definition at line 38 of file class.ilExportFieldsInfo.php.
ilExportFieldsInfo::$instance = null [static, private] |
Definition at line 35 of file class.ilExportFieldsInfo.php.
ilExportFieldsInfo::$lng [private] |
Definition at line 39 of file class.ilExportFieldsInfo.php.
Referenced by __construct().
ilExportFieldsInfo::$possible_fields = array() [private] |
Definition at line 41 of file class.ilExportFieldsInfo.php.
ilExportFieldsInfo::$settings [private] |
Definition at line 37 of file class.ilExportFieldsInfo.php.
1.7.1