MphpD
v1.1.0-rc.1 Documentation GitHub

# Partition

This subclass is used to create, switch and configure partitions

    MphpD::partition(string $name) : Partition

## Methods

### __construct

This class is not intended for direct usage. Use `MphpD::partition()` instead to retrieve an instance of this class.

    Partition::__construct(FloFaber\MphpD\MphpD $mphpd, string $name) : mixed

#### Parameters

- ##### $mphpd

- ##### $name

#### Returns `mixed`

### switch

Switch the client to the given partition

    Partition::switch() : bool

#### Parameters

None.

#### Returns `bool`

bool `true` on success or `false` on failure.

### create

Create a new partition with the given name.

    Partition::create() : bool

#### Parameters

None.

#### Returns `bool`

bool `true` on success or `false` on failure.

### delete

Delete the given partition

    Partition::delete() : bool

#### Parameters

None.

#### Returns `bool`

bool `true` on success or `false` on failure.

### move_output

Move a specific output to the current partition

    Partition::move_output(string $name) : bool

#### Parameters

- ##### $name

  Name of the output.

#### Returns `bool`

bool `true` on success or `false` on failure.

© 2023 Florian Faber