TITAN Library for PHP5  5.1.0
Web Software Development Kit for PHP5
buffer Class Reference

Titan Data Buffer Class. More...

Public Member Functions

 __construct ($newline= '')
 
 buffer ($text= '', $newline=false)
 
 set ($content= '')
 
 get ()
 
 __toString ()
 
 lines ()
 
 clear ()
 
 getclear ()
 
 display ()
 

Detailed Description

Titan Data Buffer Class.

Class: \tl\io\buffer

Author
James E. Bush work@.nosp@m.bush.nosp@m..cc
Version
5.1.0

Constructor & Destructor Documentation

__construct (   $newline = '')

Constructor

Parameters
string$newline(optional) The newline character to use (default) '' = autodetect based on OS

Member Function Documentation

buffer (   $text = '',
  $newline = false 
)

Add data to the buffer

Parameters
string$text(optional) text to add to the buffer
string$newline(optional) override class-default newline
set (   $content = '')

Replace the entire buffer contents

Parameters
string$content(optional) content to set
get ( )

Returns the internal buffer data

__toString ( )

Returns the internal buffer data

lines ( )

Return the buffer content as an array of strings

clear ( )

Erase the entire buffer contents

getclear ( )

Returns the internal buffer data and erases the entire buffer contents

display ( )

Output the buffer contents


The documentation for this class was generated from the following file: