ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
class.ilFileData.php
Go to the documentation of this file.
1<?php
2/* Copyright (c) 1998-2009 ILIAS open source, Extended GPL, see docs/LICENSE */
3
4
12require_once("./Services/FileSystem/classes/class.ilFile.php");
13
14class ilFileData extends ilFile
15{
16
23 public function __construct()
24 {
26 $this->path = CLIENT_DATA_DIR;
27 }
28
35 public function checkPath($a_path)
36 {
37 if (is_writable($a_path)) {
38 return true;
39 } else {
40 return false;
41 }
42 }
43
49 public function getPath()
50 {
51 return $this->path;
52 }
53}
An exception for terminatinating execution or to throw for unit testing.
This class handles all operations on files in directory /ilias_data/.
__construct()
Constructor class bas constructor and read path of directory from ilias.ini setup an mail object @acc...
checkPath($a_path)
check if path exists and is writable
getPath()
get Path @access public
Base class for all file (directory) operations This class is abstract and needs to be extended.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc