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:
@ -16,7 +16,7 @@
|
||||
* @package Zend_Json
|
||||
* @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: Error.php 16541 2009-07-07 06:59:03Z bkarwin $
|
||||
* @version $Id: Error.php 18951 2009-11-12 16:26:19Z alexander $
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -67,10 +67,10 @@ class Zend_Json_Server_Error
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param string $message
|
||||
* @param int $code
|
||||
* @param mixed $data
|
||||
*
|
||||
* @param string $message
|
||||
* @param int $code
|
||||
* @param mixed $data
|
||||
* @return void
|
||||
*/
|
||||
public function __construct($message = null, $code = -32000, $data = null)
|
||||
@ -82,8 +82,8 @@ class Zend_Json_Server_Error
|
||||
|
||||
/**
|
||||
* Set error code
|
||||
*
|
||||
* @param int $code
|
||||
*
|
||||
* @param int $code
|
||||
* @return Zend_Json_Server_Error
|
||||
*/
|
||||
public function setCode($code)
|
||||
@ -104,7 +104,7 @@ class Zend_Json_Server_Error
|
||||
|
||||
/**
|
||||
* Get error code
|
||||
*
|
||||
*
|
||||
* @return int|null
|
||||
*/
|
||||
public function getCode()
|
||||
@ -114,8 +114,8 @@ class Zend_Json_Server_Error
|
||||
|
||||
/**
|
||||
* Set error message
|
||||
*
|
||||
* @param string $message
|
||||
*
|
||||
* @param string $message
|
||||
* @return Zend_Json_Server_Error
|
||||
*/
|
||||
public function setMessage($message)
|
||||
@ -130,7 +130,7 @@ class Zend_Json_Server_Error
|
||||
|
||||
/**
|
||||
* Get error message
|
||||
*
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getMessage()
|
||||
@ -140,8 +140,8 @@ class Zend_Json_Server_Error
|
||||
|
||||
/**
|
||||
* Set error data
|
||||
*
|
||||
* @param mixed $data
|
||||
*
|
||||
* @param mixed $data
|
||||
* @return Zend_Json_Server_Error
|
||||
*/
|
||||
public function setData($data)
|
||||
@ -152,7 +152,7 @@ class Zend_Json_Server_Error
|
||||
|
||||
/**
|
||||
* Get error data
|
||||
*
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
public function getData()
|
||||
@ -162,7 +162,7 @@ class Zend_Json_Server_Error
|
||||
|
||||
/**
|
||||
* Cast error to array
|
||||
*
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
public function toArray()
|
||||
@ -176,7 +176,7 @@ class Zend_Json_Server_Error
|
||||
|
||||
/**
|
||||
* Cast error to JSON
|
||||
*
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function toJson()
|
||||
@ -187,7 +187,7 @@ class Zend_Json_Server_Error
|
||||
|
||||
/**
|
||||
* Cast to string (JSON)
|
||||
*
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function __toString()
|
||||
|
Reference in New Issue
Block a user