(string)
(bool)
(int)
(float)
new Collection ($this->connection, )
new ($this->connection, )
public function () {
$request = new stdClass();
$request->_this = $this->handle;
$response = $this->connection->__soapCall('_', array((array)$request));
return
;
}
public function ($value) {
$request = stdClass();
$request->_this = $this->handle;
if (is_int($value) || is_string($value) || is_bool($value)) {
$request-> = $value;
}
else
{
$request-> = $value->handle;
}
$this->connection->__soapCall('_', array((array)$request));
}
/**
* Generated VBoxWebService Interface Wrapper
*/
readonly attribute ::
read/write attribute ::
}
/**
* Generated VBoxWebService Managed Object Collection
*/
class Collection extends VBox_ManagedObjectCollection {
protected $_interfaceName = "";
}
/**
* Generated VBoxWebService Struct
*/
class extends VBox_Struct {
protected $;
public function __construct($connection, $handle) {
$this-> = $handle->;
}
public function () {
return $this->;
}
}
$request = new stdClass();
$request->_this = $this->handle;
$request-> = $arg_;
$response = $this->connection->__soapCall('_', array((array)$request));
return
array(
,
,
)
;
public function (
,
) {
}
/**
* Generated VBoxWebService ENUM
*/
class extends VBox_Enum {
public $NameMap = array( => '', );
public $ValueMap = array('' => , );
}
<?php
/*
* Copyright (C) 2009 Sun Microsystems, Inc.
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* you can redistribute it and/or modify it under the terms of the GNU
* General Public License (GPL) as published by the Free Software
* Foundation, in version 2 as it comes in the "COPYING" file of the
* VirtualBox OSE distribution. VirtualBox OSE is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
*
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
* Clara, CA 95054 USA or visit http://www.sun.com if you need
* additional information or have any questions.
*
* This file is autogenerated from VirtualBox.xidl, DO NOT EDIT!
*/
abstract class VBox_ManagedObject
{
protected $connection;
protected $handle;
public function __construct($soap, $handle = null)
{
$this->connection = $soap;
$this->handle = $handle;
}
public function __toString()
{
return (string)$this->handle;
}
public function __set($attr, $value)
{
$methodName = "set" . $attr;
if (method_exists($this, $methodName))
$this->$methodName($value);
else
throw new Exception("Attribute does not exist");
}
public function __get($attr)
{
$methodName = "get" . $attr;
if (method_exists($this, $methodName))
return $this->$methodName();
else
throw new Exception("Attribute does not exist");
}
public function getHandle()
{
return $this->handle;
}
public function releaseRemote()
{
try
{
$request = new stdClass();
$request->_this = $this->handle;
$this->connection->__soapCall('IManagedObjectRef_release', array((array)$request));
} catch (Exception $ex) {}
}
}
abstract class VBox_ManagedObjectCollection implements Iterator {
protected $connection;
protected $handles;
protected $_interfaceName = null;
public function __construct($soap, array $handles = array())
{
$this->connection = $soap;
$this->handles = $handles;
}
public function rewind() {
reset($this->handles);
}
public function current() {
$handle = current($this->handles);
if ($handle !== false && !$handle instanceof $this->_interfaceName) {
$handle = new $this->_interfaceName($this->connection, $handle);
}
return $handle;
}
public function key() {
$handle = key($this->handles);
return $handle;
}
public function next() {
$handle = next($this->handles);
return $handle;
}
public function valid() {
$handle = $this->current() !== false;
return $handle;
}
}
abstract class VBox_Struct {
public function __get($attr)
{
$methodName = "get" . $attr;
if (method_exists($this, $methodName))
return $this->$methodName();
else
throw new Exception("Attribute does not exist");
}
}
abstract class VBox_Enum {
protected $handle;
public function __construct($connection, $handle)
{
if (is_string($handle))
$this->handle = $this->ValueMap[$handle];
else
$this->handle = $handle;
}
public function __toString()
{
return (string)$this->NameMap[$this->handle];
}
}