TwistPHP Documentation

write

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)

Parameters

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

Return Values

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

Example

<?php
//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);