Preliminary documentation for Ice 3.7.1 Beta. Do not use in production applications. Refer to the space directory for other releases.

On this page:

Mapped PHP Class

A Slice local interface is mapped to a PHP interface with the same name. For example:

Slice
module M
{
    local interface Example
    {
        ...
    }
}

is mapped to the PHP class Example:

PHP
namespace M
{
    interface Example
    {
        ...
    }
}

LocalObject in PHP

All Slice local interfaces implicitly derive from LocalObject, which is mapped to the native stdClass class in PHP.

Mapping for Local Interface Inheritance in PHP

Inheritance of local Slice interfaces is mapped to interface inheritance in PHP. For example:

Slice
module M
{
    local interface A {}
    local interface B extends A {}
    local interface C extends A {}
    local interface D extends B, C {} 
} 

is mapped to:

PHP
namespace M
{
    interface A
    {
        ...
    }
    interface B extends A
    {
        ...
    }
    interface C extends A
    {
        ...
    }
    interface D extends B, C
    {
        ...
    }
}

  • No labels