ILIAS  release_7 Revision v7.30-3-g800a261c036
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
6
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}
An exception for terminatinating execution or to throw for unit testing.
Wiki HTML exporter class.
exportUserImages($dir, $user_ids)
Export user images.
static makeDirParents($a_dir)
Create a new directory and all parent directories.
const CLIENT_ID
Definition: constants.php:39
$source
Definition: metadata.php:76