Public Member Functions | Public Attributes

TransactionFS Class Reference

List of all members.

Public Member Functions

 __construct ($tmpPath= '/tmp')
 begin ()
 commit ()
 Transaction commit.
 rollback ()
 Transaction rollback.
 makeFileFromData ($path, &$arrDati)
 Create a file from data.
 makeFileFromFile ($path, $pathFileSource)
 Create a file from another one.
 replaceFileData ($path, &$arrDati)
 Replace file data.
 rmFile ($path)
 Remove a file.
 mvFile ($newPath, $pathSource)
 Move a file.
 cpFile ($newPath, $pathSource)
 Copy a file.
 chdir ($newDir)
 Change directory.
 mkdir ($newDir, $mode=0777)
 Create a directory.
 rmdir ($rmDir)
 Remove a directory.
 mvDir ($pathNewParent, $oldPath)
 Move a directory and its content.

Public Attributes

 $commands = null
 $errorMsg = ""
 $error = false
 $tmpPath = '/tmp'

Detailed Description

Definition at line 279 of file transaction.php.


Member Function Documentation

TransactionFS::chdir ( newDir  ) 

Change directory.

Parameters:
string $newDir
Returns:
boolean
Exceptions:
BEditaIOException 

Definition at line 468 of file transaction.php.

Referenced by mkdir(), mvDir(), and rmdir().

TransactionFS::commit (  ) 

Transaction commit.

Returns:
boolean

Definition at line 299 of file transaction.php.

TransactionFS::cpFile ( newPath,
pathSource 
)

Copy a file.

Parameters:
string $newPath
string $pathSource
Returns:
boolean
Exceptions:
BEditaIOException 

Definition at line 448 of file transaction.php.

TransactionFS::makeFileFromData ( path,
&$  arrDati 
)

Create a file from data.

Parameters:
string $path file path
string $arrDati data
Returns:
string
Exceptions:
BEditaIOException 

Definition at line 332 of file transaction.php.

TransactionFS::makeFileFromFile ( path,
pathFileSource 
)

Create a file from another one.

Parameters:
string $path file path
string $pathFileSource source file path
Returns:
string
Exceptions:
BEditaIOException 

Definition at line 352 of file transaction.php.

TransactionFS::mkdir ( newDir,
mode = 0777 
)

Create a directory.

Parameters:
string $newDir
int $mode
Returns:
boolean
Exceptions:
BEditaIOException 

Definition at line 489 of file transaction.php.

References chdir().

TransactionFS::mvDir ( pathNewParent,
oldPath 
)

Move a directory and its content.

Parameters:
string $pathNewParent
string $oldPath
Returns:
string
Exceptions:
BEditaIOException 

Definition at line 543 of file transaction.php.

References chdir().

TransactionFS::mvFile ( newPath,
pathSource 
)

Move a file.

Parameters:
string $newPath
string $pathSource
Returns:
boolean
Exceptions:
BEditaIOException 

Definition at line 425 of file transaction.php.

TransactionFS::replaceFileData ( path,
&$  arrDati 
)

Replace file data.

Parameters:
string path File path
string $arrDati Data
Returns:
boolean
Exceptions:
BEditaIOException 

Definition at line 371 of file transaction.php.

TransactionFS::rmdir ( rmDir  ) 

Remove a directory.

Parameters:
string $rmDir
Returns:
boolean
Exceptions:
BEditaIOException 

Definition at line 514 of file transaction.php.

References chdir().

TransactionFS::rmFile ( path  ) 

Remove a file.

Parameters:
string $path
Returns:
boolean
Exceptions:
BEditaIOException 

Definition at line 398 of file transaction.php.

TransactionFS::rollback (  ) 

Transaction rollback.

Returns:
boolean

Definition at line 316 of file transaction.php.


The documentation for this class was generated from the following file:
Generated on Fri Dec 11 2015 15:29:47 by Doxygen 1.7.1  BEditaBEdita 3.7 Corylus