ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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 function __construct()
24 {
25 parent::__construct();
26 $this->path = CLIENT_DATA_DIR;
27 }
28
35 function checkPath($a_path)
36 {
37 if(is_writable($a_path))
38 {
39 return true;
40 }
41 else
42 {
43 return false;
44 }
45 }
46
52 function getPath()
53 {
54 return $this->path;
55 }
56}
57?>
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.