Definition at line 44 of file BigInteger.php.
◆ __construct()
__construct |
( |
|
$extension = null | ) |
|
Constructor; a Factory which detects a suitable PHP extension for arbitrary precision math and instantiates the suitable wrapper object.
- Parameters
-
- Exceptions
-
Definition at line 62 of file BigInteger.php.
65 #require_once('Zend/Crypt/Math/BigInteger/Exception.php');
_loadAdapter($extension=null)
◆ __call()
__call |
( |
|
$methodName, |
|
|
|
$args |
|
) |
| |
Redirect all public method calls to the wrapped extension object.
- Parameters
-
string | $methodName | |
array | $args | |
- Returns
- mixed
- Exceptions
-
Definition at line 79 of file BigInteger.php.
81 if(!method_exists($this->_math, $methodName)) {
82 #require_once 'Zend/Crypt/Math/BigInteger/Exception.php'; 85 return call_user_func_array(array($this->_math, $methodName), $args);
◆ _loadAdapter()
_loadAdapter |
( |
|
$extension = null | ) |
|
|
protected |
- Parameters
-
- Exceptions
-
Definition at line 92 of file BigInteger.php.
95 if (extension_loaded(
'gmp')) {
103 if(
$extension ==
'gmp' && extension_loaded(
'gmp')) {
104 #require_once 'Zend/Crypt/Math/BigInteger/Gmp.php'; 110 #require_once 'Zend/Crypt/Math/BigInteger/Bcmath.php'; 113 #require_once 'Zend/Crypt/Math/BigInteger/Exception.php';
elseif(isset( $params[ 'redirect_parent']))
◆ $_math
The documentation for this class was generated from the following file: