Wildfire/Plugin/FirePhp/Message.php

Show: PublicProtectedPrivateinherited
Table of Contents
Zend Framework
LICENSE This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Wildfire  
Subpackage
Plugin  
Version
$Id$  

\Zend_Wildfire_Plugin_FirePhp_Message

Package: Zend_Wildfire\Plugin
A message envelope that can be passed to Zend_Wildfire_Plugin_FirePhp to be logged to Firebug instead of a variable.
Children
\Zend_Wildfire_Plugin_FirePhp_TableMessage
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Properties

>VPropertyprotectedboolean $_buffered = false
Flag indicating if message buffering is enabled
Default valuefalseDetails
Type
boolean
>VPropertyprotectedboolean $_destroy = false
Flag indicating if message should be destroyed and not delivered
Default valuefalseDetails
Type
boolean
>VPropertyprotectedstring $_label = null
The label of the message
Default valuenullDetails
Type
string
>VPropertyprotectedmixed $_message = null
The message value
Default valuenullDetails
Type
mixed
>VPropertyprotectedarray $_options = array('traceOffset' => null, 'includeLineNumbers' => null)
Options for the object
Default valuearray('traceOffset' => null, 'includeLineNumbers' => null)Details
Type
array
>VPropertyprotectedstring $_ruid = false
Random unique ID used to identify message in comparison operations
Default valuefalseDetails
Type
string
>VPropertyprotectedstring $_style = null
The style of the message
Default valuenullDetails
Type
string

Methods

methodpublic__construct(string $style, mixed $message) : void

Creates a new message with the given style and message

Parameters
NameTypeDescription
$stylestring

Style of the message.

$messagemixed

The message

methodpublicgetBuffered() : boolean

Determine if buffering is enabled or disabled

Returns
TypeDescription
booleanReturns TRUE if buffering is enabled, FALSE otherwise.
methodpublicgetDestroy() : boolean

Determine if message should be destroyed

Returns
TypeDescription
booleanReturns TRUE if message should be destroyed, FALSE otherwise.
methodpublicgetLabel() : string

Get the label of the message

Returns
TypeDescription
stringThe label of the message
methodpublicgetMessage() : mixed

Get the actual message to be sent in its final format.

Returns
TypeDescription
mixedReturns the message to be sent.
methodpublicgetOption(string $key) : mixed

Retrieve a single option

Parameters
NameTypeDescription
$keystring

The name of the option

Returns
TypeDescription
mixedThe value of the option
methodpublicgetOptions() : array

Retrieve all options

Returns
TypeDescription
arrayAll options
methodpublicgetStyle() : string

Get the style of the message

Returns
TypeDescription
stringThe style of the message
methodpublicsetBuffered(boolean $buffered) : boolean

Enable or disable message buffering

If a message is buffered it can be updated for the duration of the request and is only flushed at the end of the request.
Parameters
NameTypeDescription
$bufferedboolean

TRUE to enable buffering FALSE otherwise

Returns
TypeDescription
booleanReturns previous buffering value
methodpublicsetDestroy(boolean $destroy) : boolean

Destroy the message to prevent delivery

Parameters
NameTypeDescription
$destroyboolean

TRUE to destroy FALSE otherwise

Returns
TypeDescription
booleanReturns previous destroy value
methodpublicsetLabel(string $label) : void

Set the label of the message

Parameters
NameTypeDescription
$labelstring

The label to be set

methodpublicsetMessage( $message) : void

Set the actual message to be sent in its final format.

Parameters
NameTypeDescription
$message
methodpublicsetOption(string $key, mixed $value) : mixed

Set a single option

Parameters
NameTypeDescription
$keystring

The name of the option

$valuemixed

The value of the option

Returns
TypeDescription
mixedThe previous value of the option
methodpublicsetStyle( $style) : void

Set the style of the message

Parameters
NameTypeDescription
$style
Documentation was generated by phpDocumentor 2.2.0 .