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:
2019-07-17 22:31:04 +02:00
parent 38c146901c
commit 2f397f01f7
2677 changed files with 296182 additions and 45159 deletions

View File

@ -17,7 +17,7 @@
* @subpackage Channel
* @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: HttpHeaders.php 16971 2009-07-22 18:05:45Z mikaelkael $
* @version $Id: HttpHeaders.php 18951 2009-11-12 16:26:19Z alexander $
*/
/** Zend_Wildfire_Channel_Interface */
@ -235,10 +235,10 @@ class Zend_Wildfire_Channel_HttpHeaders extends Zend_Controller_Plugin_Abstract
*
* The channel is ready as long as the request and response objects are initialized,
* can send headers and the FirePHP header exists in the User-Agent.
*
*
* If the header does not exist in the User-Agent, no appropriate client
* is making this request and the messages should not be sent.
*
*
* A timing issue arises when messages are logged before the request/response
* objects are initialized. In this case we do not yet know if the client
* will be able to accept the messages. If we consequently indicate that
@ -246,18 +246,18 @@ class Zend_Wildfire_Channel_HttpHeaders extends Zend_Controller_Plugin_Abstract
* most cases not the intended behaviour. The intent is to send them at the
* end of the request when the request/response objects will be available
* for sure.
*
*
* If the request/response objects are not yet initialized we assume if messages are
* logged, the client will be able to receive them. As soon as the request/response
* objects are availoable and a message is logged this assumption is challenged.
* If the client cannot accept the messages any further messages are dropped
* and messages sent prior are kept but discarded when the channel is finally
* flushed at the end of the request.
*
*
* When the channel is flushed the $forceCheckRequest option is used to force
* a check of the request/response objects. This is the last verification to ensure
* messages are only sent when the client can accept them.
*
*
* @param boolean $forceCheckRequest OPTIONAL Set to TRUE if the request must be checked
* @return boolean Returns TRUE if channel is ready.
*/
@ -270,7 +270,7 @@ class Zend_Wildfire_Channel_HttpHeaders extends Zend_Controller_Plugin_Abstract
return true;
}
return ($this->getResponse()->canSendHeaders()
return ($this->getResponse()->canSendHeaders()
&& preg_match_all(
'/\s?FirePHP\/([\.|\d]*)\s?/si',
$this->getRequest()->getHeader('User-Agent'),

View File

@ -11,12 +11,12 @@
* 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
* @package Zend_Wildfire
* @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: Interface.php 16971 2009-07-22 18:05:45Z mikaelkael $
* @version $Id: Interface.php 18951 2009-11-12 16:26:19Z alexander $
*/
/**
@ -27,12 +27,12 @@
*/
interface Zend_Wildfire_Channel_Interface
{
/**
* Determine if channel is ready.
*
*
* @return boolean Returns TRUE if channel is ready.
*/
public function isReady();
}

View File

@ -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;
}
}
}

View File

@ -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!');

View File

@ -11,13 +11,13 @@
* 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
* @package Zend_Wildfire
* @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: Interface.php 16971 2009-07-22 18:05:45Z mikaelkael $
* @version $Id: Interface.php 18951 2009-11-12 16:26:19Z alexander $
*/
/**
@ -29,20 +29,20 @@
*/
interface Zend_Wildfire_Plugin_Interface
{
/**
* Flush any buffered data.
*
*
* @param string $protocolUri The URI of the protocol that should be flushed to
* @return void
*/
public function flushMessages($protocolUri);
/**
* Get the unique indentifier for this plugin.
*
*
* @return string Returns the URI of the plugin.
*/
public function getUri();
}