XML_SaxFilters
[ class tree: XML_SaxFilters ] [ index: XML_SaxFilters ] [ all elements ]

Class: XML_SaxFilters_IO_FileWriter

Source Location: /XML_SaxFilters-0.3.0/SaxFilters/IO/FileWriter.php

Class Overview


FileWriter writes data to a file


Author(s):

Methods


Inherited Variables

Inherited Methods


Class Details

[line 39]
FileWriter writes data to a file
  • Access: public


[ Top ]


Method Detail

XML_SaxFilters_IO_FileWriter (Constructor)   [line 75]

XML_SaxFilters_IO_FileWriter XML_SaxFilters_IO_FileWriter( string $fileName, [boolean $append = FALSE])

FileWriter Constructor
  • Access: public

Parameters:

string   $fileName   —  path and name of file
boolean   $append   —  whether to append to or replace the file

[ Top ]

close   [line 124]

boolean close( )

Close the file
  • Access: public

[ Top ]

getReader   [line 114]

object instance &getReader( [int $buffer = 4096])

Returns a FileReader
  • Return: of FileReader
  • Access: public

Parameters:

int   $buffer   —  buffer (default = 4096)

[ Top ]

write   [line 87]

mixed write( string $data)

Writes some data to file
  • Return: TRUE on success, FALSE on fail - see getError
  • Access: public

Parameters:

string   $data   —  data to write

[ Top ]


Documentation generated on Mon, 11 Mar 2019 10:15:10 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.