import v2.0.0.0_RC3 | 2012-07-01
https://github.com/lucanos/CommunityID -> http://www.itadmins.net/archives/357
This commit is contained in:
@ -17,14 +17,14 @@
|
||||
* @subpackage Plugin
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: Message.php 16971 2009-07-22 18:05:45Z mikaelkael $
|
||||
* @version $Id: Message.php 18951 2009-11-12 16:26:19Z alexander $
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* A message envelope that can be passed to Zend_Wildfire_Plugin_FirePhp to be
|
||||
* logged to Firebug instead of a variable.
|
||||
*
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Wildfire
|
||||
* @subpackage Plugin
|
||||
@ -38,19 +38,19 @@ class Zend_Wildfire_Plugin_FirePhp_Message
|
||||
* @var string
|
||||
*/
|
||||
protected $_style = null;
|
||||
|
||||
|
||||
/**
|
||||
* The label of the message
|
||||
* @var string
|
||||
*/
|
||||
protected $_label = null;
|
||||
|
||||
|
||||
/**
|
||||
* The message value
|
||||
* @var mixed
|
||||
*/
|
||||
protected $_message = null;
|
||||
|
||||
|
||||
/**
|
||||
* Flag indicating if message buffering is enabled
|
||||
* @var boolean
|
||||
@ -62,7 +62,7 @@ class Zend_Wildfire_Plugin_FirePhp_Message
|
||||
* @var boolean
|
||||
*/
|
||||
protected $_destroy = false;
|
||||
|
||||
|
||||
/**
|
||||
* Random unique ID used to identify message in comparison operations
|
||||
* @var string
|
||||
@ -80,7 +80,7 @@ class Zend_Wildfire_Plugin_FirePhp_Message
|
||||
|
||||
/**
|
||||
* Creates a new message with the given style and message
|
||||
*
|
||||
*
|
||||
* @param string $style Style of the message.
|
||||
* @param mixed $message The message
|
||||
* @return void
|
||||
@ -91,10 +91,10 @@ class Zend_Wildfire_Plugin_FirePhp_Message
|
||||
$this->_message = $message;
|
||||
$this->_ruid = md5(microtime().mt_rand());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Set the label of the message
|
||||
*
|
||||
*
|
||||
* @param string $label The label to be set
|
||||
* @return void
|
||||
*/
|
||||
@ -102,23 +102,23 @@ class Zend_Wildfire_Plugin_FirePhp_Message
|
||||
{
|
||||
$this->_label = $label;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Get the label of the message
|
||||
*
|
||||
*
|
||||
* @return string The label of the message
|
||||
*/
|
||||
public function getLabel()
|
||||
{
|
||||
return $this->_label;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 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.
|
||||
*
|
||||
*
|
||||
* @param boolean $buffered TRUE to enable buffering FALSE otherwise
|
||||
* @return boolean Returns previous buffering value
|
||||
*/
|
||||
@ -131,17 +131,17 @@ class Zend_Wildfire_Plugin_FirePhp_Message
|
||||
|
||||
/**
|
||||
* Determine if buffering is enabled or disabled
|
||||
*
|
||||
* @return boolean Returns TRUE if buffering is enabled, FALSE otherwise.
|
||||
*
|
||||
* @return boolean Returns TRUE if buffering is enabled, FALSE otherwise.
|
||||
*/
|
||||
public function getBuffered()
|
||||
{
|
||||
return $this->_buffered;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Destroy the message to prevent delivery
|
||||
*
|
||||
*
|
||||
* @param boolean $destroy TRUE to destroy FALSE otherwise
|
||||
* @return boolean Returns previous destroy value
|
||||
*/
|
||||
@ -151,11 +151,11 @@ class Zend_Wildfire_Plugin_FirePhp_Message
|
||||
$this->_destroy = $destroy;
|
||||
return $previous;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Determine if message should be destroyed
|
||||
*
|
||||
* @return boolean Returns TRUE if message should be destroyed, FALSE otherwise.
|
||||
*
|
||||
* @return boolean Returns TRUE if message should be destroyed, FALSE otherwise.
|
||||
*/
|
||||
public function getDestroy()
|
||||
{
|
||||
@ -164,7 +164,7 @@ class Zend_Wildfire_Plugin_FirePhp_Message
|
||||
|
||||
/**
|
||||
* Set the style of the message
|
||||
*
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function setStyle($style)
|
||||
@ -174,7 +174,7 @@ class Zend_Wildfire_Plugin_FirePhp_Message
|
||||
|
||||
/**
|
||||
* Get the style of the message
|
||||
*
|
||||
*
|
||||
* @return string The style of the message
|
||||
*/
|
||||
public function getStyle()
|
||||
@ -184,7 +184,7 @@ class Zend_Wildfire_Plugin_FirePhp_Message
|
||||
|
||||
/**
|
||||
* Set the actual message to be sent in its final format.
|
||||
*
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function setMessage($message)
|
||||
@ -194,17 +194,17 @@ class Zend_Wildfire_Plugin_FirePhp_Message
|
||||
|
||||
/**
|
||||
* Get the actual message to be sent in its final format.
|
||||
*
|
||||
*
|
||||
* @return mixed Returns the message to be sent.
|
||||
*/
|
||||
public function getMessage()
|
||||
{
|
||||
return $this->_message;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Set a single option
|
||||
*
|
||||
*
|
||||
* @param string $key The name of the option
|
||||
* @param mixed $value The value of the option
|
||||
* @return mixed The previous value of the option
|
||||
@ -221,7 +221,7 @@ class Zend_Wildfire_Plugin_FirePhp_Message
|
||||
|
||||
/**
|
||||
* Retrieve a single option
|
||||
*
|
||||
*
|
||||
* @param string $key The name of the option
|
||||
* @return mixed The value of the option
|
||||
*/
|
||||
@ -235,12 +235,12 @@ class Zend_Wildfire_Plugin_FirePhp_Message
|
||||
|
||||
/**
|
||||
* Retrieve all options
|
||||
*
|
||||
*
|
||||
* @return array All options
|
||||
*/
|
||||
public function getOptions()
|
||||
{
|
||||
return $this->_options;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -17,7 +17,7 @@
|
||||
* @subpackage Plugin
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: TableMessage.php 16971 2009-07-22 18:05:45Z mikaelkael $
|
||||
* @version $Id: TableMessage.php 18951 2009-11-12 16:26:19Z alexander $
|
||||
*/
|
||||
|
||||
/** Zend_Wildfire_Plugin_FirePhp */
|
||||
@ -29,7 +29,7 @@ require_once 'Zend/Wildfire/Plugin/FirePhp/Message.php';
|
||||
/**
|
||||
* A message envelope that can be updated for the duration of the requet before
|
||||
* it gets flushed at the end of the request.
|
||||
*
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Wildfire
|
||||
* @subpackage Plugin
|
||||
@ -43,16 +43,16 @@ class Zend_Wildfire_Plugin_FirePhp_TableMessage extends Zend_Wildfire_Plugin_Fir
|
||||
* @var array
|
||||
*/
|
||||
protected $_header = null;
|
||||
|
||||
|
||||
/**
|
||||
* The rows of the table
|
||||
* $var array
|
||||
*/
|
||||
*/
|
||||
protected $_rows = array();
|
||||
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
*
|
||||
* @param string $label The label of the table
|
||||
*/
|
||||
function __construct($label)
|
||||
@ -60,10 +60,10 @@ class Zend_Wildfire_Plugin_FirePhp_TableMessage extends Zend_Wildfire_Plugin_Fir
|
||||
parent::__construct(Zend_Wildfire_Plugin_FirePhp::TABLE, null);
|
||||
$this->setLabel($label);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Set the table header
|
||||
*
|
||||
*
|
||||
* @param array $header The header columns
|
||||
* @return void
|
||||
*/
|
||||
@ -71,10 +71,10 @@ class Zend_Wildfire_Plugin_FirePhp_TableMessage extends Zend_Wildfire_Plugin_Fir
|
||||
{
|
||||
$this->_header = $header;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Append a row to the end of the table.
|
||||
*
|
||||
*
|
||||
* @param array $row An array of column values representing a row.
|
||||
* @return void
|
||||
*/
|
||||
@ -82,10 +82,10 @@ class Zend_Wildfire_Plugin_FirePhp_TableMessage extends Zend_Wildfire_Plugin_Fir
|
||||
{
|
||||
$this->_rows[] = $row;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Get the actual message to be sent in its final format.
|
||||
*
|
||||
*
|
||||
* @return mixed Returns the message to be sent.
|
||||
*/
|
||||
public function getMessage()
|
||||
@ -107,12 +107,12 @@ class Zend_Wildfire_Plugin_FirePhp_TableMessage extends Zend_Wildfire_Plugin_Fir
|
||||
public function getRowAt($index)
|
||||
{
|
||||
$count = $this->getRowCount();
|
||||
|
||||
|
||||
if($index < 0 || $index > $count-1) {
|
||||
require_once 'Zend/Wildfire/Exception.php';
|
||||
throw new Zend_Wildfire_Exception('Row index('.$index.') out of bounds('.$count.')!');
|
||||
}
|
||||
|
||||
|
||||
return $this->_rows[$index];
|
||||
}
|
||||
|
||||
@ -126,12 +126,12 @@ class Zend_Wildfire_Plugin_FirePhp_TableMessage extends Zend_Wildfire_Plugin_Fir
|
||||
public function setRowAt($index, $row)
|
||||
{
|
||||
$count = $this->getRowCount();
|
||||
|
||||
|
||||
if($index < 0 || $index > $count-1) {
|
||||
require_once 'Zend/Wildfire/Exception.php';
|
||||
throw new Zend_Wildfire_Exception('Row index('.$index.') out of bounds('.$count.')!');
|
||||
}
|
||||
|
||||
|
||||
$this->_rows[$index] = $row;
|
||||
}
|
||||
|
||||
@ -154,7 +154,7 @@ class Zend_Wildfire_Plugin_FirePhp_TableMessage extends Zend_Wildfire_Plugin_Fir
|
||||
public function getLastRow()
|
||||
{
|
||||
$count = $this->getRowCount();
|
||||
|
||||
|
||||
if($count==0) {
|
||||
require_once 'Zend/Wildfire/Exception.php';
|
||||
throw new Zend_Wildfire_Exception('Cannot get last row as no rows exist!');
|
||||
|
Reference in New Issue
Block a user