ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilFileData Class Reference

This class handles all operations on files in directory /ilias_data/. More...

+ Inheritance diagram for ilFileData:
+ Collaboration diagram for ilFileData:

Public Member Functions

 __construct ()
 Constructor class bas constructor and read path of directory from ilias.ini setup an mail object public. More...
 
 checkPath ($a_path)
 check if path exists and is writable More...
 
 getPath ()
 get Path public More...
 
- Public Member Functions inherited from ilFile
 __construct ()
 Constructor get ilias object public. More...
 
 deleteTrailingSlash ($a_path)
 delete trailing slash of path variables More...
 

Additional Inherited Members

- Data Fields inherited from ilFile
 $path
 
 $ilias
 

Detailed Description

This class handles all operations on files in directory /ilias_data/.

Author
Stefan Meyer meyer.nosp@m.@lei.nosp@m.fos.c.nosp@m.om
Version
$Id$

Definition at line 14 of file class.ilFileData.php.

Constructor & Destructor Documentation

◆ __construct()

ilFileData::__construct ( )

Constructor class bas constructor and read path of directory from ilias.ini setup an mail object public.

Definition at line 23 of file class.ilFileData.php.

24  {
25  parent::__construct();
26  $this->path = CLIENT_DATA_DIR;
27  }

Member Function Documentation

◆ checkPath()

ilFileData::checkPath (   $a_path)

check if path exists and is writable

Parameters
stringpath to check public
Returns
bool

Definition at line 35 of file class.ilFileData.php.

36  {
37  if (is_writable($a_path)) {
38  return true;
39  } else {
40  return false;
41  }
42  }

◆ getPath()

ilFileData::getPath ( )

get Path public

Returns
string path

Definition at line 49 of file class.ilFileData.php.

References ilFile\$path.

Referenced by ilFileDataCourse\__initDirectory(), ilFileDataForumDrafts\__initDirectory(), ilFileDataForum\__initDirectory(), and ilFileDataMail\initDirectory().

50  {
51  return $this->path;
52  }
+ Here is the caller graph for this function:

The documentation for this class was generated from the following file: