ILIAS
release_7 Revision v7.30-3-g800a261c036
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
l
m
p
r
s
t
w
+
Functions
_
a
b
c
f
g
h
i
r
s
t
w
+
Variables
$
c
d
e
f
g
h
j
l
m
p
s
t
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Files
File List
+
Globals
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
UserHtmlExport.php
Go to the documentation of this file.
1
<?php
2
3
/* Copyright (c) 1998-2019 ILIAS open source, Extended GPL, see docs/LICENSE */
4
5
namespace
ILIAS\User\Export
;
6
12
class
UserHtmlExport
13
{
17
public
function
__construct
()
18
{
19
}
20
24
public
function
exportUserImages
($dir, $user_ids)
25
{
26
$base_dir = $dir.
"/data/"
.
CLIENT_ID
.
"/usr_images"
;
27
\ilUtil::makeDirParents
($base_dir);
28
foreach
($user_ids as $id) {
29
$source
=
"./data/"
.CLIENT_ID.
"/usr_images/usr_$id.jpg"
;
30
if
(is_file(
$source
)) {
31
copy(
$source
, $base_dir.
"/usr_$id.jpg"
);
32
}
33
}
34
}
35
}
ILIAS\User\Export\UserHtmlExport\exportUserImages
exportUserImages($dir, $user_ids)
Export user images.
Definition:
UserHtmlExport.php:24
ilUtil\makeDirParents
static makeDirParents($a_dir)
Create a new directory and all parent directories.
Definition:
class.ilUtil.php:2205
ILIAS\User\Export
Definition:
UserHtmlExport.php:5
ILIAS\User\Export\UserHtmlExport\__construct
__construct()
Constructor.
Definition:
UserHtmlExport.php:17
CLIENT_ID
const CLIENT_ID
Definition:
constants.php:39
ILIAS\User\Export\UserHtmlExport
Wiki HTML exporter class.
Definition:
UserHtmlExport.php:12
$source
$source
Definition:
metadata.php:76
Services
User
Export
UserHtmlExport.php
Generated on Fri Apr 4 2025 21:01:44 for ILIAS by
1.8.13 (using
Doxyfile
)