ILIAS  trunk Revision v12.0_alpha-377-g3641b37b9db
ilObjUserFolder Class Reference

Class ilObjUserFolder. More...

+ Inheritance diagram for ilObjUserFolder:
+ Collaboration diagram for ilObjUserFolder:

Public Member Functions

 __construct (int $a_id, bool $a_call_by_reference=true)
 
 delete ()
 delete object or referenced object (in the case of a referenced object, object data is only deleted if last reference is deleted) This function removes an object entirely from system!! More...
 
 getExportFilename (string $a_mode=self::FILE_TYPE_EXCEL)
 
 getExportDirectory ()
 
 getExportFiles ()
 Get a list of the already exported files in the export directory. More...
 
 buildExportFile (string $a_mode=self::FILE_TYPE_EXCEL, ?array $user_data_filter=null, bool $use_temp_dir=false)
 build xml export file More...
 
- Public Member Functions inherited from ilObject
 getObjectProperties ()
 
 flushObjectProperties ()
 
 withReferences ()
 determines whether objects are referenced or not (got ref ids or not) More...
 
 processAutoRating ()
 
 read ()
 
 getId ()
 
 setId (int $id)
 
 setRefId (int $ref_id)
 
 getRefId ()
 
 getType ()
 
 setType (string $type)
 
 getPresentationTitle ()
 get presentation title Normally same as title Overwritten for sessions More...
 
 getTitle ()
 
 getUntranslatedTitle ()
 Get untranslated object title WebDAV needs to access the untranslated title of an object. More...
 
 setTitle (string $title)
 
 getDescription ()
 
 setDescription (string $description)
 
 getLongDescription ()
 get object long description (stored in object_description) More...
 
 getImportId ()
 
 setImportId (string $import_id)
 
 setOfflineStatus (bool $status)
 
 getOfflineStatus ()
 
 supportsOfflineHandling ()
 
 getOwner ()
 
 getOwnerName ()
 get full name of object owner More...
 
 setOwner (int $usr_id)
 
 getCreateDate ()
 Get create date in YYYY-MM-DD HH-MM-SS format. More...
 
 getLastUpdateDate ()
 Get last update date in YYYY-MM-DD HH-MM-SS format. More...
 
 create ()
 note: title, description and type should be set when this function is called More...
 
 update ()
 
 MDUpdateListener (string $element)
 Metadata update listener. More...
 
 createMetaData ()
 
 updateMetaData ()
 
 deleteMetaData ()
 
 updateOwner ()
 update owner of object in db More...
 
 putInTree (int $parent_ref_id)
 maybe this method should be in tree object!? More...
 
 setPermissions (int $parent_ref_id)
 
 setParentRolePermissions (int $parent_ref_id)
 Initialize the permissions of parent roles (local roles of categories, global roles...) This method is overwritten in e.g. More...
 
 createReference ()
 creates reference for object More...
 
 countReferences ()
 
 delete ()
 delete object or referenced object (in the case of a referenced object, object data is only deleted if last reference is deleted) This function removes an object entirely from system!! More...
 
 initDefaultRoles ()
 init default roles settings Purpose of this function is to create a local role folder and local roles, that are needed depending on the object type. More...
 
 applyDidacticTemplate (int $tpl_id)
 
 getXMLZip ()
 
 getHTMLDirectory ()
 
 appendCopyInfo (int $target_id, int $copy_id, int $new_obj_id)
 Prepend Copy info if object with same name exists in that container. More...
 
 cloneDependencies (int $target_id, int $copy_id)
 Clone object dependencies. More...
 
 cloneMetaData (ilObject $target_obj)
 Copy meta data. More...
 
 selfOrParentWithRatingEnabled ()
 
 getPossibleSubObjects (bool $filter=true)
 get all possible sub objects of this type the object can decide which types of sub objects are possible jut in time overwrite if the decision distinguish from standard model More...
 

Static Public Member Functions

static getProfileFields ()
 Get profile fields. More...
 
static _updateUserFolderAssignment (int $a_old_id, int $a_new_id)
 Update user folder assignment Typically called after deleting a category with local user accounts. More...
 
- Static Public Member Functions inherited from ilObject
static _lookupObjIdByImportId (string $import_id)
 Get (latest) object id for an import id. More...
 
static _lookupImportId (int $obj_id)
 
static _lookupOwnerName (int $owner_id)
 Lookup owner name for owner id. More...
 
static _getIdForImportId (string $import_id)
 
static _getAllReferences (int $id)
 get all reference ids for object ID More...
 
static _lookupTitle (int $obj_id)
 
static lookupOfflineStatus (int $obj_id)
 Lookup offline status using objectDataCache. More...
 
static _lookupOwner (int $obj_id)
 Lookup owner user ID for object ID. More...
 
static _getIdsForTitle (string $title, string $type='', bool $partial_match=false)
 
static _lookupDescription (int $obj_id)
 
static _lookupLastUpdate (int $obj_id, bool $formatted=false)
 
static _getLastUpdateOfObjects (array $obj_ids)
 
static _lookupObjId (int $ref_id)
 
static _setDeletedDate (int $ref_id, int $deleted_by)
 
static setDeletedDates (array $ref_ids, int $user_id)
 
static _resetDeletedDate (int $ref_id)
 
static _lookupDeletedDate (int $ref_id)
 
static _writeTitle (int $obj_id, string $title)
 write title to db (static) More...
 
static _writeDescription (int $obj_id, string $desc)
 write description to db (static) More...
 
static _writeImportId (int $obj_id, string $import_id)
 write import id to db (static) More...
 
static _lookupType (int $id, bool $reference=false)
 
static _isInTrash (int $ref_id)
 
static _hasUntrashedReference (int $obj_id)
 checks whether an object has at least one reference that is not in trash More...
 
static _lookupObjectId (int $ref_id)
 
static _getObjectsDataForType (string $type, bool $omit_trash=false)
 get all objects of a certain type More...
 
static _exists (int $id, bool $reference=false, ?string $type=null)
 checks if an object exists in object_data More...
 
static _getObjectsByType (string $obj_type="", ?int $owner=null)
 
static _prepareCloneSelection (array $ref_ids, string $new_type, bool $show_path=true)
 Prepare copy wizard object selection. More...
 
static getIconForType (string $type)
 
static _getIcon (int $obj_id=0, string $size="big", string $type="", bool $offline=false)
 Get icon for repository item. More...
 
static collectDeletionDependencies (array &$deps, int $ref_id, int $obj_id, string $type, int $depth=0)
 Collect deletion dependencies. More...
 
static getDeletionDependencies (int $obj_id)
 Get deletion dependencies. More...
 
static getLongDescriptions (array $obj_ids)
 
static getAllOwnedRepositoryObjects (int $user_id)
 
static fixMissingTitles ($type, array &$obj_title_map)
 Try to fix missing object titles. More...
 
static _lookupCreationDate (int $obj_id)
 
static _getObjectTypeIdByTitle (string $type, ?\ilDBInterface $ilDB=null)
 

Data Fields

const string PERM_READ_ALL = 'read_all_accounts'
 
const string PERM_READ_ALL_AND_WRITE = 'read_all_accounts,write'
 
const ORG_OP_EDIT_USER_ACCOUNTS = 'edit_user_accounts'
 
const FILE_TYPE_EXCEL = 'userfolder_export_excel_x86'
 
const FILE_TYPE_CSV = 'userfolder_export_csv'
 
const FILE_TYPE_XML = 'userfolder_export_xml'
 
- Data Fields inherited from ilObject
const TITLE_LENGTH = 255
 
const DESC_LENGTH = 128
 
const LONG_DESC_LENGTH = 4000
 
const TABLE_OBJECT_DATA = "object_data"
 
array $objectList
 
string $untranslatedTitle
 

Protected Member Functions

 escapeXML (string $value)
 
 createXMLExport (array $fields_to_export, array $data, string $filename)
 
 createCSVExport (array $fields_to_export, array $data, string $filename)
 
 createExcelExport (array $fields_to_export, array $data, string $filename)
 
- Protected Member Functions inherited from ilObject
 doMDUpdateListener (string $a_element)
 
 beforeMDUpdateListener (string $a_element)
 
 doCreateMetaData ()
 
 beforeCreateMetaData ()
 
 doUpdateMetaData ()
 
 beforeUpdateMetaData ()
 
 doDeleteMetaData ()
 
 beforeDeleteMetaData ()
 
 handleAutoRating ()
 
 hasAutoRating ()
 

Private Member Functions

 processCSVRow (array $row)
 
 retrieveExportDataArray (string $usr_ids_where)
 
 retrieveMultiRowDataArray (string $usr_ids_where)
 
 buildWhereForUserDataFilterArray (array $user_data_filter)
 
 createExportDirectory ()
 creates data directory for export files More...
 

Private Attributes

Profile $profile
 
SettingsImplementation $settings
 

Additional Inherited Members

- Protected Attributes inherited from ilObject
ilLogger $obj_log
 
ILIAS $ilias
 
ilObjectDefinition $obj_definition
 
ilDBInterface $db
 
ilLogger $log
 
ilErrorHandling $error
 
ilTree $tree
 
ilAppEventHandler $app_event_handler
 
ilRbacAdmin $rbac_admin
 
ilRbacReview $rbac_review
 
ilObjUser $user
 
ilLanguage $lng
 
LOMServices $lom_services
 
bool $call_by_reference
 
int $max_title = self::TITLE_LENGTH
 
int $max_desc = self::DESC_LENGTH
 
bool $add_dots = true
 
int $ref_id = null
 
string $type = ""
 
string $title = ""
 
string $desc = ""
 
string $long_desc = ""
 
int $owner = 0
 
string $create_date = ""
 
string $last_update = ""
 
string $import_id = ""
 
bool $register = false
 

Detailed Description

Class ilObjUserFolder.

Author
Stefan Meyer meyer.nosp@m.@lei.nosp@m.fos.c.nosp@m.om

Definition at line 34 of file class.ilObjUserFolder.php.

Constructor & Destructor Documentation

◆ __construct()

ilObjUserFolder::__construct ( int  $a_id,
bool  $a_call_by_reference = true 
)

Definition at line 49 of file class.ilObjUserFolder.php.

52 {
53 $this->type = 'usrf';
54 parent::__construct($a_id, $a_call_by_reference);
55
56 $this->profile = LocalDIC::dic()[Profile::class];
57 $this->settings = LocalDIC::dic()[Settings::class];
58 }
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc

References ILIAS\GlobalScreen\Provider\__construct(), ILIAS\Repository\profile(), and ILIAS\Repository\settings().

+ Here is the call graph for this function:

Member Function Documentation

◆ _updateUserFolderAssignment()

static ilObjUserFolder::_updateUserFolderAssignment ( int  $a_old_id,
int  $a_new_id 
)
static

Update user folder assignment Typically called after deleting a category with local user accounts.

These users will be assigned to the global user folder.

Definition at line 410 of file class.ilObjUserFolder.php.

413 : void {
414 global $DIC;
415
416 $ilDB = $DIC['ilDB'];
417
418 $query = 'UPDATE usr_data SET time_limit_owner = ' . $ilDB->quote($a_new_id, ilDBConstants::T_INTEGER) . ' ' .
419 'WHERE time_limit_owner = ' . $ilDB->quote($a_old_id, ilDBConstants::T_INTEGER) . ' ';
420 $ilDB->manipulate($query);
421 }
global $DIC
Definition: shib_login.php:26

Referenced by ilObjCategory\delete(), and ilObjOrgUnit\delete().

+ Here is the caller graph for this function:

◆ buildExportFile()

ilObjUserFolder::buildExportFile ( string  $a_mode = self::FILE_TYPE_EXCEL,
?array  $user_data_filter = null,
bool  $use_temp_dir = false 
)

build xml export file

Definition at line 265 of file class.ilObjUserFolder.php.

269 : string {
270 if ($use_temp_dir) {
271 $export_dir = ilFileUtils::ilTempnam();
272 $fullname = $export_dir;
273 } else {
274 $export_dir = $this->getExportDirectory();
275 // create export directory if needed
276 $this->createExportDirectory();
277 $fullname = $export_dir . '/' . $this->getExportFilename($a_mode);
278 }
279
280 $fields_to_export = $this->getExportFieldArray(
281 $this->lng,
282 $this->profile,
283 $this->settings
284 );
286 $this->buildWhereForUserDataFilterArray($user_data_filter ?? [])
287 );
288
289 switch ($a_mode) {
291 $this->createExcelExport($fields_to_export, $data, $fullname);
292 break;
294 $this->createCSVExport($fields_to_export, $data, $fullname);
295 break;
297 $this->createXMLExport($fields_to_export, $data, $fullname);
298 break;
299 }
300 return $fullname;
301 }
static ilTempnam(?string $a_temp_path=null)
Returns a unique and non existing Path for e temporary file or directory.
createExportDirectory()
creates data directory for export files
createExcelExport(array $fields_to_export, array $data, string $filename)
buildWhereForUserDataFilterArray(array $user_data_filter)
createCSVExport(array $fields_to_export, array $data, string $filename)
createXMLExport(array $fields_to_export, array $data, string $filename)
retrieveExportDataArray(string $usr_ids_where)
getExportFilename(string $a_mode=self::FILE_TYPE_EXCEL)

References ilFileUtils\ilTempnam().

+ Here is the call graph for this function:

◆ buildWhereForUserDataFilterArray()

ilObjUserFolder::buildWhereForUserDataFilterArray ( array  $user_data_filter)
private

Definition at line 360 of file class.ilObjUserFolder.php.

360 : string
361 {
362 if ($user_data_filter === []) {
363 return '';
364 }
365
366 return $this->db->in('usr_id', $user_data_filter, false, ilDBConstants::T_INTEGER);
367 }

References ilDBConstants\T_INTEGER.

◆ createCSVExport()

ilObjUserFolder::createCSVExport ( array  $fields_to_export,
array  $data,
string  $filename 
)
protected

Definition at line 157 of file class.ilObjUserFolder.php.

161 : void {
162 $headerrow = [];
163 $udf_ex_fields = $this->getUserDefinedExportFields();
164 foreach ($fields_to_export as $value) { // standard fields
165 $headerrow[] = $this->lng->txt($value);
166 }
167 foreach ($udf_ex_fields as $f) { // custom fields
168 $headerrow[] = $f['name'];
169 }
170
171 $file = fopen($filename, 'wb');
172 fwrite($file, $this->processCSVRow($headerrow) . "\n");
173 foreach ($data as $row) {
174 $csvrow = [];
175 foreach ($settings as $header) { // standard fields
176 // multi-text
177 if (isset($row[$header]) && is_array($row[$header])) {
178 $row[$header] = implode(', ', $row[$header]);
179 }
180
181 $csvrow[] = $row[$header] ?? '';
182 }
183
184 // custom fields
185 reset($udf_ex_fields);
186 if (count($udf_ex_fields) > 0) {
187 $udf = $this->profile->getDataFor($row['usr_id']);
188 foreach ($udf_ex_fields as $f) { // custom fields
189 $csvrow[] = $udf->get('f_' . $f['id']);
190 }
191 }
192
193 fwrite($file, $this->processCSVRow($csvrow) . "\n");
194 }
195 fclose($file);
196 }
$filename
Definition: buildRTE.php:78
SettingsImplementation $settings

◆ createExcelExport()

ilObjUserFolder::createExcelExport ( array  $fields_to_export,
array  $data,
string  $filename 
)
protected

Definition at line 198 of file class.ilObjUserFolder.php.

202 : void {
203 $worksheet = new ilExcel();
204 $worksheet->addSheet($this->lng->txt('users'));
205
206 $row = 1;
207 $col = 0;
208
209 // title row
210 foreach ($fields_to_export as $label) { // standard fields
211 $worksheet->setCell($row, $col, $label);
212 $col++;
213 }
214 $worksheet->setBold('A1:' . $worksheet->getColumnCoord($col - 1) . '1');
215
216 $this->lng->loadLanguageModule('meta');
217 foreach ($data as $rowdata) {
218 $row++;
219 $col = 0;
220
221 // standard fields
222 foreach (array_keys($fields_to_export) as $fieldname) {
223 $value = $rowdata[$fieldname] ?? '';
224 switch ($fieldname) {
225 case 'language':
226 $worksheet->setCell($row, $col, $this->lng->txt('meta_l_' . $value));
227 break;
228 case 'time_limit_from':
229 case 'time_limit_until':
230 $value = $value
231 ? new ilDateTime($value, IL_CAL_UNIX)
232 : null;
233 $worksheet->setCell($row, $col, $value);
234 break;
235 case 'last_login':
236 case 'last_update':
237 case 'create_date':
238 case 'approve_date':
239 case 'agree_date':
240 $value = $value
241 ? new ilDateTime($value, IL_CAL_DATETIME)
242 : null;
243 $worksheet->setCell($row, $col, $value);
244 break;
245
246 default:
247 $worksheet->setCell(
248 $row,
249 $col,
250 is_array($value) && $value !== []
251 ? implode(', ', $value)
252 : $value
253 );
254 }
255 $col++;
256 }
257 }
258
259 $worksheet->writeToFile($filename);
260 }
const IL_CAL_UNIX
const IL_CAL_DATETIME
@classDescription Date and time handling

◆ createExportDirectory()

ilObjUserFolder::createExportDirectory ( )
private

creates data directory for export files

Definition at line 373 of file class.ilObjUserFolder.php.

373 : void
374 {
375 if (!is_dir($this->getExportDirectory())) {
376 $usrf_data_dir = ilFileUtils::getDataDir() . '/usrf_data';
377 ilFileUtils::makeDir($usrf_data_dir);
378 if (!is_writable($usrf_data_dir)) {
379 $this->ilias->raiseError('Userfolder data directory (' . $usrf_data_dir
380 . ') not writeable.', $this->ilias->error_obj->MESSAGE);
381 }
382
383 // create Export subdirectory (data_dir/lm_data/lm_<id>/Export)
384 $export_dir = $usrf_data_dir . '/export';
385 ilFileUtils::makeDir($export_dir);
386 if (!is_dir($export_dir)) {
387 $this->ilias->raiseError('Creation of Userfolder Export Directory failed.', $this->ilias->error_obj->MESSAGE);
388 }
389 }
390 }
static makeDir(string $a_dir)
creates a new directory and inherits all filesystem permissions of the parent directory You may pass ...
static getDataDir()
get data directory (outside webspace)
Class ilObjForumAdministration.

References ilFileUtils\getDataDir(), and ilFileUtils\makeDir().

+ Here is the call graph for this function:

◆ createXMLExport()

ilObjUserFolder::createXMLExport ( array  $fields_to_export,
array  $data,
string  $filename 
)
protected

Definition at line 140 of file class.ilObjUserFolder.php.

144 : void {
145 $xml_writer = new ilUserXMLWriter();
146 $xml_writer->setObjects($data);
147 $xml_writer->setFieldsToExport(
148 array_merge(array_keys($fields_to_export), ['time_limit_owner'])
149 );
150 $xml_writer->setAttachRoles(true);
151
152 if ($xml_writer->start()) {
153 fwrite(fopen($filename, 'wb'), $xml_writer->getXML());
154 }
155 }
XML writer class Class to simplify manual writing of xml documents.

References $filename.

◆ delete()

ilObjUserFolder::delete ( )

delete object or referenced object (in the case of a referenced object, object data is only deleted if last reference is deleted) This function removes an object entirely from system!!

Returns
bool true if object was removed completely; false if only a references was removed

Reimplemented from ilObject.

Definition at line 61 of file class.ilObjUserFolder.php.

61 : bool
62 {
63 return false;
64 }

◆ escapeXML()

ilObjUserFolder::escapeXML ( string  $value)
protected

Definition at line 135 of file class.ilObjUserFolder.php.

135 : string
136 {
137 return str_replace(['&', '<', '>'], ['&amp;', '&lt;', '&gt;'], $value);
138 }

◆ getExportDirectory()

ilObjUserFolder::getExportDirectory ( )

Definition at line 88 of file class.ilObjUserFolder.php.

88 : string
89 {
90 $export_dir = ilFileUtils::getDataDir() . '/usrf_data/export';
91
92 return $export_dir;
93 }

References ilFileUtils\getDataDir().

+ Here is the call graph for this function:

◆ getExportFilename()

ilObjUserFolder::getExportFilename ( string  $a_mode = self::FILE_TYPE_EXCEL)

Definition at line 66 of file class.ilObjUserFolder.php.

68 : string {
69 $filename = '';
70 $inst_id = IL_INST_ID;
71
72 $date = time();
73
74 switch ($a_mode) {
76 $filename = $date . '__' . $inst_id . '__xls_usrf';
77 break;
79 $filename = $date . '__' . $inst_id . '__csv_usrf.csv';
80 break;
82 $filename = $date . '__' . $inst_id . '__xml_usrf.xml';
83 break;
84 }
85 return $filename;
86 }
const IL_INST_ID
Definition: constants.php:40

◆ getExportFiles()

ilObjUserFolder::getExportFiles ( )

Get a list of the already exported files in the export directory.

Returns
array<string,string>[]

Definition at line 99 of file class.ilObjUserFolder.php.

99 : array
100 {
101 $dir = $this->getExportDirectory();
102
103 // quit if export dir not available
104 if (!is_dir($dir)
105 || !is_writable($dir)) {
106 return [];
107 }
108
109 // open directory
110 $dir = dir($dir);
111
112 // initialize array
113 $file = [];
114
115 // get files and save the in the array
116 while ($entry = $dir->read()) {
117 if ($entry !== '.'
118 && $entry !== '..'
119 && preg_match('/^[0-9]{10}_{2}[0-9]+_{2}([a-z0-9]{3})_usrf\.[a-z]{1,4}$/', $entry, $matches)) {
120 $filearray['filename'] = $entry;
121 $filearray['filesize'] = filesize($this->getExportDirectory() . '/' . $entry);
122 $file[] = $filearray;
123 }
124 }
125
126 // close import directory
127 $dir->close();
128
129 // sort files
130 sort($file);
131
132 return $file;
133 }

References ILIAS\UI\examples\Symbol\Glyph\Sort\sort().

+ Here is the call graph for this function:

◆ getProfileFields()

static ilObjUserFolder::getProfileFields ( )
static

Get profile fields.

Deprecated:
use ilUserProfile() instead

Definition at line 397 of file class.ilObjUserFolder.php.

397 : array // Missing array type.
398 {
399 return array_key(LocalDIC::dic()[Profile::class]->getFields(
400 [],
401 [Alias::class, Roles::class]
402 ));
403 }

◆ processCSVRow()

ilObjUserFolder::processCSVRow ( array  $row)
private

Definition at line 303 of file class.ilObjUserFolder.php.

303 : array
304 {
305 $resultarray = [];
306 foreach ($row as $rowindex => $entry) {
307 $resultarray[$rowindex] = iconv(
308 'UTF-8',
309 'ISO-8859-1',
310 '"' . str_replace(chr(13) . chr(10), chr(10), $entry) . '"'
311 );
312 }
313 return implode(';', $resultarray);
314 }

◆ retrieveExportDataArray()

ilObjUserFolder::retrieveExportDataArray ( string  $usr_ids_where)
private

Definition at line 316 of file class.ilObjUserFolder.php.

316 : array
317 {
318 $query = "SELECT * FROM usr_pref WHERE keyword = {$this->db->quote('language', 'text')}";
319 if ($usr_ids_where !== '') {
320 $query .= "AND {$usr_ids_where}";
321 }
322 $res = $this->db->query($query);
323 $languages = [];
324 while ($row = $res->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) {
325 $languages[$row['usr_id']] = $row['value'];
326 }
327
328 // multi-text
329 $multi = $this->retrieveMultiRowDataArray($usr_ids_where);
330
331 $query = 'SELECT usr_data.* FROM usr_data ';
332 if ($usr_ids_where !== '') {
333 $query .= "WHERE {$usr_ids_where} ";
334 }
335 $set = $this->db->query("{$query} ORDER BY usr_data.lastname, usr_data.firstname");
336
337 $data = [];
338 while ($row = $this->db->fetchAssoc($set)) {
339 $row['language'] = $languages[$row['usr_id']] ?? $this->lng->getDefaultLanguage();
340 $data[] = array_merge($row, $multi[$row['usr_id']] ?? []);
341 }
342
343 return $data;
344 }
retrieveMultiRowDataArray(string $usr_ids_where)
$res
Definition: ltiservices.php:69

References $data, $res, ilDBConstants\FETCHMODE_ASSOC, and ILIAS\Repository\lng().

+ Here is the call graph for this function:

◆ retrieveMultiRowDataArray()

ilObjUserFolder::retrieveMultiRowDataArray ( string  $usr_ids_where)
private

Definition at line 346 of file class.ilObjUserFolder.php.

346 : array
347 {
348 $query = 'SELECT * FROM usr_profile_data';
349 if ($usr_ids_where !== '') {
350 $query .= " WHERE {$usr_ids_where}";
351 }
352 $set = $this->db->query($query);
353 $multi = [];
354 while ($row = $this->db->fetchAssoc($set)) {
355 $multi[$row['usr_id']][$row['field_id']][] = $row['value'];
356 }
357 return $multi;
358 }

Field Documentation

◆ $profile

Profile ilObjUserFolder::$profile
private

Definition at line 46 of file class.ilObjUserFolder.php.

◆ $settings

SettingsImplementation ilObjUserFolder::$settings
private

Definition at line 47 of file class.ilObjUserFolder.php.

◆ FILE_TYPE_CSV

const ilObjUserFolder::FILE_TYPE_CSV = 'userfolder_export_csv'

Definition at line 43 of file class.ilObjUserFolder.php.

Referenced by ilObjUserFolderGUI\usrExportCsvObject().

◆ FILE_TYPE_EXCEL

const ilObjUserFolder::FILE_TYPE_EXCEL = 'userfolder_export_excel_x86'

Definition at line 42 of file class.ilObjUserFolder.php.

Referenced by ilObjUserFolderGUI\usrExportX86Object().

◆ FILE_TYPE_XML

const ilObjUserFolder::FILE_TYPE_XML = 'userfolder_export_xml'

Definition at line 44 of file class.ilObjUserFolder.php.

Referenced by ilObjUserFolderGUI\usrExportXmlObject().

◆ ORG_OP_EDIT_USER_ACCOUNTS

◆ PERM_READ_ALL

◆ PERM_READ_ALL_AND_WRITE


The documentation for this class was generated from the following file: