diff options
Diffstat (limited to 'src/bindings')
-rw-r--r-- | src/bindings/swig/php/uscxmlNativePHP.php | 68 |
1 files changed, 48 insertions, 20 deletions
diff --git a/src/bindings/swig/php/uscxmlNativePHP.php b/src/bindings/swig/php/uscxmlNativePHP.php index 668e01b..dccfbaf 100644 --- a/src/bindings/swig/php/uscxmlNativePHP.php +++ b/src/bindings/swig/php/uscxmlNativePHP.php @@ -2,7 +2,7 @@ /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). - * Version 2.0.7 + * Version 2.0.9 * * This file is not intended to be easily readable and contains a number of * coding conventions designed to improve portability and efficiency. Do not make @@ -226,6 +226,42 @@ class Params { } } +class Blob { + public $_cPtr=null; + protected $_pData=array(); + + function __set($var,$value) { + $func = 'Blob_'.$var.'_set'; + if (function_exists($func)) return call_user_func($func,$this->_cPtr,$value); + if ($var === 'thisown') return swig_uscxmlNativePHP_alter_newobject($this->_cPtr,$value); + $this->_pData[$var] = $value; + } + + function __isset($var) { + if (function_exists('Blob_'.$var.'_set')) return true; + if ($var === 'thisown') return true; + return array_key_exists($var, $this->_pData); + } + + function __get($var) { + $func = 'Blob_'.$var.'_get'; + if (function_exists($func)) return call_user_func($func,$this->_cPtr); + if ($var === 'thisown') return swig_uscxmlNativePHP_get_newobject($this->_cPtr); + return $this->_pData[$var]; + } + + function __construct($size_or_data,$size=null,$adopt=false) { + if (is_resource($size_or_data) && get_resource_type($size_or_data) === '_p_uscxml__Blob') { + $this->_cPtr=$size_or_data; + return; + } + switch (func_num_args()) { + case 1: $this->_cPtr=new_Blob($size_or_data); break; + default: $this->_cPtr=new_Blob($size_or_data,$size,$adopt); + } + } +} + class Data { public $_cPtr=null; protected $_pData=array(); @@ -254,17 +290,16 @@ class Data { const INTERPRETED = Data_INTERPRETED; - const BINARY = Data_BINARY; - - function __construct($atom__or_dom=null,$type_=null) { - if (is_resource($atom__or_dom) && get_resource_type($atom__or_dom) === '_p_uscxml__Data') { - $this->_cPtr=$atom__or_dom; + function __construct($atom__or_data_or_dom=null,$type__or_size=null,$adopt=null) { + if (is_resource($atom__or_data_or_dom) && get_resource_type($atom__or_data_or_dom) === '_p_uscxml__Data') { + $this->_cPtr=$atom__or_data_or_dom; return; } switch (func_num_args()) { case 0: $this->_cPtr=new_Data(); break; - case 1: $this->_cPtr=new_Data($atom__or_dom); break; - default: $this->_cPtr=new_Data($atom__or_dom,$type_); + case 1: $this->_cPtr=new_Data($atom__or_data_or_dom); break; + case 2: $this->_cPtr=new_Data($atom__or_data_or_dom,$type__or_size); break; + default: $this->_cPtr=new_Data($atom__or_data_or_dom,$type__or_size,$adopt); } } @@ -359,7 +394,6 @@ class Event { } function __get($var) { - if ($var === 'namelist') return new StringMap(Event_namelist_get($this->_cPtr)); if ($var === 'data') return new Data(Event_data_get($this->_cPtr)); $func = 'Event_'.$var.'_get'; if (function_exists($func)) return call_user_func($func,$this->_cPtr); @@ -502,18 +536,16 @@ class Event { } function getNameList() { - $r=Event_getNameList($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 StringMap($r); - } - return $r; + return Event_getNameList($this->_cPtr); } function getParams() { return Event_getParams($this->_cPtr); } + + static function getParam($params,$name,$target) { + return Event_getParam($params,$name,$target); + } } class InvokeRequest extends Event { @@ -980,10 +1012,6 @@ class Interpreter { return Interpreter_getProperAncestors($this->_cPtr,$s1,$s2); } - static function getUUID() { - return Interpreter_getUUID(); - } - function getImpl() { return Interpreter_getImpl($this->_cPtr); } |