Best Atoum code snippet using invoker.__get
uscxmlNativePHP.php
Source:uscxmlNativePHP.php
...66 if ($var === 'rem') return imaxdiv_t_rem_set($this->_cPtr,$value);67 if ($var === 'thisown') return swig_uscxmlNativePHP_alter_newobject($this->_cPtr,$value);68 $this->_pData[$var] = $value;69 }70 function __get($var) {71 if ($var === 'quot') return imaxdiv_t_quot_get($this->_cPtr);72 if ($var === 'rem') return imaxdiv_t_rem_get($this->_cPtr);73 if ($var === 'thisown') return swig_uscxmlNativePHP_get_newobject($this->_cPtr);74 return $this->_pData[$var];75 }76 function __isset($var) {77 if (function_exists('imaxdiv_t_'.$var.'_get')) return true;78 if ($var === 'thisown') return true;79 return array_key_exists($var, $this->_pData);80 }81 function __construct($res=null) {82 if (is_resource($res) && get_resource_type($res) === '_p_imaxdiv_t') {83 $this->_cPtr=$res;84 return;85 }86 $this->_cPtr=new_imaxdiv_t();87 }88}89class Factory {90 public $_cPtr=null;91 protected $_pData=array();92 function __set($var,$value) {93 if ($var === 'thisown') return swig_uscxmlNativePHP_alter_newobject($this->_cPtr,$value);94 $this->_pData[$var] = $value;95 }96 function __get($var) {97 if ($var === 'thisown') return swig_uscxmlNativePHP_get_newobject($this->_cPtr);98 return $this->_pData[$var];99 }100 function __isset($var) {101 if ($var === 'thisown') return true;102 return array_key_exists($var, $this->_pData);103 }104 function __construct($parentFactory_or_pluginPath,$parentFactory=null) {105 if (is_resource($parentFactory_or_pluginPath) && get_resource_type($parentFactory_or_pluginPath) === '_p_uscxml__Factory') {106 $this->_cPtr=$parentFactory_or_pluginPath;107 return;108 }109 switch (func_num_args()) {110 case 1: $this->_cPtr=new_Factory($parentFactory_or_pluginPath); break;111 default: $this->_cPtr=new_Factory($parentFactory_or_pluginPath,$parentFactory);112 }113 }114 function registerIOProcessor($ioProcessor) {115 Factory_registerIOProcessor($this->_cPtr,$ioProcessor);116 }117 function registerDataModel($dataModel) {118 Factory_registerDataModel($this->_cPtr,$dataModel);119 }120 function registerInvoker($invoker) {121 Factory_registerInvoker($this->_cPtr,$invoker);122 }123 function registerExecutableContent($executableContent) {124 Factory_registerExecutableContent($this->_cPtr,$executableContent);125 }126 function hasDataModel($type) {127 return Factory_hasDataModel($this->_cPtr,$type);128 }129 function hasIOProcessor($type) {130 return Factory_hasIOProcessor($this->_cPtr,$type);131 }132 function hasInvoker($type) {133 return Factory_hasInvoker($this->_cPtr,$type);134 }135 function hasExecutableContent($localName,$nameSpace) {136 return Factory_hasExecutableContent($this->_cPtr,$localName,$nameSpace);137 }138 function listComponents() {139 Factory_listComponents($this->_cPtr);140 }141 static function getInstance() {142 $r=Factory_getInstance();143 if (is_resource($r)) {144 $c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));145 if (class_exists($c)) return new $c($r);146 return new Factory($r);147 }148 return $r;149 }150 static function setDefaultPluginPath($path) {151 Factory_setDefaultPluginPath($path);152 }153 static function getDefaultPluginPath() {154 return Factory_getDefaultPluginPath();155 }156}157class InterpreterOptions {158 public $_cPtr=null;159 protected $_pData=array();160 function __set($var,$value) {161 $func = 'InterpreterOptions_'.$var.'_set';162 if (function_exists($func)) return call_user_func($func,$this->_cPtr,$value);163 if ($var === 'thisown') return swig_uscxmlNativePHP_alter_newobject($this->_cPtr,$value);164 $this->_pData[$var] = $value;165 }166 function __get($var) {167 $func = 'InterpreterOptions_'.$var.'_get';168 if (function_exists($func)) return call_user_func($func,$this->_cPtr);169 if ($var === 'thisown') return swig_uscxmlNativePHP_get_newobject($this->_cPtr);170 return $this->_pData[$var];171 }172 function __isset($var) {173 if (function_exists('InterpreterOptions_'.$var.'_get')) return true;174 if ($var === 'thisown') return true;175 return array_key_exists($var, $this->_pData);176 }177 function __construct($res=null) {178 if (is_resource($res) && get_resource_type($res) === '_p_uscxml__InterpreterOptions') {179 $this->_cPtr=$res;180 return;181 }182 $this->_cPtr=new_InterpreterOptions();183 }184 function isValid() {185 return InterpreterOptions_isValid($this->_cPtr);186 }187 static function printUsageAndExit($progName) {188 InterpreterOptions_printUsageAndExit($progName);189 }190 function getCapabilities() {191 return InterpreterOptions_getCapabilities($this->_cPtr);192 }193}194class NameSpaceInfo {195 public $_cPtr=null;196 protected $_pData=array();197 function __set($var,$value) {198 if ($var === 'thisown') return swig_uscxmlNativePHP_alter_newobject($this->_cPtr,$value);199 $this->_pData[$var] = $value;200 }201 function __get($var) {202 if ($var === 'thisown') return swig_uscxmlNativePHP_get_newobject($this->_cPtr);203 return $this->_pData[$var];204 }205 function __isset($var) {206 if ($var === 'thisown') return true;207 return array_key_exists($var, $this->_pData);208 }209 function __construct($res=null) {210 if (is_resource($res) && get_resource_type($res) === '_p_uscxml__NameSpaceInfo') {211 $this->_cPtr=$res;212 return;213 }214 $this->_cPtr=new_NameSpaceInfo();215 }216 function getXMLPrefixForNS($ns) {217 return NameSpaceInfo_getXMLPrefixForNS($this->_cPtr,$ns);218 }219}220class Interpreter {221 public $_cPtr=null;222 protected $_pData=array();223 function __set($var,$value) {224 if ($var === 'thisown') return swig_uscxmlNativePHP_alter_newobject($this->_cPtr,$value);225 $this->_pData[$var] = $value;226 }227 function __get($var) {228 if ($var === 'thisown') return swig_uscxmlNativePHP_get_newobject($this->_cPtr);229 return $this->_pData[$var];230 }231 function __isset($var) {232 if ($var === 'thisown') return true;233 return array_key_exists($var, $this->_pData);234 }235 static function fromXML($xml,$sourceURL) {236 $r=Interpreter_fromXML($xml,$sourceURL);237 if (is_resource($r)) {238 $c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));239 if (class_exists($c)) return new $c($r);240 return new Interpreter($r);241 }242 return $r;243 }244 static function fromURL($URL) {245 $r=Interpreter_fromURL($URL);246 if (is_resource($r)) {247 $c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));248 if (class_exists($c)) return new $c($r);249 return new Interpreter($r);250 }251 return $r;252 }253 function __construct($res=null) {254 if (is_resource($res) && get_resource_type($res) === '_p_uscxml__Interpreter') {255 $this->_cPtr=$res;256 return;257 }258 $this->_cPtr=new_Interpreter();259 }260 function isValid() {261 return Interpreter_isValid($this->_cPtr);262 }263 function equals($other) {264 return Interpreter_equals($this->_cPtr,$other);265 }266 function writeTo($stream) {267 Interpreter_writeTo($this->_cPtr,$stream);268 }269 function reset() {270 Interpreter_reset($this->_cPtr);271 }272 function interpret() {273 Interpreter_interpret($this->_cPtr);274 }275 function step($waitForMS_or_blocking=null) {276 switch (func_num_args()) {277 case 0: $r=Interpreter_step($this->_cPtr); break;278 default: $r=Interpreter_step($this->_cPtr,$waitForMS_or_blocking);279 }280 return $r;281 }282 function validate() {283 $r=Interpreter_validate($this->_cPtr);284 if (is_resource($r)) {285 $c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));286 if (class_exists($c)) return new $c($r);287 return new IssueList($r);288 }289 return $r;290 }291 function getState() {292 return Interpreter_getState($this->_cPtr);293 }294 function addMonitor($monitor) {295 Interpreter_addMonitor($this->_cPtr,$monitor);296 }297 function removeMonitor($monitor) {298 Interpreter_removeMonitor($this->_cPtr,$monitor);299 }300 function setSourceURL($sourceURL) {301 Interpreter_setSourceURL($this->_cPtr,$sourceURL);302 }303 function getSourceURL() {304 return Interpreter_getSourceURL($this->_cPtr);305 }306 function getBaseURL($xpathExpr=null) {307 switch (func_num_args()) {308 case 0: $r=Interpreter_getBaseURL($this->_cPtr); break;309 default: $r=Interpreter_getBaseURL($this->_cPtr,$xpathExpr);310 }311 return $r;312 }313 function setNameSpaceInfo($nsInfo) {314 Interpreter_setNameSpaceInfo($this->_cPtr,$nsInfo);315 }316 function getNameSpaceInfo() {317 $r=Interpreter_getNameSpaceInfo($this->_cPtr);318 if (is_resource($r)) {319 $c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));320 if (class_exists($c)) return new $c($r);321 return new NameSpaceInfo($r);322 }323 return $r;324 }325 function getCmdLineOptions() {326 $r=Interpreter_getCmdLineOptions($this->_cPtr);327 if (is_resource($r)) {328 $c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));329 if (class_exists($c)) return new $c($r);330 return new Data($r);331 }332 return $r;333 }334 function getDataModel() {335 $r=Interpreter_getDataModel($this->_cPtr);336 if (is_resource($r)) {337 $c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));338 if (class_exists($c)) return new $c($r);339 return new NativeDataModel($r);340 }341 return $r;342 }343 function getIOProcessorsNative() {344 $r=Interpreter_getIOProcessorsNative($this->_cPtr);345 if (is_resource($r)) {346 $c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));347 if (class_exists($c)) return new $c($r);348 return new IOProcMap($r);349 }350 return $r;351 }352 function getInvokersNative() {353 $r=Interpreter_getInvokersNative($this->_cPtr);354 if (is_resource($r)) {355 $c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));356 if (class_exists($c)) return new $c($r);357 return new InvokerMap($r);358 }359 return $r;360 }361 function addDataModelExtension($ext) {362 Interpreter_addDataModelExtension($this->_cPtr,$ext);363 }364 function setParentQueue($parentQueue) {365 Interpreter_setParentQueue($this->_cPtr,$parentQueue);366 }367 function setFactory($factory) {368 Interpreter_setFactory($this->_cPtr,$factory);369 }370 function getFactory() {371 $r=Interpreter_getFactory($this->_cPtr);372 if (is_resource($r)) {373 $c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));374 if (class_exists($c)) return new $c($r);375 return new Factory($r);376 }377 return $r;378 }379 function receiveInternal($event) {380 Interpreter_receiveInternal($this->_cPtr,$event);381 }382 function receive($event,$toFront=false) {383 Interpreter_receive($this->_cPtr,$event,$toFront);384 }385 function getCurrentEvent() {386 $r=Interpreter_getCurrentEvent($this->_cPtr);387 if (is_resource($r)) {388 $c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));389 if (class_exists($c)) return new $c($r);390 return new Event($r);391 }392 return $r;393 }394 function isInState($stateId) {395 return Interpreter_isInState($this->_cPtr,$stateId);396 }397 function setInitalConfiguration($states) {398 Interpreter_setInitalConfiguration($this->_cPtr,$states);399 }400 function setCapabilities($capabilities) {401 Interpreter_setCapabilities($this->_cPtr,$capabilities);402 }403 function setName($name) {404 Interpreter_setName($this->_cPtr,$name);405 }406 function getName() {407 return Interpreter_getName($this->_cPtr);408 }409 function getSessionId() {410 return Interpreter_getSessionId($this->_cPtr);411 }412 function hasLegalConfiguration() {413 return Interpreter_hasLegalConfiguration($this->_cPtr);414 }415 function isLegalConfiguration($config) {416 return Interpreter_isLegalConfiguration($this->_cPtr,$config);417 }418 function hashCode() {419 return Interpreter_hashCode($this->_cPtr);420 }421 function addIOProcessor($ioProc) {422 Interpreter_addIOProcessor($this->_cPtr,$ioProc);423 }424 function setDataModel($dataModel) {425 Interpreter_setDataModel($this->_cPtr,$dataModel);426 }427 function setInvoker($invokeId,$invoker) {428 Interpreter_setInvoker($this->_cPtr,$invokeId,$invoker);429 }430 function getBasicConfiguration() {431 $r=Interpreter_getBasicConfiguration($this->_cPtr);432 if (is_resource($r)) {433 $c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));434 if (class_exists($c)) return new $c($r);435 return new StringVector($r);436 }437 return $r;438 }439 function getConfiguration() {440 $r=Interpreter_getConfiguration($this->_cPtr);441 if (is_resource($r)) {442 $c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));443 if (class_exists($c)) return new $c($r);444 return new StringVector($r);445 }446 return $r;447 }448 function getIOProcessorKeys() {449 $r=Interpreter_getIOProcessorKeys($this->_cPtr);450 if (is_resource($r)) {451 $c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));452 if (class_exists($c)) return new $c($r);453 return new StringVector($r);454 }455 return $r;456 }457 function getInvokerKeys() {458 $r=Interpreter_getInvokerKeys($this->_cPtr);459 if (is_resource($r)) {460 $c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));461 if (class_exists($c)) return new $c($r);462 return new StringVector($r);463 }464 return $r;465 }466}467class NativeInterpreterMonitor {468 public $_cPtr=null;469 protected $_pData=array();470 function __set($var,$value) {471 if ($var === 'thisown') return swig_uscxmlNativePHP_alter_newobject($this->_cPtr,$value);472 $this->_pData[$var] = $value;473 }474 function __get($var) {475 if ($var === 'thisown') return swig_uscxmlNativePHP_get_newobject($this->_cPtr);476 return $this->_pData[$var];477 }478 function __isset($var) {479 if ($var === 'thisown') return true;480 return array_key_exists($var, $this->_pData);481 }482 function __construct($res=null) {483 if (is_resource($res) && get_resource_type($res) === '_p_uscxml__InterpreterMonitor') {484 $this->_cPtr=$res;485 return;486 }487 $this->_cPtr=new_NativeInterpreterMonitor();488 }489 function beforeProcessingEvent($interpreter,$event) {490 NativeInterpreterMonitor_beforeProcessingEvent($this->_cPtr,$interpreter,$event);491 }492 function beforeMicroStep($interpreter) {493 NativeInterpreterMonitor_beforeMicroStep($this->_cPtr,$interpreter);494 }495 function afterMicroStep($interpreter) {496 NativeInterpreterMonitor_afterMicroStep($this->_cPtr,$interpreter);497 }498 function onStableConfiguration($interpreter) {499 NativeInterpreterMonitor_onStableConfiguration($this->_cPtr,$interpreter);500 }501 function beforeCompletion($interpreter) {502 NativeInterpreterMonitor_beforeCompletion($this->_cPtr,$interpreter);503 }504 function afterCompletion($interpreter) {505 NativeInterpreterMonitor_afterCompletion($this->_cPtr,$interpreter);506 }507 function reportIssue($interpreter,$issue) {508 NativeInterpreterMonitor_reportIssue($this->_cPtr,$interpreter,$issue);509 }510 function copyToInvokers($copy=null) {511 switch (func_num_args()) {512 case 0: $r=NativeInterpreterMonitor_copyToInvokers($this->_cPtr); break;513 default: $r=NativeInterpreterMonitor_copyToInvokers($this->_cPtr,$copy);514 }515 return $r;516 }517}518class StateTransitionMonitor extends NativeInterpreterMonitor {519 public $_cPtr=null;520 function __set($var,$value) {521 if ($var === 'thisown') return swig_uscxmlNativePHP_alter_newobject($this->_cPtr,$value);522 NativeInterpreterMonitor::__set($var,$value);523 }524 function __get($var) {525 if ($var === 'thisown') return swig_uscxmlNativePHP_get_newobject($this->_cPtr);526 return NativeInterpreterMonitor::__get($var);527 }528 function __isset($var) {529 if ($var === 'thisown') return true;530 return NativeInterpreterMonitor::__isset($var);531 }532 function beforeTakingTransition($interpreter,$transition,$moreComing) {533 StateTransitionMonitor_beforeTakingTransition($this->_cPtr,$interpreter,$transition,$moreComing);534 }535 function onStableConfiguration($interpreter) {536 StateTransitionMonitor_onStableConfiguration($this->_cPtr,$interpreter);537 }538 function beforeProcessingEvent($interpreter,$event) {539 StateTransitionMonitor_beforeProcessingEvent($this->_cPtr,$interpreter,$event);540 }541 function beforeExitingState($interpreter,$state,$moreComing) {542 StateTransitionMonitor_beforeExitingState($this->_cPtr,$interpreter,$state,$moreComing);543 }544 function beforeEnteringState($interpreter,$state,$moreComing) {545 StateTransitionMonitor_beforeEnteringState($this->_cPtr,$interpreter,$state,$moreComing);546 }547 function __construct($res=null) {548 if (is_resource($res) && get_resource_type($res) === '_p_uscxml__StateTransitionMonitor') {549 $this->_cPtr=$res;550 return;551 }552 $this->_cPtr=new_StateTransitionMonitor();553 }554}555class HTTPServer {556 public $_cPtr=null;557 protected $_pData=array();558 function __set($var,$value) {559 if ($var === 'thisown') return swig_uscxmlNativePHP_alter_newobject($this->_cPtr,$value);560 $this->_pData[$var] = $value;561 }562 function __get($var) {563 if ($var === 'thisown') return swig_uscxmlNativePHP_get_newobject($this->_cPtr);564 return $this->_pData[$var];565 }566 function __isset($var) {567 if ($var === 'thisown') return true;568 return array_key_exists($var, $this->_pData);569 }570 function __construct($h) {571 $this->_cPtr=$h;572 }573 const HTTPS = 0;574 const HTTP = HTTPServer_HTTP;575 const WebSockets = HTTPServer_WebSockets;576 static function getInstance($port=null,$wsPort=null,$sslConf=null) {577 switch (func_num_args()) {578 case 0: $r=HTTPServer_getInstance(); break;579 case 1: $r=HTTPServer_getInstance($port); break;580 default: $r=HTTPServer_getInstance($port,$wsPort,$sslConf);581 }582 if (!is_resource($r)) return $r;583 return new HTTPServer($r);584 }585 static function getBaseURL($type=null) {586 switch (func_num_args()) {587 case 0: $r=HTTPServer_getBaseURL(); break;588 default: $r=HTTPServer_getBaseURL($type);589 }590 return $r;591 }592 static function registerServlet($path,$servlet) {593 return HTTPServer_registerServlet($path,$servlet);594 }595 static function unregisterServlet($servlet) {596 HTTPServer_unregisterServlet($servlet);597 }598}599abstract class HTTPServlet {600 public $_cPtr=null;601 protected $_pData=array();602 function __set($var,$value) {603 if ($var === 'thisown') return swig_uscxmlNativePHP_alter_newobject($this->_cPtr,$value);604 $this->_pData[$var] = $value;605 }606 function __get($var) {607 if ($var === 'thisown') return swig_uscxmlNativePHP_get_newobject($this->_cPtr);608 return $this->_pData[$var];609 }610 function __isset($var) {611 if ($var === 'thisown') return true;612 return array_key_exists($var, $this->_pData);613 }614 function __construct($h) {615 $this->_cPtr=$h;616 }617 function httpRecvRequest($request) {618 return HTTPServlet_httpRecvRequest($this->_cPtr,$request);619 }620 function setURL($url) {621 HTTPServlet_setURL($this->_cPtr,$url);622 }623 function canAdaptPath() {624 return HTTPServlet_canAdaptPath($this->_cPtr);625 }626}627abstract class WebSocketServlet {628 public $_cPtr=null;629 protected $_pData=array();630 function __set($var,$value) {631 if ($var === 'thisown') return swig_uscxmlNativePHP_alter_newobject($this->_cPtr,$value);632 $this->_pData[$var] = $value;633 }634 function __get($var) {635 if ($var === 'thisown') return swig_uscxmlNativePHP_get_newobject($this->_cPtr);636 return $this->_pData[$var];637 }638 function __isset($var) {639 if ($var === 'thisown') return true;640 return array_key_exists($var, $this->_pData);641 }642 function __construct($h) {643 $this->_cPtr=$h;644 }645 function wsRecvRequest($conn,$frame) {646 return WebSocketServlet_wsRecvRequest($this->_cPtr,$conn,$frame);647 }648 function setURL($url) {649 WebSocketServlet_setURL($this->_cPtr,$url);650 }651 function canAdaptPath() {652 return WebSocketServlet_canAdaptPath($this->_cPtr);653 }654}655class InterpreterIssue {656 public $_cPtr=null;657 protected $_pData=array();658 function __set($var,$value) {659 $func = 'InterpreterIssue_'.$var.'_set';660 if (function_exists($func)) return call_user_func($func,$this->_cPtr,$value);661 if ($var === 'thisown') return swig_uscxmlNativePHP_alter_newobject($this->_cPtr,$value);662 $this->_pData[$var] = $value;663 }664 function __get($var) {665 $func = 'InterpreterIssue_'.$var.'_get';666 if (function_exists($func)) return call_user_func($func,$this->_cPtr);667 if ($var === 'thisown') return swig_uscxmlNativePHP_get_newobject($this->_cPtr);668 return $this->_pData[$var];669 }670 function __isset($var) {671 if (function_exists('InterpreterIssue_'.$var.'_get')) return true;672 if ($var === 'thisown') return true;673 return array_key_exists($var, $this->_pData);674 }675 const USCXML_ISSUE_FATAL = 0;676 const USCXML_ISSUE_WARNING = InterpreterIssue_USCXML_ISSUE_WARNING;677 const USCXML_ISSUE_INFO = InterpreterIssue_USCXML_ISSUE_INFO;678 function __construct($msg,$node,$severity,$specRef=null) {679 if (is_resource($msg) && get_resource_type($msg) === '_p_uscxml__InterpreterIssue') {680 $this->_cPtr=$msg;681 return;682 }683 switch (func_num_args()) {684 case 3: $this->_cPtr=new_InterpreterIssue($msg,$node,$severity); break;685 default: $this->_cPtr=new_InterpreterIssue($msg,$node,$severity,$specRef);686 }687 }688 function toString() {689 return InterpreterIssue_toString($this->_cPtr);690 }691}692class Blob {693 public $_cPtr=null;694 protected $_pData=array();695 function __set($var,$value) {696 if ($var === 'thisown') return swig_uscxmlNativePHP_alter_newobject($this->_cPtr,$value);697 $this->_pData[$var] = $value;698 }699 function __get($var) {700 if ($var === 'thisown') return swig_uscxmlNativePHP_get_newobject($this->_cPtr);701 return $this->_pData[$var];702 }703 function __isset($var) {704 if ($var === 'thisown') return true;705 return array_key_exists($var, $this->_pData);706 }707 function __construct($other_or_data=null,$mimeType=null) {708 if (is_resource($other_or_data) && get_resource_type($other_or_data) === '_p_uscxml__Blob') {709 $this->_cPtr=$other_or_data;710 return;711 }712 switch (func_num_args()) {713 case 0: $this->_cPtr=new_Blob(); break;714 case 1: $this->_cPtr=new_Blob($other_or_data); break;715 default: $this->_cPtr=new_Blob($other_or_data,$mimeType);716 }717 }718 function isValid() {719 return Blob_isValid($this->_cPtr);720 }721 function equals($other) {722 return Blob_equals($this->_cPtr,$other);723 }724 static function fromBase64($base64,$mimeType=null) {725 switch (func_num_args()) {726 case 1: $r=Blob_fromBase64($base64); break;727 default: $r=Blob_fromBase64($base64,$mimeType);728 }729 if (is_resource($r)) {730 $c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));731 if (class_exists($c)) return new $c($r);732 return new Blob($r);733 }734 return $r;735 }736 function base64() {737 return Blob_base64($this->_cPtr);738 }739 function md5() {740 return Blob_md5($this->_cPtr);741 }742 function getData() {743 return Blob_getData($this->_cPtr);744 }745 function getSize() {746 return Blob_getSize($this->_cPtr);747 }748 function getMimeType() {749 return Blob_getMimeType($this->_cPtr);750 }751 function setMimeType($mimeType) {752 Blob_setMimeType($this->_cPtr,$mimeType);753 }754}755class Data {756 public $_cPtr=null;757 protected $_pData=array();758 function __set($var,$value) {759 if ($var === 'thisown') return swig_uscxmlNativePHP_alter_newobject($this->_cPtr,$value);760 $this->_pData[$var] = $value;761 }762 function __get($var) {763 if ($var === 'thisown') return swig_uscxmlNativePHP_get_newobject($this->_cPtr);764 return $this->_pData[$var];765 }766 function __isset($var) {767 if ($var === 'thisown') return true;768 return array_key_exists($var, $this->_pData);769 }770 const VERBATIM = 0;771 const INTERPRETED = Data_INTERPRETED;772 function __construct($atom=null,$type=null) {773 if (is_resource($atom) && get_resource_type($atom) === '_p_uscxml__Data') {774 $this->_cPtr=$atom;775 return;776 }777 switch (func_num_args()) {778 case 0: $this->_cPtr=new_Data(); break;779 case 1: $this->_cPtr=new_Data($atom); break;780 default: $this->_cPtr=new_Data($atom,$type);781 }782 }783 function c_empty() {784 return Data_c_empty($this->_cPtr);785 }786 function merge($other) {787 Data_merge($this->_cPtr,$other);788 }789 function hasKey($key) {790 return Data_hasKey($this->_cPtr,$key);791 }792 function at($key) {793 $r=Data_at($this->_cPtr,$key);794 if (is_resource($r)) {795 $c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));796 if (class_exists($c)) return new $c($r);797 return new Data($r);798 }799 return $r;800 }801 function item($index) {802 $r=Data_item($this->_cPtr,$index);803 if (is_resource($r)) {804 $c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));805 if (class_exists($c)) return new $c($r);806 return new Data($r);807 }808 return $r;809 }810 function put($key_or_index,$data) {811 Data_put($this->_cPtr,$key_or_index,$data);812 }813 function equals($other) {814 return Data_equals($this->_cPtr,$other);815 }816 static function fromJSON($jsonString) {817 $r=Data_fromJSON($jsonString);818 if (is_resource($r)) {819 $c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));820 if (class_exists($c)) return new $c($r);821 return new Data($r);822 }823 return $r;824 }825 static function toJSON($data) {826 return Data_toJSON($data);827 }828 static function fromXML($xmlString) {829 $r=Data_fromXML($xmlString);830 if (is_resource($r)) {831 $c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));832 if (class_exists($c)) return new $c($r);833 return new Data($r);834 }835 return $r;836 }837 function toXMLString() {838 return Data_toXMLString($this->_cPtr);839 }840 function getCompound() {841 $r=Data_getCompound($this->_cPtr);842 if (is_resource($r)) {843 $c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));844 if (class_exists($c)) return new $c($r);845 return new DataMap($r);846 }847 return $r;848 }849 function setCompound($compound) {850 Data_setCompound($this->_cPtr,$compound);851 }852 function getArray() {853 $r=Data_getArray($this->_cPtr);854 if (is_resource($r)) {855 $c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));856 if (class_exists($c)) return new $c($r);857 return new DataList($r);858 }859 return $r;860 }861 function setArray($array) {862 Data_setArray($this->_cPtr,$array);863 }864 function getAtom() {865 return Data_getAtom($this->_cPtr);866 }867 function setAtom($atom) {868 Data_setAtom($this->_cPtr,$atom);869 }870 function getBinary() {871 $r=Data_getBinary($this->_cPtr);872 if (is_resource($r)) {873 $c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));874 if (class_exists($c)) return new $c($r);875 return new Blob($r);876 }877 return $r;878 }879 function setBinary($binary) {880 Data_setBinary($this->_cPtr,$binary);881 }882 function getType() {883 return Data_getType($this->_cPtr);884 }885 function setType($type) {886 Data_setType($this->_cPtr,$type);887 }888 function toString() {889 return Data_toString($this->_cPtr);890 }891 function getCompoundKeys() {892 $r=Data_getCompoundKeys($this->_cPtr);893 if (is_resource($r)) {894 $c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));895 if (class_exists($c)) return new $c($r);896 return new StringVector($r);897 }898 return $r;899 }900 function getXML() {901 return Data_getXML($this->_cPtr);902 }903 function setXML($xml) {904 Data_setXML($this->_cPtr,$xml);905 }906}907class Event {908 public $_cPtr=null;909 protected $_pData=array();910 function __set($var,$value) {911 if ($var === 'thisown') return swig_uscxmlNativePHP_alter_newobject($this->_cPtr,$value);912 $this->_pData[$var] = $value;913 }914 function __get($var) {915 if ($var === 'thisown') return swig_uscxmlNativePHP_get_newobject($this->_cPtr);916 return $this->_pData[$var];917 }918 function __isset($var) {919 if ($var === 'thisown') return true;920 return array_key_exists($var, $this->_pData);921 }922 const INTERNAL = 1;923 const EXTERNAL = 2;924 const PLATFORM = 3;925 function __construct($name=null,$type=null) {926 if (is_resource($name) && get_resource_type($name) === '_p_uscxml__Event') {927 $this->_cPtr=$name;928 return;929 }930 switch (func_num_args()) {931 case 0: $this->_cPtr=new_Event(); break;932 case 1: $this->_cPtr=new_Event($name); break;933 default: $this->_cPtr=new_Event($name,$type);934 }935 }936 function equals($other) {937 return Event_equals($this->_cPtr,$other);938 }939 function getName() {940 return Event_getName($this->_cPtr);941 }942 function setName($name) {943 Event_setName($this->_cPtr,$name);944 }945 function getEventType() {946 return Event_getEventType($this->_cPtr);947 }948 function setEventType($type) {949 Event_setEventType($this->_cPtr,$type);950 }951 function getOrigin() {952 return Event_getOrigin($this->_cPtr);953 }954 function setOrigin($origin) {955 Event_setOrigin($this->_cPtr,$origin);956 }957 function getOriginType() {958 return Event_getOriginType($this->_cPtr);959 }960 function setOriginType($originType) {961 Event_setOriginType($this->_cPtr,$originType);962 }963 function getDOM() {964 return Event_getDOM($this->_cPtr);965 }966 function getRaw() {967 return Event_getRaw($this->_cPtr);968 }969 function setRaw($raw) {970 Event_setRaw($this->_cPtr,$raw);971 }972 function getContent() {973 return Event_getContent($this->_cPtr);974 }975 function setContent($content) {976 Event_setContent($this->_cPtr,$content);977 }978 function getXML() {979 return Event_getXML($this->_cPtr);980 }981 function setXML($xml) {982 Event_setXML($this->_cPtr,$xml);983 }984 function getSendId() {985 return Event_getSendId($this->_cPtr);986 }987 function setSendId($sendId) {988 Event_setSendId($this->_cPtr,$sendId);989 }990 function getInvokeId() {991 return Event_getInvokeId($this->_cPtr);992 }993 function setInvokeId($invokeId) {994 Event_setInvokeId($this->_cPtr,$invokeId);995 }996 function getData() {997 $r=Event_getData($this->_cPtr);998 if (is_resource($r)) {999 $c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));1000 if (class_exists($c)) return new $c($r);1001 return new Data($r);1002 }1003 return $r;1004 }1005 function setData($data) {1006 Event_setData($this->_cPtr,$data);1007 }1008 static function fromXML($xmlString) {1009 $r=Event_fromXML($xmlString);1010 if (is_resource($r)) {1011 $c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));1012 if (class_exists($c)) return new $c($r);1013 return new Event($r);1014 }1015 return $r;1016 }1017 function toXMLString() {1018 return Event_toXMLString($this->_cPtr);1019 }1020 function getNameList() {1021 $r=Event_getNameList($this->_cPtr);1022 if (is_resource($r)) {1023 $c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));1024 if (class_exists($c)) return new $c($r);1025 return new DataMap($r);1026 }1027 return $r;1028 }1029 function setNameList($nameList) {1030 Event_setNameList($this->_cPtr,$nameList);1031 }1032 function toString() {1033 return Event_toString($this->_cPtr);1034 }1035 function getParamMap() {1036 $r=Event_getParamMap($this->_cPtr);1037 if (is_resource($r)) {1038 $c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));1039 if (class_exists($c)) return new $c($r);1040 return new ParamMap($r);1041 }1042 return $r;1043 }1044 function getParamMapKeys() {1045 $r=Event_getParamMapKeys($this->_cPtr);1046 if (is_resource($r)) {1047 $c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));1048 if (class_exists($c)) return new $c($r);1049 return new StringVector($r);1050 }1051 return $r;1052 }1053 function setParamMap($paramMap) {1054 Event_setParamMap($this->_cPtr,$paramMap);1055 }1056 function getNameListKeys() {1057 $r=Event_getNameListKeys($this->_cPtr);1058 if (is_resource($r)) {1059 $c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));1060 if (class_exists($c)) return new $c($r);1061 return new StringVector($r);1062 }1063 return $r;1064 }1065}1066class InvokeRequest extends Event {1067 public $_cPtr=null;1068 function __set($var,$value) {1069 if ($var === 'thisown') return swig_uscxmlNativePHP_alter_newobject($this->_cPtr,$value);1070 Event::__set($var,$value);1071 }1072 function __get($var) {1073 if ($var === 'thisown') return swig_uscxmlNativePHP_get_newobject($this->_cPtr);1074 return Event::__get($var);1075 }1076 function __isset($var) {1077 if ($var === 'thisown') return true;1078 return Event::__isset($var);1079 }1080 function __construct($event=null) {1081 if (is_resource($event) && get_resource_type($event) === '_p_uscxml__InvokeRequest') {1082 $this->_cPtr=$event;1083 return;1084 }1085 switch (func_num_args()) {1086 case 0: $this->_cPtr=new_InvokeRequest(); break;1087 default: $this->_cPtr=new_InvokeRequest($event);1088 }1089 }1090 function getType() {1091 return InvokeRequest_getType($this->_cPtr);1092 }1093 function setType($type) {1094 InvokeRequest_setType($this->_cPtr,$type);1095 }1096 function getSource() {1097 return InvokeRequest_getSource($this->_cPtr);1098 }1099 function setSource($src) {1100 InvokeRequest_setSource($this->_cPtr,$src);1101 }1102 function isAutoForwarded() {1103 return InvokeRequest_isAutoForwarded($this->_cPtr);1104 }1105 function setAutoForwarded($autoForward) {1106 InvokeRequest_setAutoForwarded($this->_cPtr,$autoForward);1107 }1108 function toXMLString() {1109 return InvokeRequest_toXMLString($this->_cPtr);1110 }1111 function toString() {1112 return InvokeRequest_toString($this->_cPtr);1113 }1114}1115class SendRequest extends Event {1116 public $_cPtr=null;1117 function __set($var,$value) {1118 if ($var === 'thisown') return swig_uscxmlNativePHP_alter_newobject($this->_cPtr,$value);1119 Event::__set($var,$value);1120 }1121 function __get($var) {1122 if ($var === 'thisown') return swig_uscxmlNativePHP_get_newobject($this->_cPtr);1123 return Event::__get($var);1124 }1125 function __isset($var) {1126 if ($var === 'thisown') return true;1127 return Event::__isset($var);1128 }1129 function __construct($event=null) {1130 if (is_resource($event) && get_resource_type($event) === '_p_uscxml__SendRequest') {1131 $this->_cPtr=$event;1132 return;1133 }1134 switch (func_num_args()) {1135 case 0: $this->_cPtr=new_SendRequest(); break;1136 default: $this->_cPtr=new_SendRequest($event);1137 }1138 }1139 function getTarget() {1140 return SendRequest_getTarget($this->_cPtr);1141 }1142 function setTarget($target) {1143 SendRequest_setTarget($this->_cPtr,$target);1144 }1145 function getType() {1146 return SendRequest_getType($this->_cPtr);1147 }1148 function setType($type) {1149 SendRequest_setType($this->_cPtr,$type);1150 }1151 function getDelayMs() {1152 return SendRequest_getDelayMs($this->_cPtr);1153 }1154 function setDelayMs($delayMs) {1155 SendRequest_setDelayMs($this->_cPtr,$delayMs);1156 }1157 function toXMLString() {1158 return SendRequest_toXMLString($this->_cPtr);1159 }1160 function toString() {1161 return SendRequest_toString($this->_cPtr);1162 }1163}1164abstract class NativeDataModelExtension {1165 public $_cPtr=null;1166 protected $_pData=array();1167 function __set($var,$value) {1168 if ($var === 'thisown') return swig_uscxmlNativePHP_alter_newobject($this->_cPtr,$value);1169 $this->_pData[$var] = $value;1170 }1171 function __get($var) {1172 if ($var === 'thisown') return swig_uscxmlNativePHP_get_newobject($this->_cPtr);1173 return $this->_pData[$var];1174 }1175 function __isset($var) {1176 if ($var === 'thisown') return true;1177 return array_key_exists($var, $this->_pData);1178 }1179 function __construct($h) {1180 $this->_cPtr=$h;1181 }1182 function provides() {1183 return NativeDataModelExtension_provides($this->_cPtr);1184 }1185 function getValueOf($member) {1186 $r=NativeDataModelExtension_getValueOf($this->_cPtr,$member);1187 if (is_resource($r)) {1188 $c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));1189 if (class_exists($c)) return new $c($r);1190 return new Data($r);1191 }1192 return $r;1193 }1194 function setValueOf($member,$data) {1195 NativeDataModelExtension_setValueOf($this->_cPtr,$member,$data);1196 }1197}1198abstract class DataModelImpl {1199 public $_cPtr=null;1200 protected $_pData=array();1201 function __set($var,$value) {1202 if ($var === 'thisown') return swig_uscxmlNativePHP_alter_newobject($this->_cPtr,$value);1203 $this->_pData[$var] = $value;1204 }1205 function __get($var) {1206 if ($var === 'thisown') return swig_uscxmlNativePHP_get_newobject($this->_cPtr);1207 return $this->_pData[$var];1208 }1209 function __isset($var) {1210 if ($var === 'thisown') return true;1211 return array_key_exists($var, $this->_pData);1212 }1213 function __construct($h) {1214 $this->_cPtr=$h;1215 }1216 function getNames() {1217 $r=DataModelImpl_getNames($this->_cPtr);1218 if (is_resource($r)) {1219 $c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));1220 if (class_exists($c)) return new $c($r);1221 return new StringList($r);1222 }1223 return $r;1224 }1225 function validate($location,$schema) {1226 return DataModelImpl_validate($this->_cPtr,$location,$schema);1227 }1228 function isLocation($expr) {1229 return DataModelImpl_isLocation($this->_cPtr,$expr);1230 }1231 function isValidSyntax($expr) {1232 return DataModelImpl_isValidSyntax($this->_cPtr,$expr);1233 }1234 function setEvent($event) {1235 DataModelImpl_setEvent($this->_cPtr,$event);1236 }1237 function getStringAsData($content) {1238 $r=DataModelImpl_getStringAsData($this->_cPtr,$content);1239 if (is_resource($r)) {1240 $c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));1241 if (class_exists($c)) return new $c($r);1242 return new Data($r);1243 }1244 return $r;1245 }1246 function getLength($expr) {1247 return DataModelImpl_getLength($this->_cPtr,$expr);1248 }1249 function setForeach($item,$array,$index,$iteration) {1250 DataModelImpl_setForeach($this->_cPtr,$item,$array,$index,$iteration);1251 }1252 function pushContext() {1253 DataModelImpl_pushContext($this->_cPtr);1254 }1255 function popContext() {1256 DataModelImpl_popContext($this->_cPtr);1257 }1258 function evalAsString($expr) {1259 return DataModelImpl_evalAsString($this->_cPtr,$expr);1260 }1261 function evalAsBool($scriptNode_or_expr,$expr=null) {1262 switch (func_num_args()) {1263 case 1: $r=DataModelImpl_evalAsBool($this->_cPtr,$scriptNode_or_expr); break;1264 default: $r=DataModelImpl_evalAsBool($this->_cPtr,$scriptNode_or_expr,$expr);1265 }1266 return $r;1267 }1268 function isDeclared($expr) {1269 return DataModelImpl_isDeclared($this->_cPtr,$expr);1270 }1271 function addExtension($ext) {1272 DataModelImpl_addExtension($this->_cPtr,$ext);1273 }1274 function andExpressions($arg1) {1275 return DataModelImpl_andExpressions($this->_cPtr,$arg1);1276 }1277}1278class NativeDataModel {1279 public $_cPtr=null;1280 protected $_pData=array();1281 function __set($var,$value) {1282 if ($var === 'thisown') return swig_uscxmlNativePHP_alter_newobject($this->_cPtr,$value);1283 $this->_pData[$var] = $value;1284 }1285 function __get($var) {1286 if ($var === 'thisown') return swig_uscxmlNativePHP_get_newobject($this->_cPtr);1287 return $this->_pData[$var];1288 }1289 function __isset($var) {1290 if ($var === 'thisown') return true;1291 return array_key_exists($var, $this->_pData);1292 }1293 function __construct($res=null) {1294 if (is_resource($res) && get_resource_type($res) === '_p_uscxml__DataModel') {1295 $this->_cPtr=$res;1296 return;1297 }1298 $this->_cPtr=new_NativeDataModel();1299 }1300 function isValid() {1301 return NativeDataModel_isValid($this->_cPtr);1302 }1303 function equals($other) {1304 return NativeDataModel_equals($this->_cPtr,$other);1305 }1306 function getNames() {1307 $r=NativeDataModel_getNames($this->_cPtr);1308 if (is_resource($r)) {1309 $c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));1310 if (class_exists($c)) return new $c($r);1311 return new StringList($r);1312 }1313 return $r;1314 }1315 function validate($location,$schema) {1316 return NativeDataModel_validate($this->_cPtr,$location,$schema);1317 }1318 function isLocation($expr) {1319 return NativeDataModel_isLocation($this->_cPtr,$expr);1320 }1321 function isValidSyntax($expr) {1322 return NativeDataModel_isValidSyntax($this->_cPtr,$expr);1323 }1324 function setEvent($event) {1325 NativeDataModel_setEvent($this->_cPtr,$event);1326 }1327 function getStringAsData($content) {1328 $r=NativeDataModel_getStringAsData($this->_cPtr,$content);1329 if (is_resource($r)) {1330 $c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));1331 if (class_exists($c)) return new $c($r);1332 return new Data($r);1333 }1334 return $r;1335 }1336 function pushContext() {1337 NativeDataModel_pushContext($this->_cPtr);1338 }1339 function popContext() {1340 NativeDataModel_popContext($this->_cPtr);1341 }1342 function evalAsString($expr) {1343 return NativeDataModel_evalAsString($this->_cPtr,$expr);1344 }1345 function evalAsBool($scriptNode,$expr) {1346 return NativeDataModel_evalAsBool($this->_cPtr,$scriptNode,$expr);1347 }1348 function getLength($expr) {1349 return NativeDataModel_getLength($this->_cPtr,$expr);1350 }1351 function setForeach($item,$array,$index,$iteration) {1352 NativeDataModel_setForeach($this->_cPtr,$item,$array,$index,$iteration);1353 }1354 function assign($location,$data) {1355 NativeDataModel_assign($this->_cPtr,$location,$data);1356 }1357 function init($location,$data) {1358 NativeDataModel_init($this->_cPtr,$location,$data);1359 }1360 function isDeclared($expr) {1361 return NativeDataModel_isDeclared($this->_cPtr,$expr);1362 }1363 function andExpressions($expressions) {1364 return NativeDataModel_andExpressions($this->_cPtr,$expressions);1365 }1366 function addExtension($ext) {1367 NativeDataModel_addExtension($this->_cPtr,$ext);1368 }1369}1370abstract class EventHandlerImpl {1371 public $_cPtr=null;1372 protected $_pData=array();1373 function __set($var,$value) {1374 if ($var === 'thisown') return swig_uscxmlNativePHP_alter_newobject($this->_cPtr,$value);1375 $this->_pData[$var] = $value;1376 }1377 function __get($var) {1378 if ($var === 'thisown') return swig_uscxmlNativePHP_get_newobject($this->_cPtr);1379 return $this->_pData[$var];1380 }1381 function __isset($var) {1382 if ($var === 'thisown') return true;1383 return array_key_exists($var, $this->_pData);1384 }1385 function __construct($h) {1386 $this->_cPtr=$h;1387 }1388 function getNames() {1389 $r=EventHandlerImpl_getNames($this->_cPtr);1390 if (is_resource($r)) {1391 $c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));1392 if (class_exists($c)) return new $c($r);1393 return new StringList($r);1394 }1395 return $r;1396 }1397 function setInvokeId($invokeId) {1398 EventHandlerImpl_setInvokeId($this->_cPtr,$invokeId);1399 }1400 function setType($type) {1401 EventHandlerImpl_setType($this->_cPtr,$type);1402 }1403 function getType() {1404 return EventHandlerImpl_getType($this->_cPtr);1405 }1406 function getDataModelVariables() {1407 $r=EventHandlerImpl_getDataModelVariables($this->_cPtr);1408 if (is_resource($r)) {1409 $c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));1410 if (class_exists($c)) return new $c($r);1411 return new Data($r);1412 }1413 return $r;1414 }1415 function send($req) {1416 EventHandlerImpl_send($this->_cPtr,$req);1417 }1418 function returnErrorExecution($arg1) {1419 EventHandlerImpl_returnErrorExecution($this->_cPtr,$arg1);1420 }1421 function returnErrorCommunication($arg1) {1422 EventHandlerImpl_returnErrorCommunication($this->_cPtr,$arg1);1423 }1424 function returnEvent($event,$internal=false) {1425 EventHandlerImpl_returnEvent($this->_cPtr,$event,$internal);1426 }1427}1428class EventHandler {1429 public $_cPtr=null;1430 protected $_pData=array();1431 function __set($var,$value) {1432 if ($var === 'thisown') return swig_uscxmlNativePHP_alter_newobject($this->_cPtr,$value);1433 $this->_pData[$var] = $value;1434 }1435 function __get($var) {1436 if ($var === 'thisown') return swig_uscxmlNativePHP_get_newobject($this->_cPtr);1437 return $this->_pData[$var];1438 }1439 function __isset($var) {1440 if ($var === 'thisown') return true;1441 return array_key_exists($var, $this->_pData);1442 }1443 function __construct($other=null) {1444 if (is_resource($other) && get_resource_type($other) === '_p_uscxml__EventHandler') {1445 $this->_cPtr=$other;1446 return;1447 }1448 switch (func_num_args()) {1449 case 0: $this->_cPtr=new_EventHandler(); break;1450 default: $this->_cPtr=new_EventHandler($other);1451 }1452 }1453 function getNames() {1454 $r=EventHandler_getNames($this->_cPtr);1455 if (is_resource($r)) {1456 $c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));1457 if (class_exists($c)) return new $c($r);1458 return new StringList($r);1459 }1460 return $r;1461 }1462 function getDataModelVariables() {1463 $r=EventHandler_getDataModelVariables($this->_cPtr);1464 if (is_resource($r)) {1465 $c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));1466 if (class_exists($c)) return new $c($r);1467 return new Data($r);1468 }1469 return $r;1470 }1471 function send($req) {1472 EventHandler_send($this->_cPtr,$req);1473 }1474 function setInvokeId($invokeId) {1475 EventHandler_setInvokeId($this->_cPtr,$invokeId);1476 }1477 function setType($type) {1478 EventHandler_setType($this->_cPtr,$type);1479 }1480 function getType() {1481 return EventHandler_getType($this->_cPtr);1482 }1483}1484abstract class ExecutableContentImpl {1485 public $_cPtr=null;1486 protected $_pData=array();1487 function __set($var,$value) {1488 if ($var === 'thisown') return swig_uscxmlNativePHP_alter_newobject($this->_cPtr,$value);1489 $this->_pData[$var] = $value;1490 }1491 function __get($var) {1492 if ($var === 'thisown') return swig_uscxmlNativePHP_get_newobject($this->_cPtr);1493 return $this->_pData[$var];1494 }1495 function __isset($var) {1496 if ($var === 'thisown') return true;1497 return array_key_exists($var, $this->_pData);1498 }1499 function __construct($h) {1500 $this->_cPtr=$h;1501 }1502 function getLocalName() {1503 return ExecutableContentImpl_getLocalName($this->_cPtr);1504 }1505 function getNamespace() {1506 return ExecutableContentImpl_getNamespace($this->_cPtr);1507 }1508 function enterElement($node) {1509 ExecutableContentImpl_enterElement($this->_cPtr,$node);1510 }1511 function exitElement($node) {1512 ExecutableContentImpl_exitElement($this->_cPtr,$node);1513 }1514 function processChildren() {1515 return ExecutableContentImpl_processChildren($this->_cPtr);1516 }1517}1518class NativeExecutableContent {1519 public $_cPtr=null;1520 protected $_pData=array();1521 function __set($var,$value) {1522 if ($var === 'thisown') return swig_uscxmlNativePHP_alter_newobject($this->_cPtr,$value);1523 $this->_pData[$var] = $value;1524 }1525 function __get($var) {1526 if ($var === 'thisown') return swig_uscxmlNativePHP_get_newobject($this->_cPtr);1527 return $this->_pData[$var];1528 }1529 function __isset($var) {1530 if ($var === 'thisown') return true;1531 return array_key_exists($var, $this->_pData);1532 }1533 function __construct($res=null) {1534 if (is_resource($res) && get_resource_type($res) === '_p_uscxml__ExecutableContent') {1535 $this->_cPtr=$res;1536 return;1537 }1538 $this->_cPtr=new_NativeExecutableContent();1539 }1540 function isValid() {1541 return NativeExecutableContent_isValid($this->_cPtr);1542 }1543 function equals($other) {1544 return NativeExecutableContent_equals($this->_cPtr,$other);1545 }1546 function getLocalName() {1547 return NativeExecutableContent_getLocalName($this->_cPtr);1548 }1549 function getNamespace() {1550 return NativeExecutableContent_getNamespace($this->_cPtr);1551 }1552 function enterElement($node) {1553 NativeExecutableContent_enterElement($this->_cPtr,$node);1554 }1555 function exitElement($node) {1556 NativeExecutableContent_exitElement($this->_cPtr,$node);1557 }1558 function processChildren() {1559 return NativeExecutableContent_processChildren($this->_cPtr);1560 }1561}1562abstract class InvokerImpl extends EventHandlerImpl {1563 public $_cPtr=null;1564 function __set($var,$value) {1565 if ($var === 'thisown') return swig_uscxmlNativePHP_alter_newobject($this->_cPtr,$value);1566 EventHandlerImpl::__set($var,$value);1567 }1568 function __get($var) {1569 if ($var === 'thisown') return swig_uscxmlNativePHP_get_newobject($this->_cPtr);1570 return EventHandlerImpl::__get($var);1571 }1572 function __isset($var) {1573 if ($var === 'thisown') return true;1574 return EventHandlerImpl::__isset($var);1575 }1576 function __construct($h) {1577 $this->_cPtr=$h;1578 }1579 function invoke($req) {1580 InvokerImpl_invoke($this->_cPtr,$req);1581 }1582 function uninvoke() {1583 InvokerImpl_uninvoke($this->_cPtr);1584 }1585 function deleteOnUninvoke() {1586 return InvokerImpl_deleteOnUninvoke($this->_cPtr);1587 }1588}1589class NativeInvoker extends EventHandler {1590 public $_cPtr=null;1591 function __set($var,$value) {1592 if ($var === 'thisown') return swig_uscxmlNativePHP_alter_newobject($this->_cPtr,$value);1593 EventHandler::__set($var,$value);1594 }1595 function __get($var) {1596 if ($var === 'thisown') return swig_uscxmlNativePHP_get_newobject($this->_cPtr);1597 return EventHandler::__get($var);1598 }1599 function __isset($var) {1600 if ($var === 'thisown') return true;1601 return EventHandler::__isset($var);1602 }1603 function __construct($other=null) {1604 if (is_resource($other) && get_resource_type($other) === '_p_uscxml__Invoker') {1605 $this->_cPtr=$other;1606 return;1607 }1608 switch (func_num_args()) {1609 case 0: $this->_cPtr=new_NativeInvoker(); break;1610 default: $this->_cPtr=new_NativeInvoker($other);1611 }1612 }1613 function isValid() {1614 return NativeInvoker_isValid($this->_cPtr);1615 }1616 function equals($other) {1617 return NativeInvoker_equals($this->_cPtr,$other);1618 }1619 function invoke($req) {1620 NativeInvoker_invoke($this->_cPtr,$req);1621 }1622 function uninvoke() {1623 NativeInvoker_uninvoke($this->_cPtr);1624 }1625 function deleteOnUninvoke() {1626 return NativeInvoker_deleteOnUninvoke($this->_cPtr);1627 }1628}1629abstract class IOProcessorImpl extends EventHandlerImpl {1630 public $_cPtr=null;1631 function __set($var,$value) {1632 if ($var === 'thisown') return swig_uscxmlNativePHP_alter_newobject($this->_cPtr,$value);1633 EventHandlerImpl::__set($var,$value);1634 }1635 function __get($var) {1636 if ($var === 'thisown') return swig_uscxmlNativePHP_get_newobject($this->_cPtr);1637 return EventHandlerImpl::__get($var);1638 }1639 function __isset($var) {1640 if ($var === 'thisown') return true;1641 return EventHandlerImpl::__isset($var);1642 }1643 function __construct($h) {1644 $this->_cPtr=$h;1645 }1646}1647class NativeIOProcessor extends EventHandler {1648 public $_cPtr=null;1649 function __set($var,$value) {1650 if ($var === 'thisown') return swig_uscxmlNativePHP_alter_newobject($this->_cPtr,$value);1651 EventHandler::__set($var,$value);1652 }1653 function __get($var) {1654 if ($var === 'thisown') return swig_uscxmlNativePHP_get_newobject($this->_cPtr);1655 return EventHandler::__get($var);1656 }1657 function __isset($var) {1658 if ($var === 'thisown') return true;1659 return EventHandler::__isset($var);1660 }1661 function __construct($res=null) {1662 if (is_resource($res) && get_resource_type($res) === '_p_uscxml__IOProcessor') {1663 $this->_cPtr=$res;1664 return;1665 }1666 $this->_cPtr=new_NativeIOProcessor();1667 }1668 function isValid() {1669 return NativeIOProcessor_isValid($this->_cPtr);1670 }1671 function equals($other) {1672 return NativeIOProcessor_equals($this->_cPtr,$other);1673 }1674}1675class Invoker extends InvokerImpl {1676 public $_cPtr=null;1677 function __set($var,$value) {1678 if ($var === 'thisown') return swig_uscxmlNativePHP_alter_newobject($this->_cPtr,$value);1679 InvokerImpl::__set($var,$value);1680 }1681 function __get($var) {1682 if ($var === 'thisown') return swig_uscxmlNativePHP_get_newobject($this->_cPtr);1683 return InvokerImpl::__get($var);1684 }1685 function __isset($var) {1686 if ($var === 'thisown') return true;1687 return InvokerImpl::__isset($var);1688 }1689 function __construct($res=null) {1690 if (is_resource($res) && get_resource_type($res) === '_p_uscxml__WrappedInvoker') {1691 $this->_cPtr=$res;1692 return;1693 }1694 if (get_class($this) === 'Invoker') {1695 $_this = null;1696 } else {1697 $_this = $this;1698 }1699 $this->_cPtr=new_Invoker($_this);1700 }1701 function getNames() {1702 $r=Invoker_getNames($this->_cPtr);1703 if (is_resource($r)) {1704 $c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));1705 if (class_exists($c)) return new $c($r);1706 return new StringList($r);1707 }1708 return $r;1709 }1710 function getDataModelVariables() {1711 $r=Invoker_getDataModelVariables($this->_cPtr);1712 if (is_resource($r)) {1713 $c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));1714 if (class_exists($c)) return new $c($r);1715 return new Data($r);1716 }1717 return $r;1718 }1719 function send($req) {1720 Invoker_send($this->_cPtr,$req);1721 }1722 function invoke($req) {1723 Invoker_invoke($this->_cPtr,$req);1724 }1725 function uninvoke() {1726 Invoker_uninvoke($this->_cPtr);1727 }1728 function deleteOnUninvoke() {1729 return Invoker_deleteOnUninvoke($this->_cPtr);1730 }1731 function create($interpreter) {1732 $r=Invoker_create($this->_cPtr,$interpreter);1733 if (is_resource($r)) {1734 $c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));1735 if (class_exists($c)) return new $c($r);1736 return new Invoker($r);1737 }1738 return $r;1739 }1740}1741class DataModelExtension extends NativeDataModelExtension {1742 public $_cPtr=null;1743 function __set($var,$value) {1744 if ($var === 'thisown') return swig_uscxmlNativePHP_alter_newobject($this->_cPtr,$value);1745 NativeDataModelExtension::__set($var,$value);1746 }1747 function __get($var) {1748 if ($var === 'thisown') return swig_uscxmlNativePHP_get_newobject($this->_cPtr);1749 return NativeDataModelExtension::__get($var);1750 }1751 function __isset($var) {1752 if ($var === 'thisown') return true;1753 return NativeDataModelExtension::__isset($var);1754 }1755 function __construct($res=null) {1756 if (is_resource($res) && get_resource_type($res) === '_p_uscxml__WrappedDataModelExtension') {1757 $this->_cPtr=$res;1758 return;1759 }1760 if (get_class($this) === 'DataModelExtension') {1761 $_this = null;1762 } else {1763 $_this = $this;1764 }1765 $this->_cPtr=new_DataModelExtension($_this);1766 }1767 function provides() {1768 return DataModelExtension_provides($this->_cPtr);1769 }1770 function getValueOf($member) {1771 $r=DataModelExtension_getValueOf($this->_cPtr,$member);1772 if (is_resource($r)) {1773 $c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));1774 if (class_exists($c)) return new $c($r);1775 return new Data($r);1776 }1777 return $r;1778 }1779 function setValueOf($member,$data) {1780 DataModelExtension_setValueOf($this->_cPtr,$member,$data);1781 }1782}1783class DataModel extends DataModelImpl {1784 public $_cPtr=null;1785 function __set($var,$value) {1786 if ($var === 'thisown') return swig_uscxmlNativePHP_alter_newobject($this->_cPtr,$value);1787 DataModelImpl::__set($var,$value);1788 }1789 function __get($var) {1790 if ($var === 'thisown') return swig_uscxmlNativePHP_get_newobject($this->_cPtr);1791 return DataModelImpl::__get($var);1792 }1793 function __isset($var) {1794 if ($var === 'thisown') return true;1795 return DataModelImpl::__isset($var);1796 }1797 function __construct($res=null) {1798 if (is_resource($res) && get_resource_type($res) === '_p_uscxml__WrappedDataModel') {1799 $this->_cPtr=$res;1800 return;1801 }1802 if (get_class($this) === 'DataModel') {1803 $_this = null;1804 } else {1805 $_this = $this;1806 }1807 $this->_cPtr=new_DataModel($_this);1808 }1809 function create($interpreter) {1810 $r=DataModel_create($this->_cPtr,$interpreter);1811 if (is_resource($r)) {1812 $c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));1813 if (class_exists($c)) return new $c($r);1814 return new DataModel($r);1815 }1816 return $r;1817 }1818 function getNames() {1819 $r=DataModel_getNames($this->_cPtr);1820 if (is_resource($r)) {1821 $c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));1822 if (class_exists($c)) return new $c($r);1823 return new StringList($r);1824 }1825 return $r;1826 }1827 function andExpressions($arg0) {1828 return DataModel_andExpressions($this->_cPtr,$arg0);1829 }1830 function validate($location,$schema) {1831 return DataModel_validate($this->_cPtr,$location,$schema);1832 }1833 function setEvent($event) {1834 DataModel_setEvent($this->_cPtr,$event);1835 }1836 function getStringAsData($content) {1837 $r=DataModel_getStringAsData($this->_cPtr,$content);1838 if (is_resource($r)) {1839 $c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));1840 if (class_exists($c)) return new $c($r);1841 return new Data($r);1842 }1843 return $r;1844 }1845 function getLength($expr) {1846 return DataModel_getLength($this->_cPtr,$expr);1847 }1848 function setForeach($item,$array,$index,$iteration) {1849 DataModel_setForeach($this->_cPtr,$item,$array,$index,$iteration);1850 }1851 function pushContext() {1852 DataModel_pushContext($this->_cPtr);1853 }1854 function popContext() {1855 DataModel_popContext($this->_cPtr);1856 }1857 function evalAsString($expr) {1858 return DataModel_evalAsString($this->_cPtr,$expr);1859 }1860 function isDeclared($expr) {1861 return DataModel_isDeclared($this->_cPtr,$expr);1862 }1863 function isLocation($expr) {1864 return DataModel_isLocation($this->_cPtr,$expr);1865 }1866 function evalAsBool($expr_or_node_or_elem,$expr_or_content=null) {1867 switch (func_num_args()) {1868 case 1: $this->_cPtr=DataModel_evalAsBool($this->_cPtr,$expr_or_node_or_elem); break;1869 default: $this->_cPtr=DataModel_evalAsBool($this->_cPtr,$expr_or_node_or_elem,$expr_or_content);1870 }1871 return $r;1872 }1873 function init($dataElem,$location,$content) {1874 DataModel_init($this->_cPtr,$dataElem,$location,$content);1875 }1876 function assign($assignElem,$location,$content) {1877 DataModel_assign($this->_cPtr,$assignElem,$location,$content);1878 }1879 function c_eval($scriptElem,$expr) {1880 DataModel_c_eval($this->_cPtr,$scriptElem,$expr);1881 }1882}1883class ExecutableContent extends ExecutableContentImpl {1884 public $_cPtr=null;1885 function __set($var,$value) {1886 if ($var === 'thisown') return swig_uscxmlNativePHP_alter_newobject($this->_cPtr,$value);1887 ExecutableContentImpl::__set($var,$value);1888 }1889 function __get($var) {1890 if ($var === 'thisown') return swig_uscxmlNativePHP_get_newobject($this->_cPtr);1891 return ExecutableContentImpl::__get($var);1892 }1893 function __isset($var) {1894 if ($var === 'thisown') return true;1895 return ExecutableContentImpl::__isset($var);1896 }1897 function __construct($res=null) {1898 if (is_resource($res) && get_resource_type($res) === '_p_uscxml__WrappedExecutableContent') {1899 $this->_cPtr=$res;1900 return;1901 }1902 if (get_class($this) === 'ExecutableContent') {1903 $_this = null;1904 } else {1905 $_this = $this;1906 }1907 $this->_cPtr=new_ExecutableContent($_this);1908 }1909 function create($interpreter) {1910 $r=ExecutableContent_create($this->_cPtr,$interpreter);1911 if (is_resource($r)) {1912 $c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));1913 if (class_exists($c)) return new $c($r);1914 return new ExecutableContent($r);1915 }1916 return $r;1917 }1918 function getLocalName() {1919 return ExecutableContent_getLocalName($this->_cPtr);1920 }1921 function getNamespace() {1922 return ExecutableContent_getNamespace($this->_cPtr);1923 }1924 function processChildren() {1925 return ExecutableContent_processChildren($this->_cPtr);1926 }1927 function enterElement($node) {1928 ExecutableContent_enterElement($this->_cPtr,$node);1929 }1930 function exitElement($node) {1931 ExecutableContent_exitElement($this->_cPtr,$node);1932 }1933}1934class IOProcessor extends IOProcessorImpl {1935 public $_cPtr=null;1936 function __set($var,$value) {1937 if ($var === 'thisown') return swig_uscxmlNativePHP_alter_newobject($this->_cPtr,$value);1938 IOProcessorImpl::__set($var,$value);1939 }1940 function __get($var) {1941 if ($var === 'thisown') return swig_uscxmlNativePHP_get_newobject($this->_cPtr);1942 return IOProcessorImpl::__get($var);1943 }1944 function __isset($var) {1945 if ($var === 'thisown') return true;1946 return IOProcessorImpl::__isset($var);1947 }1948 function __construct($res=null) {1949 if (is_resource($res) && get_resource_type($res) === '_p_uscxml__WrappedIOProcessor') {1950 $this->_cPtr=$res;1951 return;1952 }1953 if (get_class($this) === 'IOProcessor') {1954 $_this = null;1955 } else {1956 $_this = $this;1957 }1958 $this->_cPtr=new_IOProcessor($_this);1959 }1960 function create($interpreter) {1961 $r=IOProcessor_create($this->_cPtr,$interpreter);1962 if (is_resource($r)) {1963 $c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));1964 if (class_exists($c)) return new $c($r);1965 return new IOProcessor($r);1966 }1967 return $r;1968 }1969 function getNames() {1970 $r=IOProcessor_getNames($this->_cPtr);1971 if (is_resource($r)) {1972 $c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));1973 if (class_exists($c)) return new $c($r);1974 return new StringList($r);1975 }1976 return $r;1977 }1978 function getDataModelVariables() {1979 $r=IOProcessor_getDataModelVariables($this->_cPtr);1980 if (is_resource($r)) {1981 $c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));1982 if (class_exists($c)) return new $c($r);1983 return new Data($r);1984 }1985 return $r;1986 }1987 function send($req) {1988 IOProcessor_send($this->_cPtr,$req);1989 }1990}1991class InterpreterMonitor extends NativeInterpreterMonitor {1992 public $_cPtr=null;1993 function __set($var,$value) {1994 if ($var === 'thisown') return swig_uscxmlNativePHP_alter_newobject($this->_cPtr,$value);1995 NativeInterpreterMonitor::__set($var,$value);1996 }1997 function __get($var) {1998 if ($var === 'thisown') return swig_uscxmlNativePHP_get_newobject($this->_cPtr);1999 return NativeInterpreterMonitor::__get($var);2000 }2001 function __isset($var) {2002 if ($var === 'thisown') return true;2003 return NativeInterpreterMonitor::__isset($var);2004 }2005 function __construct($res=null) {2006 if (is_resource($res) && get_resource_type($res) === '_p_uscxml__WrappedInterpreterMonitor') {2007 $this->_cPtr=$res;2008 return;2009 }2010 if (get_class($this) === 'InterpreterMonitor') {2011 $_this = null;2012 } else {2013 $_this = $this;2014 }2015 $this->_cPtr=new_InterpreterMonitor($_this);2016 }2017 function beforeExitingState($interpreter,$stateId,$xpath,$state,$moreComing) {2018 InterpreterMonitor_beforeExitingState($this->_cPtr,$interpreter,$stateId,$xpath,$state,$moreComing);2019 }2020 function afterExitingState($interpreter,$stateId,$xpath,$state,$moreComing) {2021 InterpreterMonitor_afterExitingState($this->_cPtr,$interpreter,$stateId,$xpath,$state,$moreComing);2022 }2023 function beforeExecutingContent($interpreter,$tagName,$xpath,$element) {2024 InterpreterMonitor_beforeExecutingContent($this->_cPtr,$interpreter,$tagName,$xpath,$element);2025 }2026 function afterExecutingContent($interpreter,$tagName,$xpath,$element) {2027 InterpreterMonitor_afterExecutingContent($this->_cPtr,$interpreter,$tagName,$xpath,$element);2028 }2029 function beforeUninvoking($interpreter,$xpath,$invokeid,$element) {2030 InterpreterMonitor_beforeUninvoking($this->_cPtr,$interpreter,$xpath,$invokeid,$element);2031 }2032 function afterUninvoking($interpreter,$xpath,$invokeid,$element) {2033 InterpreterMonitor_afterUninvoking($this->_cPtr,$interpreter,$xpath,$invokeid,$element);2034 }2035 function beforeTakingTransition($interpreter,$xpath,$source,$targets,$element,$moreComing) {2036 InterpreterMonitor_beforeTakingTransition($this->_cPtr,$interpreter,$xpath,$source,$targets,$element,$moreComing);2037 }2038 function afterTakingTransition($interpreter,$xpath,$source,$targets,$element,$moreComing) {2039 InterpreterMonitor_afterTakingTransition($this->_cPtr,$interpreter,$xpath,$source,$targets,$element,$moreComing);2040 }2041 function beforeEnteringState($interpreter,$stateId,$xpath,$state,$moreComing) {2042 InterpreterMonitor_beforeEnteringState($this->_cPtr,$interpreter,$stateId,$xpath,$state,$moreComing);2043 }2044 function afterEnteringState($interpreter,$stateId,$xpath,$state,$moreComing) {2045 InterpreterMonitor_afterEnteringState($this->_cPtr,$interpreter,$stateId,$xpath,$state,$moreComing);2046 }2047 function beforeInvoking($interpreter,$xpath,$invokeid,$element) {2048 InterpreterMonitor_beforeInvoking($this->_cPtr,$interpreter,$xpath,$invokeid,$element);2049 }2050 function afterInvoking($interpreter,$xpath,$invokeid,$element) {2051 InterpreterMonitor_afterInvoking($this->_cPtr,$interpreter,$xpath,$invokeid,$element);2052 }2053 function reportIssue($interpreter,$issue) {2054 InterpreterMonitor_reportIssue($this->_cPtr,$interpreter,$issue);2055 }2056}2057class IssueList {2058 public $_cPtr=null;2059 protected $_pData=array();2060 function __set($var,$value) {2061 if ($var === 'thisown') return swig_uscxmlNativePHP_alter_newobject($this->_cPtr,$value);2062 $this->_pData[$var] = $value;2063 }2064 function __get($var) {2065 if ($var === 'thisown') return swig_uscxmlNativePHP_get_newobject($this->_cPtr);2066 return $this->_pData[$var];2067 }2068 function __isset($var) {2069 if ($var === 'thisown') return true;2070 return array_key_exists($var, $this->_pData);2071 }2072 function c_list($res=null) {2073 if (is_resource($res) && get_resource_type($res) === '_p_std__listT_uscxml__InterpreterIssue_t') {2074 $this->_cPtr=$res;2075 return;2076 }2077 return new IssueList(new_c_list());2078 }2079 function size() {2080 return IssueList_size($this->_cPtr);2081 }2082 function c_empty() {2083 return IssueList_c_empty($this->_cPtr);2084 }2085 function clear() {2086 IssueList_clear($this->_cPtr);2087 }2088 function add($x) {2089 IssueList_add($this->_cPtr,$x);2090 }2091 function get($i) {2092 $r=IssueList_get($this->_cPtr,$i);2093 if (is_resource($r)) {2094 $c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));2095 if (class_exists($c)) return new $c($r);2096 return new InterpreterIssue($r);2097 }2098 return $r;2099 }2100}2101class DataList {2102 public $_cPtr=null;2103 protected $_pData=array();2104 function __set($var,$value) {2105 if ($var === 'thisown') return swig_uscxmlNativePHP_alter_newobject($this->_cPtr,$value);2106 $this->_pData[$var] = $value;2107 }2108 function __get($var) {2109 if ($var === 'thisown') return swig_uscxmlNativePHP_get_newobject($this->_cPtr);2110 return $this->_pData[$var];2111 }2112 function __isset($var) {2113 if ($var === 'thisown') return true;2114 return array_key_exists($var, $this->_pData);2115 }2116 function __construct($h) {2117 $this->_cPtr=$h;2118 }2119 function size() {2120 return DataList_size($this->_cPtr);2121 }2122 function c_empty() {2123 return DataList_c_empty($this->_cPtr);2124 }2125 function clear() {2126 DataList_clear($this->_cPtr);2127 }2128 function add($x) {2129 DataList_add($this->_cPtr,$x);2130 }2131 function get($i) {2132 $r=DataList_get($this->_cPtr,$i);2133 if (is_resource($r)) {2134 $c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));2135 if (class_exists($c)) return new $c($r);2136 return new Data($r);2137 }2138 return $r;2139 }2140}2141class DataMap {2142 public $_cPtr=null;2143 protected $_pData=array();2144 function __set($var,$value) {2145 if ($var === 'thisown') return swig_uscxmlNativePHP_alter_newobject($this->_cPtr,$value);2146 $this->_pData[$var] = $value;2147 }2148 function __get($var) {2149 if ($var === 'thisown') return swig_uscxmlNativePHP_get_newobject($this->_cPtr);2150 return $this->_pData[$var];2151 }2152 function __isset($var) {2153 if ($var === 'thisown') return true;2154 return array_key_exists($var, $this->_pData);2155 }2156 function __construct($arg1=null) {2157 if (is_resource($arg1) && get_resource_type($arg1) === '_p_std__mapT_std__string_uscxml__Data_t') {2158 $this->_cPtr=$arg1;2159 return;2160 }2161 switch (func_num_args()) {2162 case 0: $this->_cPtr=new_DataMap(); break;2163 default: $this->_cPtr=new_DataMap($arg1);2164 }2165 }2166 function size() {2167 return DataMap_size($this->_cPtr);2168 }2169 function clear() {2170 DataMap_clear($this->_cPtr);2171 }2172 function get($key) {2173 $r=DataMap_get($this->_cPtr,$key);2174 if (is_resource($r)) {2175 $c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));2176 if (class_exists($c)) return new $c($r);2177 return new Data($r);2178 }2179 return $r;2180 }2181 function set($key,$x) {2182 DataMap_set($this->_cPtr,$key,$x);2183 }2184 function del($key) {2185 DataMap_del($this->_cPtr,$key);2186 }2187 function has_key($key) {2188 return DataMap_has_key($this->_cPtr,$key);2189 }2190 function is_empty() {2191 return DataMap_is_empty($this->_cPtr);2192 }2193}2194class StringSet {2195 public $_cPtr=null;2196 protected $_pData=array();2197 function __set($var,$value) {2198 if ($var === 'thisown') return swig_uscxmlNativePHP_alter_newobject($this->_cPtr,$value);2199 $this->_pData[$var] = $value;2200 }2201 function __get($var) {2202 if ($var === 'thisown') return swig_uscxmlNativePHP_get_newobject($this->_cPtr);2203 return $this->_pData[$var];2204 }2205 function __isset($var) {2206 if ($var === 'thisown') return true;2207 return array_key_exists($var, $this->_pData);2208 }2209 function __construct($arg1=null) {2210 if (is_resource($arg1) && get_resource_type($arg1) === '_p_std__setT_std__string_t') {2211 $this->_cPtr=$arg1;2212 return;2213 }2214 switch (func_num_args()) {2215 case 0: $this->_cPtr=new_StringSet(); break;2216 default: $this->_cPtr=new_StringSet($arg1);2217 }2218 }2219 function size() {2220 return StringSet_size($this->_cPtr);2221 }2222 function c_empty() {2223 return StringSet_c_empty($this->_cPtr);2224 }2225 function clear() {2226 StringSet_clear($this->_cPtr);2227 }2228 function get($key) {2229 return StringSet_get($this->_cPtr,$key);2230 }2231 function insert($key) {2232 StringSet_insert($this->_cPtr,$key);2233 }2234 function del($key) {2235 StringSet_del($this->_cPtr,$key);2236 }2237 function has_key($key) {2238 return StringSet_has_key($this->_cPtr,$key);2239 }2240}2241class StringVector {2242 public $_cPtr=null;2243 protected $_pData=array();2244 function __set($var,$value) {2245 if ($var === 'thisown') return swig_uscxmlNativePHP_alter_newobject($this->_cPtr,$value);2246 $this->_pData[$var] = $value;2247 }2248 function __get($var) {2249 if ($var === 'thisown') return swig_uscxmlNativePHP_get_newobject($this->_cPtr);2250 return $this->_pData[$var];2251 }2252 function __isset($var) {2253 if ($var === 'thisown') return true;2254 return array_key_exists($var, $this->_pData);2255 }2256 function __construct($n=null) {2257 if (is_resource($n) && get_resource_type($n) === '_p_std__vectorT_std__string_t') {2258 $this->_cPtr=$n;2259 return;2260 }2261 switch (func_num_args()) {2262 case 0: $this->_cPtr=new_StringVector(); break;2263 default: $this->_cPtr=new_StringVector($n);2264 }2265 }2266 function size() {2267 return StringVector_size($this->_cPtr);2268 }2269 function capacity() {2270 return StringVector_capacity($this->_cPtr);2271 }2272 function reserve($n) {2273 StringVector_reserve($this->_cPtr,$n);2274 }2275 function clear() {2276 StringVector_clear($this->_cPtr);2277 }2278 function push($x) {2279 StringVector_push($this->_cPtr,$x);2280 }2281 function is_empty() {2282 return StringVector_is_empty($this->_cPtr);2283 }2284 function pop() {2285 return StringVector_pop($this->_cPtr);2286 }2287 function get($i) {2288 return StringVector_get($this->_cPtr,$i);2289 }2290 function set($i,$val) {2291 StringVector_set($this->_cPtr,$i,$val);2292 }2293}2294class StringList {2295 public $_cPtr=null;2296 protected $_pData=array();2297 function __set($var,$value) {2298 if ($var === 'thisown') return swig_uscxmlNativePHP_alter_newobject($this->_cPtr,$value);2299 $this->_pData[$var] = $value;2300 }2301 function __get($var) {2302 if ($var === 'thisown') return swig_uscxmlNativePHP_get_newobject($this->_cPtr);2303 return $this->_pData[$var];2304 }2305 function __isset($var) {2306 if ($var === 'thisown') return true;2307 return array_key_exists($var, $this->_pData);2308 }2309 function __construct($h) {2310 $this->_cPtr=$h;2311 }2312 function size() {2313 return StringList_size($this->_cPtr);2314 }2315 function c_empty() {2316 return StringList_c_empty($this->_cPtr);2317 }2318 function clear() {2319 StringList_clear($this->_cPtr);2320 }2321 function add($x) {2322 StringList_add($this->_cPtr,$x);2323 }2324 function get($i) {2325 return StringList_get($this->_cPtr,$i);2326 }2327}2328class ParamMap {2329 public $_cPtr=null;2330 protected $_pData=array();2331 function __set($var,$value) {2332 if ($var === 'thisown') return swig_uscxmlNativePHP_alter_newobject($this->_cPtr,$value);2333 $this->_pData[$var] = $value;2334 }2335 function __get($var) {2336 if ($var === 'thisown') return swig_uscxmlNativePHP_get_newobject($this->_cPtr);2337 return $this->_pData[$var];2338 }2339 function __isset($var) {2340 if ($var === 'thisown') return true;2341 return array_key_exists($var, $this->_pData);2342 }2343 function __construct($arg1=null) {2344 if (is_resource($arg1) && get_resource_type($arg1) === '_p_std__mapT_std__string_std__listT_uscxml__Data_t_t') {2345 $this->_cPtr=$arg1;2346 return;2347 }2348 switch (func_num_args()) {2349 case 0: $this->_cPtr=new_ParamMap(); break;2350 default: $this->_cPtr=new_ParamMap($arg1);2351 }2352 }2353 function size() {2354 return ParamMap_size($this->_cPtr);2355 }2356 function clear() {2357 ParamMap_clear($this->_cPtr);2358 }2359 function get($key) {2360 $r=ParamMap_get($this->_cPtr,$key);2361 if (is_resource($r)) {2362 $c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));2363 if (class_exists($c)) return new $c($r);2364 return new DataList($r);2365 }2366 return $r;2367 }2368 function set($key,$x) {2369 ParamMap_set($this->_cPtr,$key,$x);2370 }2371 function del($key) {2372 ParamMap_del($this->_cPtr,$key);2373 }2374 function has_key($key) {2375 return ParamMap_has_key($this->_cPtr,$key);2376 }2377 function is_empty() {2378 return ParamMap_is_empty($this->_cPtr);2379 }2380}2381class IOProcMap {2382 public $_cPtr=null;2383 protected $_pData=array();2384 function __set($var,$value) {2385 if ($var === 'thisown') return swig_uscxmlNativePHP_alter_newobject($this->_cPtr,$value);2386 $this->_pData[$var] = $value;2387 }2388 function __get($var) {2389 if ($var === 'thisown') return swig_uscxmlNativePHP_get_newobject($this->_cPtr);2390 return $this->_pData[$var];2391 }2392 function __isset($var) {2393 if ($var === 'thisown') return true;2394 return array_key_exists($var, $this->_pData);2395 }2396 function __construct($arg1=null) {2397 if (is_resource($arg1) && get_resource_type($arg1) === '_p_std__mapT_std__string_uscxml__IOProcessor_t') {2398 $this->_cPtr=$arg1;2399 return;2400 }2401 switch (func_num_args()) {2402 case 0: $this->_cPtr=new_IOProcMap(); break;2403 default: $this->_cPtr=new_IOProcMap($arg1);2404 }2405 }2406 function size() {2407 return IOProcMap_size($this->_cPtr);2408 }2409 function clear() {2410 IOProcMap_clear($this->_cPtr);2411 }2412 function get($key) {2413 $r=IOProcMap_get($this->_cPtr,$key);2414 if (is_resource($r)) {2415 $c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));2416 if (class_exists($c)) return new $c($r);2417 return new NativeIOProcessor($r);2418 }2419 return $r;2420 }2421 function set($key,$x) {2422 IOProcMap_set($this->_cPtr,$key,$x);2423 }2424 function del($key) {2425 IOProcMap_del($this->_cPtr,$key);2426 }2427 function has_key($key) {2428 return IOProcMap_has_key($this->_cPtr,$key);2429 }2430 function is_empty() {2431 return IOProcMap_is_empty($this->_cPtr);2432 }2433}2434class InvokerMap {2435 public $_cPtr=null;2436 protected $_pData=array();2437 function __set($var,$value) {2438 if ($var === 'thisown') return swig_uscxmlNativePHP_alter_newobject($this->_cPtr,$value);2439 $this->_pData[$var] = $value;2440 }2441 function __get($var) {2442 if ($var === 'thisown') return swig_uscxmlNativePHP_get_newobject($this->_cPtr);2443 return $this->_pData[$var];2444 }2445 function __isset($var) {2446 if ($var === 'thisown') return true;2447 return array_key_exists($var, $this->_pData);2448 }2449 function __construct($arg1=null) {2450 if (is_resource($arg1) && get_resource_type($arg1) === '_p_std__mapT_std__string_uscxml__Invoker_t') {2451 $this->_cPtr=$arg1;2452 return;2453 }2454 switch (func_num_args()) {2455 case 0: $this->_cPtr=new_InvokerMap(); break;2456 default: $this->_cPtr=new_InvokerMap($arg1);2457 }2458 }2459 function size() {2460 return InvokerMap_size($this->_cPtr);2461 }2462 function clear() {2463 InvokerMap_clear($this->_cPtr);2464 }2465 function get($key) {2466 $r=InvokerMap_get($this->_cPtr,$key);2467 if (is_resource($r)) {2468 $c=substr(get_resource_type($r), (strpos(get_resource_type($r), '__') ? strpos(get_resource_type($r), '__') + 2 : 3));2469 if (class_exists($c)) return new $c($r);2470 return new NativeInvoker($r);2471 }2472 return $r;2473 }2474 function set($key,$x) {2475 InvokerMap_set($this->_cPtr,$key,$x);2476 }2477 function del($key) {2478 InvokerMap_del($this->_cPtr,$key);2479 }2480 function has_key($key) {2481 return InvokerMap_has_key($this->_cPtr,$key);2482 }2483 function is_empty() {2484 return InvokerMap_is_empty($this->_cPtr);2485 }2486}2487class ParentQueue {2488 public $_cPtr=null;2489 protected $_pData=array();2490 function __set($var,$value) {2491 if ($var === 'thisown') return swig_uscxmlNativePHP_alter_newobject($this->_cPtr,$value);2492 $this->_pData[$var] = $value;2493 }2494 function __get($var) {2495 if ($var === 'thisown') return swig_uscxmlNativePHP_get_newobject($this->_cPtr);2496 return $this->_pData[$var];2497 }2498 function __isset($var) {2499 if ($var === 'thisown') return true;2500 return array_key_exists($var, $this->_pData);2501 }2502 function __construct($res=null) {2503 if (is_resource($res) && get_resource_type($res) === '_p_uscxml__concurrency__BlockingQueueT_uscxml__SendRequest_t') {2504 $this->_cPtr=$res;2505 return;2506 }2507 $this->_cPtr=new_ParentQueue();2508 }...
invoker.php
Source:invoker.php
...11 {12 parent::__construct($method);13 $this->mock = $mock;14 }15 public function __get($property)16 {17 switch (strtolower($property))18 {19 case 'isfluent':20 return $this->isFluent();21 default:22 return parent::__get($property);23 }24 }25 public function setMock(mock\aggregator $mock)26 {27 $this->mock = $mock;28 return $this;29 }30 public function getMock()31 {32 return $this->mock;33 }34 public function isFluent()35 {36 $mock = $this->mock;...
__get
Using AI Code Generation
1$invoker = new Invoker();2$invoker->invokerMethod();3$invoker = new Invoker();4$invoker->invokerMethod();5$invoker = new Invoker();6$invoker->invokerMethod();7$invoker = new Invoker();8$invoker->invokerMethod();9$invoker = new Invoker();10$invoker->invokerMethod();11$invoker = new Invoker();12$invoker->invokerMethod();13$invoker = new Invoker();14$invoker->invokerMethod();15$invoker = new Invoker();16$invoker->invokerMethod();17$invoker = new Invoker();18$invoker->invokerMethod();19$invoker = new Invoker();20$invoker->invokerMethod();21$invoker = new Invoker();22$invoker->invokerMethod();23$invoker = new Invoker();24$invoker->invokerMethod();25$invoker = new Invoker();26$invoker->invokerMethod();27$invoker = new Invoker();28$invoker->invokerMethod();29$invoker = new Invoker();
__get
Using AI Code Generation
1$invoker = new Invoker();2$invoker->invokeMethod();3$invoker = new Invoker();4$invoker->invokeMethod();5$invoker = new Invoker();6$invoker->invokeMethod();7$invoker = new Invoker();8$invoker->invokeMethod();9$invoker = new Invoker();10$invoker->invokeMethod();11$invoker = new Invoker();12$invoker->invokeMethod();13$invoker = new Invoker();14$invoker->invokeMethod();15$invoker = new Invoker();16$invoker->invokeMethod();17$invoker = new Invoker();18$invoker->invokeMethod();19$invoker = new Invoker();20$invoker->invokeMethod();21$invoker = new Invoker();22$invoker->invokeMethod();23$invoker = new Invoker();24$invoker->invokeMethod();25$invoker = new Invoker();26$invoker->invokeMethod();27$invoker = new Invoker();28$invoker->invokeMethod();29$invoker = new Invoker();30$invoker->invokeMethod();
__get
Using AI Code Generation
1$obj = new Invoker();2$obj->test();3$obj = new Invoker();4$obj->test();5$obj = new Invoker();6$obj->test();7$obj = new Invoker();8$obj->test();9$obj = new Invoker();10$obj->test();11$obj = new Invoker();12$obj->test();13$obj = new Invoker();14$obj->test();15$obj = new Invoker();16$obj->test();17$obj = new Invoker();18$obj->test();19$obj = new Invoker();20$obj->test();21$obj = new Invoker();22$obj->test();23$obj = new Invoker();24$obj->test();25$obj = new Invoker();26$obj->test();27$obj = new Invoker();28$obj->test();29$obj = new Invoker();30$obj->test();31$obj = new Invoker();32$obj->test();33$obj = new Invoker();34$obj->test();
__get
Using AI Code Generation
1$invoker = new Invoker();2$invoker->invoke();3$invoker->name = 'John';4if(isset($invoker->name)){5 echo "Name is set";6}7unset($invoker->name);8$invoker->hello('John');9Invoker::helloStatic('John');10$invoker('John');
__get
Using AI Code Generation
1$obj = new Invoker();2$obj->invoke( 'test' );3$obj = new Invoker();4$obj->invoke( 'test' );5$obj = new Invoker();6$obj->invoke( 'test' );7$obj = new Invoker();8$obj->invoke( 'test' );9$obj = new Invoker();10$obj->invoke( 'test' );11$obj = new Invoker();12$obj->invoke( 'test' );13$obj = new Invoker();14$obj->invoke( 'test' );15$obj = new Invoker();16$obj->invoke( 'test' );17$obj = new Invoker();18$obj->invoke( 'test' );19$obj = new Invoker();20$obj->invoke( 'test' );21$obj = new Invoker();22$obj->invoke( 'test' );23$obj = new Invoker();24$obj->invoke( 'test' );25$obj = new Invoker();26$obj->invoke( 'test' );27$obj = new Invoker();28$obj->invoke( 'test' );29$obj = new Invoker();30$obj->invoke( 'test' );
__get
Using AI Code Generation
1$invoker = new Invoker();2$invoker = new Invoker();3$invoker = new Invoker();4if(isset($invoker->name)){5 echo "Name property is set";6}7$invoker = new Invoker();8$invoker = new Invoker();9$invoker = new Invoker();10$invoker = new Invoker();11$invoker = new Invoker();12$invoker = new Invoker();13echo $serialized;14$invoker = new Invoker();15echo $unserialized->name;
__get
Using AI Code Generation
1include 'invoker.php';2$invoker = new invoker();3$invoker->set('test', 'test');4echo $invoker->get('test');5include 'invoker.php';6$invoker = new invoker();7echo $invoker->get('test');8include 'invoker.php';9$invoker = new invoker();10echo $invoker->get('notExists');
__get
Using AI Code Generation
1$invoker = new Invoker();2$invoker->invoke();3$invoker->setInvokerProperty($invoker->getInvokerProperty());4$invoker = new Invoker();5$invoker->invoke();6$invoker->setInvokerProperty($invoker->getInvokerProperty());7$invoker = new Invoker();8$invoker->invoke();9$invoker->setInvokerProperty($invoker->getInvokerProperty());10$invoker = new Invoker();11$invoker->invoke();12$invoker->setInvokerProperty($invoker->getInvokerProperty());13$invoker = new Invoker();14$invoker->invoke();15$invoker->setInvokerProperty($invoker->getInvokerProperty());16$invoker = new Invoker();17$invoker->invoke();18$invoker->setInvokerProperty($invoker->getInvokerProperty());19$invoker = new Invoker();20$invoker->invoke();21$invoker->setInvokerProperty($invoker->getInvokerProperty());22$invoker = new Invoker();23$invoker->invoke();24$invoker->setInvokerProperty($invoker->getInvokerProperty());25$invoker = new Invoker();26$invoker->invoke();
Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.
You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.
Execute automation tests with __get on a cloud-based Grid of 3000+ real browsers and operating systems for both web and mobile applications.
Test now for FreeGet 100 minutes of automation test minutes FREE!!