onOffice WP Plugin

RegionController
in package

Table of Contents

$_pSDKWrapper  : SDKWrapper
$_regions  : array<string|int, mixed>
__construct()  : mixed
fetchRegions()  : mixed
getParentRegionsByChildRegionKeys()  : array<string|int, mixed>
getRegionByKey()  : Region|null
getRegions()  : array<string|int, Region>
getSDKWrapper()  : SDKWrapper
getSubRegionsByParentRegion()  : array<string|int, string>
buildBaseRegionElement()  : Region
createRegionObjects()  : array<string|int, Region>
createRegionObjectsRegionOne()  : array<string|int, mixed>
getRegionNamesOfChildRegions()  : array<string|int, string>

Properties

Methods

__construct()

public __construct([bool $init = true ][, SDKWrapper $pSDKWrapper = null ]) : mixed
Parameters
$init : bool = true
$pSDKWrapper : SDKWrapper = null
Return values
mixed

getParentRegionsByChildRegionKeys()

public getParentRegionsByChildRegionKeys(array<string|int, mixed> $childRegions) : array<string|int, mixed>
Parameters
$childRegions : array<string|int, mixed>
Tags
throws
ApiClientException
Return values
array<string|int, mixed>

getSubRegionsByParentRegion()

public getSubRegionsByParentRegion(string $key) : array<string|int, string>
Parameters
$key : string
Return values
array<string|int, string>

buildBaseRegionElement()

private buildBaseRegionElement(array<string|int, mixed> $elements) : Region
Parameters
$elements : array<string|int, mixed>
Return values
Region

createRegionObjects()

private createRegionObjects(array<string|int, mixed> $regionList, Region|null $pParent) : array<string|int, Region>
Parameters
$regionList : array<string|int, mixed>
$pParent : Region|null
Return values
array<string|int, Region>

createRegionObjectsRegionOne()

private createRegionObjectsRegionOne(array<string|int, mixed> $regionList) : array<string|int, mixed>
Parameters
$regionList : array<string|int, mixed>
Return values
array<string|int, mixed>

getRegionNamesOfChildRegions()

private getRegionNamesOfChildRegions(Region $pRegion) : array<string|int, string>
Parameters
$pRegion : Region
Return values
array<string|int, string>

Search results