Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Aug 2nd, 2010  |  syntax: PHP  |  size: 2.66 KB  |  views: 23  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php
  2.  
  3. /* ----------------------------------------------------------------------------
  4.  * This file was automatically generated by SWIG (http://www.swig.org).
  5.  * Version 2.0.0
  6.  *
  7.  * This file is not intended to be easily readable and contains a number of
  8.  * coding conventions designed to improve portability and efficiency. Do not make
  9.  * changes to this file unless you know what you are doing--modify the SWIG
  10.  * interface file instead.
  11.  * ----------------------------------------------------------------------------- */
  12.  
  13. // Try to load our extension if it's not already loaded.
  14. if (!extension_loaded('debugasync')) {
  15.   if (strtolower(substr(PHP_OS, 0, 3)) === 'win') {
  16.     if (!dl('php_debugasync.dll')) return;
  17.   } else {
  18.     // PHP_SHLIB_SUFFIX gives 'dylib' on MacOS X but modules are 'so'.
  19.     if (PHP_SHLIB_SUFFIX === 'dylib') {
  20.       if (!dl('debugasync.so')) return;
  21.     } else {
  22.       if (!dl('debugasync.'.PHP_SHLIB_SUFFIX)) return;
  23.     }
  24.   }
  25. }
  26.  
  27.  
  28.  
  29. /* PHP Proxy Classes */
  30. class Client {
  31.         public $_cPtr=null;
  32.         protected $_pData=array();
  33.  
  34.         function __set($var,$value) {
  35.                 if ($var === 'thisown') return swig_debugasync_alter_newobject($this->_cPtr,$value);
  36.                 $this->_pData[$var] = $value;
  37.         }
  38.  
  39.         function __isset($var) {
  40.                 if ($var === 'thisown') return true;
  41.                 return array_key_exists($var, $this->_pData);
  42.         }
  43.  
  44.         function __get($var) {
  45.                 if ($var === 'thisown') return swig_debugasync_get_newobject($this->_cPtr);
  46.                 return $this->_pData[$var];
  47.         }
  48.  
  49.         public function invoke($callback) {
  50.                 Client_invoke($this->_cPtr,$callback);
  51.         }
  52.  
  53.         public function __construct($res=null) {
  54.                 if (is_resource($res) && get_resource_type($res) === '_p_Client') {
  55.                         $this->_cPtr=$res;
  56.                         return;
  57.                 }
  58.                 $this->_cPtr=new_Client();
  59.         }
  60. }
  61.  
  62. abstract class ProcedureCallback {
  63.         public $_cPtr=null;
  64.         protected $_pData=array();
  65.  
  66.         function __set($var,$value) {
  67.                 if ($var === 'thisown') return swig_debugasync_alter_newobject($this->_cPtr,$value);
  68.                 $this->_pData[$var] = $value;
  69.         }
  70.  
  71.         function __isset($var) {
  72.                 if ($var === 'thisown') return true;
  73.                 return array_key_exists($var, $this->_pData);
  74.         }
  75.  
  76.         function __get($var) {
  77.                 if ($var === 'thisown') return swig_debugasync_get_newobject($this->_cPtr);
  78.                 return $this->_pData[$var];
  79.         }
  80.  
  81.         public function callback($arg0) {
  82.                 ProcedureCallback_callback($this->_cPtr,$arg0);
  83.         }
  84.  
  85.         public function __construct($res=null) {
  86.                 if (is_resource($res) && get_resource_type($res) === '_p_ProcedureCallback') {
  87.                         $this->_cPtr=$res;
  88.                         return;
  89.                 }
  90.                 if (get_class($this) === 'ProcedureCallback') {
  91.                         $_this = null;
  92.                 } else {
  93.                         $_this = $this;
  94.                 }
  95.                 $this->_cPtr=new_ProcedureCallback($_this);
  96.         }
  97. }
  98.  
  99.  
  100. ?>
clone this paste RAW Paste Data