diff options
author | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2013-04-12 11:57:08 (GMT) |
---|---|---|
committer | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2013-04-12 11:57:08 (GMT) |
commit | ba050afaaad699e60ca657b311d5c34d038bb89c (patch) | |
tree | d4c79e30631c63e8557c6ec893a70dda46aa6cd5 /src/bindings | |
parent | 45ab2909e17f7e0348ccfe4179f23a897a2fd305 (diff) | |
download | uscxml-ba050afaaad699e60ca657b311d5c34d038bb89c.zip uscxml-ba050afaaad699e60ca657b311d5c34d038bb89c.tar.gz uscxml-ba050afaaad699e60ca657b311d5c34d038bb89c.tar.bz2 |
Refactoring for other datamodels
Diffstat (limited to 'src/bindings')
-rw-r--r-- | src/bindings/swig/php/uscxmlNativePHP.php | 58 |
1 files changed, 7 insertions, 51 deletions
diff --git a/src/bindings/swig/php/uscxmlNativePHP.php b/src/bindings/swig/php/uscxmlNativePHP.php index 89cad82..c15f979 100644 --- a/src/bindings/swig/php/uscxmlNativePHP.php +++ b/src/bindings/swig/php/uscxmlNativePHP.php @@ -32,56 +32,6 @@ abstract class uscxmlNativePHP { const CAN_BASIC_HTTP = 1; const CAN_GENERIC_HTTP = 2; - - const ANY = 0; - - const BOOL = BOOL; - - const NUMBER = NUMBER; - - const STRING = STRING; - - const NODE_SET = NODE_SET; - - static function NaN_get() { - return NaN_get(); - } - - static function Zero_get() { - return Zero_get(); - } - - static function Negative_Zero_get() { - return Negative_Zero_get(); - } - - static function Infinity_get() { - return Infinity_get(); - } - - static function Negative_Infinity_get() { - return Negative_Infinity_get(); - } - - static function isNaN($value) { - return isNaN($value); - } - - static function isInfinity($value) { - return isInfinity($value); - } - - static function isNegativeInfinity($value) { - return isNegativeInfinity($value); - } - - static function isInfinite($value) { - return isInfinite($value); - } - - static function roundNumber($value) { - return roundNumber($value); - } } /* PHP Proxy Classes */ @@ -700,7 +650,13 @@ class Interpreter { } function getConfiguration() { - return Interpreter_getConfiguration($this->_cPtr); + $r=Interpreter_getConfiguration($this->_cPtr); + if (is_resource($r)) { + $c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3)); + if (class_exists($c)) return new $c($r); + return new ParamList($r); + } + return $r; } function setConfiguration($states) { |