public function fixtureAuthCfgObject()
 {
     $auth = Common::getAuthEnv(array('vendorId', 'vendorPassword', 'userId', 'userPassword', 'propertyId'));
     $data = array();
     $data[] = array($auth);
     return $data;
 }
Exemplo n.º 2
0
 /**
  * Encode an object.
  *
  * @param mixed $d The object to encode.
  *
  * @return mixed The encoded object.
  */
 private static function encodeObjects($d)
 {
     if ($d instanceof Api) {
         return self::utf8(Common::getClassName(get_class($d)));
     } else {
         if ($d === true) {
             return 'true';
         } else {
             if ($d === false) {
                 return 'false';
             } else {
                 if (is_array($d)) {
                     $res = array();
                     foreach ($d as $k => $v) {
                         $res[$k] = self::encodeObjects($v);
                     }
                     return $res;
                 } else {
                     return self::utf8($d);
                 }
             }
         }
     }
 }