ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
ilTestProcessLockFileStorage Class Reference
+ Inheritance diagram for ilTestProcessLockFileStorage:
+ Collaboration diagram for ilTestProcessLockFileStorage:

Public Member Functions

 __construct ($activeId)
 
 create ()
 Create directory. More...
 
- Public Member Functions inherited from ilFileSystemStorage
 __construct ($a_storage_type, $a_path_conversion, $a_container_id)
 Constructor. More...
 
 getContainerId ()
 
 create ()
 Create directory. More...
 
 getAbsolutePath ()
 Get absolute path of storage directory. More...
 
 writeToFile ($a_data, $a_absolute_path)
 Write data to file. More...
 
 deleteFile ($a_abs_name)
 Delete file. More...
 
 deleteDirectory ($a_abs_name)
 Delete directory. More...
 
 delete ()
 Delete complete directory. More...
 
 copyFile ($a_from, $a_to)
 Copy files. More...
 
 appendToPath ($a_appendix)
 
 getStorageType ()
 
 getPath ()
 Get path. More...
 
 __construct ($a_storage_type, $a_path_conversion, $a_container_id)
 Constructor. More...
 
 create ()
 Create directory. More...
 
 getAbsolutePath ()
 Get absolute path of storage directory. More...
 
 getShortPath ()
 
 rename ($from, $to)
 

Protected Member Functions

 getPathPrefix ()
 Get path prefix. More...
 
 getPathPostfix ()
 Get directory name. More...
 
- Protected Member Functions inherited from ilFileSystemStorage
 getPathPrefix ()
 Get path prefix. More...
 
 getPathPostfix ()
 Get directory name. More...
 
 init ()
 Read path info. More...
 
 getPathPrefix ()
 Get path prefix. More...
 
 getPathPostfix ()
 Get directory name. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from ilFileSystemStorage
static _createPathFromId ($a_container_id, $a_name)
 Create a path from an id: e.g 12345 will be converted to 12/34/<name>_5. More...
 
 _copyDirectory ($a_source, $a_target)
 Copy directory and all contents. More...
 
static _createPathFromId ($a_container_id, $a_name)
 Create a path from an id: e.g 12345 will be converted to 12/34/<name>_5. More...
 
- Data Fields inherited from ilFileSystemStorage
const STORAGE_WEB = 1
 
const STORAGE_DATA = 2
 
const STORAGE_SECURED = 3
 
const FACTOR = 100
 
const MAX_EXPONENT = 3
 
const SECURED_DIRECTORY = "sec"
 
- Protected Attributes inherited from ilFileSystemStorage
 $path
 

Detailed Description

Definition at line 12 of file class.ilTestProcessLockFileStorage.php.

Constructor & Destructor Documentation

◆ __construct()

ilTestProcessLockFileStorage::__construct (   $activeId)
Parameters
integer$activeId

Definition at line 17 of file class.ilTestProcessLockFileStorage.php.

18 {
19 parent::__construct(ilFileSystemStorage::STORAGE_DATA, true, $activeId);
20 }

References ilFileSystemStorage\STORAGE_DATA.

Member Function Documentation

◆ create()

ilTestProcessLockFileStorage::create ( )

Create directory.

@access public

Reimplemented from ilFileSystemStorage.

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

50 {
51 if(!file_exists($this->getPath()))
52 {
54 }
55 return true;
56 }
static makeDirParents($a_dir)
Create a new directory and all parent directories.

References ilFileSystemStorage\getPath(), and ilUtil\makeDirParents().

+ Here is the call graph for this function:

◆ getPathPostfix()

ilTestProcessLockFileStorage::getPathPostfix ( )
protected

Get directory name.

E.g for files => file Only relative path, no trailing slash '_<obj_id>' will be appended automatically

@access protected

Returns
string directory name

Reimplemented from ilFileSystemStorage.

Definition at line 44 of file class.ilTestProcessLockFileStorage.php.

45 {
46 return 'active';
47 }

◆ getPathPrefix()

ilTestProcessLockFileStorage::getPathPrefix ( )
protected

Get path prefix.

Prefix that will be prepended to the path No trailing slash. E.g ilFiles for files

@access protected

Returns
string path prefix e.g files

Reimplemented from ilFileSystemStorage.

Definition at line 30 of file class.ilTestProcessLockFileStorage.php.

31 {
32 return 'ilTestProcessLocks';
33 }

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