ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
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 ilFileData()
24 {
25 parent::ilFile();
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?>
This class handles all operations on files in directory /ilias_data/.
checkPath($a_path)
check if path exists and is writable
getPath()
get Path @access public
ilFileData()
Constructor class bas constructor and read path of directory from ilias.ini setup an mail object @acc...
Base class for all file (directory) operations This class is abstract and needs to be extended.