1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281
|
<?php
//
// Copyright (c) ZeroC, Inc. All rights reserved.
//
//
// Definitions for IcePHP with namespaces enabled
//
//
// These symbols are defined by the extension but must be declared global
// here to ensure they are visible to scripts regardless of the scope in
// which we are currently executing.
//
global $IcePHP__t_bool;
global $IcePHP__t_byte;
global $IcePHP__t_short;
global $IcePHP__t_int;
global $IcePHP__t_long;
global $IcePHP__t_float;
global $IcePHP__t_double;
global $IcePHP__t_string;
//
// Exceptions.
//
abstract class Ice_Exception extends Exception
{
public function __construct($message = '')
{
parent::__construct($message);
}
abstract public function ice_id();
public function ice_name()
{
trigger_error('ice_name() is deprecated use ice_id() instead.', E_DEPRECATED);
return substr($this->ice_id(), 2);
}
}
abstract class Ice_UserException extends Ice_Exception
{
public $_ice_slicedData;
public function __construct($message = '')
{
parent::__construct($message);
}
}
abstract class Ice_LocalException extends Ice_Exception
{
public function __construct($message = '')
{
parent::__construct($message);
}
}
class Ice_Value
{
public $_ice_slicedData;
public static function ice_staticId()
{
return "::Ice::Object";
}
public function ice_id()
{
return "::Ice::Object";
}
public function ice_getSlicedData()
{
return $this->_ice_slicedData;
}
}
class Ice_InterfaceByValue extends Ice_Value
{
public $id;
public function __construct($id)
{
$this->id =$id;
}
public function ice_id()
{
return $this->id;
}
}
class Ice_ObjectPrxHelper
{
public static function checkedCast($proxy, $facetOrContext=null, $context=null)
{
return $proxy->ice_checkedCast('::Ice::Object', $facetOrContext, $context);
}
public static function uncheckedCast($proxy, $facet=null)
{
return $proxy->ice_uncheckedCast('::Ice::Object', $facet);
}
public static function ice_staticId()
{
return '::Ice::Object';
}
}
global $Ice__t_Value;
global $Ice__t_ObjectSeq;
global $Ice__t_LocalObject;
global $Ice__t_ObjectPrx;
global $Ice__t_ObjectProxySeq;
$Ice__t_Value = IcePHP_defineClass('::Ice::Object', "Ice_Value", -1, false, false, null, null);
$Ice__t_ObjectSeq = IcePHP_defineSequence('::Ice::ObjectSeq', $Ice__t_Value);
$Ice__t_LocalObject = IcePHP_defineClass('::Ice::LocalObject', "Ice_LocalObject", -1, false, false, null, null);
$Ice__t_ObjectPrx = IcePHP_defineProxy('::Ice::Object', null, null);
$Ice__t_ObjectProxySeq = IcePHP_defineSequence('::Ice::ObjectProxySeq', $Ice__t_ObjectPrx);
class Ice_UnknownSlicedValue extends Ice_Value
{
public $unknownTypeId;
public function __construct()
{
}
public function ice_id()
{
return $this->unknownTypeId;
}
}
global $Ice__t_UnknownSlicedValue;
$Ice__t_UnknownSlicedValue = IcePHP_defineClass('::Ice::UnknownSlicedValue', 'Ice_UnknownSlicedValue', -1, true, false, $Ice__t_Value, null);
interface Ice_ObjectFactory
{
public function create($id);
public function destroy();
}
interface Ice_ValueFactory
{
public function create($id);
}
class Ice_InitializationData
{
public function __construct($properties=null, $logger=null)
{
$this->properties = $properties;
$this->logger = $logger;
}
public $properties;
public $logger;
}
class Ice_SlicedData
{
public $slices;
}
class Ice_SliceInfo
{
public $typeId;
public $compactId;
public $bytes;
public $instances;
public $hasOptionalMembers;
public $isLastSlice;
}
class Ice_FormatType
{
const DefaultFormat = 0;
const CompactFormat = 1;
const SlicedFormat = 2;
}
global $Ice_sliceChecksums;
$Ice_sliceChecksums = array();
//
// Include certain generated files.
//
require_once 'Ice/BuiltinSequences.php';
require_once 'Ice/Connection.php';
require_once 'Ice/EndpointTypes.php';
require_once 'Ice/LocalException.php';
require_once 'Ice/Locator.php';
require_once 'Ice/ObjectFactory.php';
require_once 'Ice/ValueFactory.php';
require_once 'Ice/Process.php';
require_once 'Ice/Router.php';
require_once 'Ice/Version.php';
require_once 'Ice/Instrumentation.php';
require_once 'Ice/Metrics.php';
require_once 'Ice/RemoteLogger.php';
require_once 'Ice/Communicator.php';
global $Ice_Protocol_1_0;
global $Ice_Encoding_1_0;
global $Ice_Encoding_1_1;
$Ice_Protocol_1_0 = new Ice_ProtocolVersion(1, 0);
$Ice_Encoding_1_0 = new Ice_EncodingVersion(1, 0);
$Ice_Encoding_1_1 = new Ice_EncodingVersion(1, 1);
IcePHP_defineOperation($Ice__t_ObjectPrx, 'ice_isA', 2, 1, 0, array(array($IcePHP__t_string)), null, array($IcePHP__t_bool), null);
IcePHP_defineOperation($Ice__t_ObjectPrx, 'ice_ping', 2, 1, 0, null, null, null, null);
IcePHP_defineOperation($Ice__t_ObjectPrx, 'ice_id', 2, 1, 0, null, null, array($IcePHP__t_string), null);
IcePHP_defineOperation($Ice__t_ObjectPrx, 'ice_ids', 2, 1, 0, null, null, array($Ice__t_StringSeq), null);
//
// Proxy comparison functions.
//
function Ice_proxyIdentityCompare($lhs, $rhs)
{
if(($lhs != null && !($lhs instanceof Ice_ObjectPrx)) || ($rhs != null && !($rhs instanceof Ice_ObjectPrx)))
{
throw new InvalidArgumentException('argument is not a proxy');
}
if($lhs == null && $rhs == null)
{
return 0;
}
elseif($lhs == null && $rhs != null)
{
return -1;
}
elseif($lhs != null && $rhs == null)
{
return 1;
}
else
{
$lid = $lhs->ice_getIdentity();
$rid = $rhs->ice_getIdentity();
if($lid < $rid)
{
return -1;
}
elseif($lid > $rid)
{
return 1;
}
else
{
return 0;
}
}
}
function Ice_proxyIdentityEqual($lhs, $rhs)
{
return Ice_proxyIdentityCompare($lhs, $rhs) == 0;
}
function Ice_proxyIdentityAndFacetCompare($lhs, $rhs)
{
$n = Ice_proxyIdentityCompare($lhs, $rhs);
if($n == 0 && $lhs != null && $rhs != null)
{
$n = strcmp($lhs->ice_getFacet(), $rhs->ice_getFacet());
}
return $n;
}
function Ice_proxyIdentityAndFacetEqual($lhs, $rhs)
{
return Ice_proxyIdentityAndFacetCompare($lhs, $rhs) == 0;
}
?>
|