TwistPHP Documentation


File path: dist/twist/Core/Utilities/File.utility.php
Namespace: Twist\Core\Utilities
Extends: Base

writeWrite a file to disk and apply the appropriate file locks, delayed file writing is also available to store the file upon shutdown of the PHP process (after the user data has been served)


Name Type Description
[$strOptions = null]stringn/a
[$blDelayedWrite = false]booleann/a

Return Values

void — No return information has been documented for this function.


//Set the variables for the example
$dirFilePath '/home/user/public_html/twist';
$mxdData 'foo-123';
$strOptions null;
$blDelayedWrite false;

//Call the function write with the example vars
Twist::File() -> write($dirFilePath$mxdData$strOptions$blDelayedWrite);