Advertisement
fruffl

Untitled

Oct 9th, 2012
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.07 KB | None | 0 0
  1. <?
  2.     class barbaz
  3.     {
  4.         USE \ILLI\Core\Virtual\Member\tField;
  5.         USE \ILLI\Core\Virtual\Member\tMethod
  6.         {
  7.             tMethod_define as public define;
  8.         }
  9.        
  10.         public function __call($__name, $__args)
  11.         {
  12.             return $this->tMethod_call($__name, $__args);
  13.         }
  14.     }
  15.    
  16.     $f = new  barbaz;
  17.     $f->define('foo', function($mystring){ var_dump(__LINE__.'::'.$mystring); }, ['isPrivate' => FALSE]);
  18.     $f->foo('Hello World!');
  19.     var_dump($f);
  20.     var_dump(new \ILLI\Core\Object);
  21.  
  22. ?>
  23. string(17) "361::Hello World!"
  24. object(localhost\illiFW\dev\barbaz)#13 (6) {
  25.   ["__tField":protected]=>
  26.   array(0) {
  27.   }
  28.   ["__tField_LockRegistration":"localhost\illiFW\dev\barbaz":private]=>
  29.   bool(false)
  30.   ["__tField_LockAllFields":"localhost\illiFW\dev\barbaz":private]=>
  31.   bool(false)
  32.   ["__tField_Hash":"localhost\illiFW\dev\barbaz":private]=>
  33.   NULL
  34.   ["__tMethod":"localhost\illiFW\dev\barbaz":private]=>
  35.   array(0) {
  36.   }
  37.   ["__tMethod_Hash":"localhost\illiFW\dev\barbaz":private]=>
  38.   string(32) "000000000f04e32d000000003b70d816"
  39. }
  40.  
  41. object(ILLI\Core\Object)#30 (16) {
  42.   ["__tObject_Hash":"ILLI\Core\Object":private]=>
  43.   NULL
  44.   ["__tField":protected]=>
  45.   array(0) {
  46.   }
  47.   ["__tField_LockRegistration":"ILLI\Core\Object":private]=>
  48.   bool(false)
  49.   ["__tField_LockAllFields":"ILLI\Core\Object":private]=>
  50.   bool(false)
  51.   ["__tField_Hash":"ILLI\Core\Object":private]=>
  52.   NULL
  53.   ["__tMethod":"ILLI\Core\Object":private]=>
  54.   array(0) {
  55.   }
  56.   ["__tMethod_Hash":"ILLI\Core\Object":private]=>
  57.   NULL
  58.   ["__tAdapter_tracesEnabled":"ILLI\Core\Object":private]=>
  59.   bool(false)
  60.   ["__tAdapter_traces":"ILLI\Core\Object":private]=>
  61.   array(0) {
  62.   }
  63.   ["__tAdapter_hook":protected]=>
  64.   array(0) {
  65.   }
  66.   ["__tFilter_tracesEnabled":"ILLI\Core\Object":private]=>
  67.   bool(false)
  68.   ["__tFilter_traces":"ILLI\Core\Object":private]=>
  69.   array(0) {
  70.   }
  71.   ["__tFilter_hook":protected]=>
  72.   array(0) {
  73.   }
  74.   ["__tObserver_tracesEnabled":"ILLI\Core\Object":private]=>
  75.   bool(false)
  76.   ["__tObserver_traces":"ILLI\Core\Object":private]=>
  77.   array(0) {
  78.   }
  79.   ["__tObserver_hook":protected]=>
  80.   array(0) {
  81.   }
  82. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement