13 * to license@zend.com so we can send you a copy immediately. |
14 * to license@zend.com so we can send you a copy immediately. |
14 * |
15 * |
15 * @category Zend |
16 * @category Zend |
16 * @package Zend_XmlRpc |
17 * @package Zend_XmlRpc |
17 * @subpackage Value |
18 * @subpackage Value |
18 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) |
19 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) |
19 * @license http://framework.zend.com/license/new-bsd New BSD License |
20 * @license http://framework.zend.com/license/new-bsd New BSD License |
20 * @version $Id: BigInteger.php 20785 2010-01-31 09:43:03Z mikaelkael $ |
21 * @version $Id: BigInteger.php 24593 2012-01-05 20:35:02Z matthew $ |
21 */ |
22 */ |
22 |
|
23 |
23 |
24 /** |
24 /** |
25 * Zend_XmlRpc_Value_Integer |
25 * Zend_XmlRpc_Value_Integer |
26 */ |
26 */ |
27 require_once 'Zend/XmlRpc/Value/Integer.php'; |
27 require_once 'Zend/XmlRpc/Value/Integer.php'; |
28 |
28 |
29 |
|
30 /** |
29 /** |
31 * @category Zend |
30 * @category Zend |
32 * @package Zend_XmlRpc |
31 * @package Zend_XmlRpc |
33 * @subpackage Value |
32 * @subpackage Value |
34 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) |
33 * @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) |
35 * @license http://framework.zend.com/license/new-bsd New BSD License |
34 * @license http://framework.zend.com/license/new-bsd New BSD License |
36 */ |
35 */ |
37 class Zend_XmlRpc_Value_BigInteger extends Zend_XmlRpc_Value_Integer |
36 class Zend_XmlRpc_Value_BigInteger extends Zend_XmlRpc_Value_Integer |
38 { |
37 { |
39 /** |
|
40 * @var Zend_Crypt_Math_BigInteger |
|
41 */ |
|
42 protected $_integer; |
|
43 |
|
44 /** |
38 /** |
45 * @param mixed $value |
39 * @param mixed $value |
46 */ |
40 */ |
47 public function __construct($value) |
41 public function __construct($value) |
48 { |
42 { |
49 require_once 'Zend/Crypt/Math/BigInteger.php'; |
43 require_once 'Zend/Crypt/Math/BigInteger.php'; |
50 $this->_integer = new Zend_Crypt_Math_BigInteger(); |
44 $integer = new Zend_Crypt_Math_BigInteger; |
51 $this->_value = $this->_integer->init($this->_value); |
45 $this->_value = $integer->init($value); |
52 |
|
53 $this->_type = self::XMLRPC_TYPE_I8; |
46 $this->_type = self::XMLRPC_TYPE_I8; |
54 } |
47 } |
55 |
48 |
56 /** |
49 /** |
57 * Return bigint value object |
50 * Return bigint value |
58 * |
51 * |
59 * @return Zend_Crypt_Math_BigInteger |
52 * @return string |
60 */ |
53 */ |
61 public function getValue() |
54 public function getValue() |
62 { |
55 { |
63 return $this->_integer; |
56 return $this->_value; |
64 } |
57 } |
65 } |
58 } |