Esempio n. 1
0
 public static function init($response, $data)
 {
     self::$response = $response;
     self::$stack = array();
     if (is_array($data)) {
         array_push(self::$stack, $data);
     } else {
         array_push(self::$stack, array('__raw' => $data));
     }
 }
Esempio n. 2
0
 public static function init($response, $data = array())
 {
     self::$response = $response;
     self::$stack = array();
     array_push(self::$stack, $data);
 }