ILIAS  release_8 Revision v8.25
class.ilFileData.php
Go to the documentation of this file.
1<?php
2/******************************************************************************
3 *
4 * This file is part of ILIAS, a powerful learning management system.
5 *
6 * ILIAS is licensed with the GPL-3.0, you should have received a copy
7 * of said license along with the source code.
8 *
9 * If this is not the case or you just want to try ILIAS, you'll find
10 * us at:
11 * https://www.ilias.de
12 * https://github.com/ILIAS-eLearning
13 *
14 *****************************************************************************/
18class ilFileData extends ilFile
19{
20 public function __construct()
21 {
22 $this->path = defined('CLIENT_DATA_DIR') ? CLIENT_DATA_DIR : '';
23 }
24
25 public function checkPath(string $a_path): bool
26 {
27 if (is_writable($a_path)) {
28 return true;
29 } else {
30 return false;
31 }
32 }
33
34 public function getPath(): string
35 {
36 return $this->path;
37 }
38}
checkPath(string $a_path)
Base class for all file (directory) operations This class is abstract and needs to be extended.
string $path
const CLIENT_DATA_DIR
Definition: constants.php:46