public setContents ( string $contents = null, boolean $autocreate = True, integer $flags ) : CFile | boolean | ||
$contents | string | Contents to be written |
$autocreate | boolean | If 'True' file will be created automatically |
$flags | integer | Flags for file_put_contents(). E.g.: FILE_APPEND to append data to file instead of overwriting. |
return | CFile | boolean | Current CFile object on success, 'False' on fail. |