XRL  latest
Simple XML-RPC Library (both client and server)
fpoirotte\XRL\Output Class Reference

A class that formats messages before sending them to a stream. More...

Public Member Functions

 __construct ($stream)
 
 write ($format)
 

Protected Attributes

 $stream
 Stream to send the messages to.
 

Detailed Description

A class that formats messages before sending them to a stream.

Authors
François Poirotte click.nosp@m.y@er.nosp@m.ebot..nosp@m.net

Definition at line 21 of file Output.php.

Constructor & Destructor Documentation

fpoirotte\XRL\Output::__construct (   $stream)

Create a new outputter.

Parameters
resource$streamThe PHP stream this outputter will write to.

Definition at line 33 of file Output.php.

References fpoirotte\XRL\Output\$stream.

Member Function Documentation

fpoirotte\XRL\Output::write (   $format)

Write some message to the stream, in a printf() fashion.

Parameters
string$formatA format string to use to send the message.
Note
You may pass additional parameters to this method. They will serve as arguments for the format string.
You don't need to add an end-of-line sequence to the format string, one will automatically be added for you by this method.

Definition at line 59 of file Output.php.


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