コード例 #1
0
 protected function getObjectWrapper()
 {
     $o = new stdClass();
     $o->a = 'b';
     $o->b = 5;
     $o->c = array('e' => 'f');
     $o2 = new stdClass();
     $o2->h = 'i';
     $o->d = $o2;
     $o->e = array(array('a' => 1), array('a' => 2));
     return LivePubHelper::wrap($o);
 }
 /**
  * returns a viewable wrapper around the request
  */
 function WrappedRequest()
 {
     $obj = LivePubHelper::wrap($_REQUEST);
     $obj->setVar('_REQUEST');
     return $obj;
 }