MyAllocator PMS PHP SDK
  • Namespace
  • Class
  • Tree

Namespaces

  • MyAllocator
    • phpsdk
      • src
        • Api
        • Exception
        • Object
        • Util
  • PHP

Classes

  • MaBaseClass

Class MaBaseClass

The MyAllocator base class to be extended by API's and Utilities.

Direct known subclasses

MyAllocator\phpsdk\src\Api\MaApi, MyAllocator\phpsdk\src\Util\Requestor

Indirect known subclasses

MyAllocator\phpsdk\src\Api\AmenityList, MyAllocator\phpsdk\src\Api\ARIRulesList, MyAllocator\phpsdk\src\Api\BookingPaymentPasswordValidate, MyAllocator\phpsdk\src\Api\ChannelList, MyAllocator\phpsdk\src\Api\HelloUser, MyAllocator\phpsdk\src\Api\HelloVendor, MyAllocator\phpsdk\src\Api\HelloVendorUser, MyAllocator\phpsdk\src\Api\HelloWorld, MyAllocator\phpsdk\src\Api\LoopARIList, MyAllocator\phpsdk\src\Api\LoopBookingAction, MyAllocator\phpsdk\src\Api\LoopBookingCreate, MyAllocator\phpsdk\src\Api\LoopBookingList, MyAllocator\phpsdk\src\Api\ARIRulesUpdate, MyAllocator\phpsdk\src\Api\NotificationEmailsList, MyAllocator\phpsdk\src\Api\PropertyBillingList, MyAllocator\phpsdk\src\Api\PropertyChannelList, MyAllocator\phpsdk\src\Api\PropertyCreate, MyAllocator\phpsdk\src\Api\PropertyImageCreate, MyAllocator\phpsdk\src\Api\PropertyImageList, MyAllocator\phpsdk\src\Api\PropertyImageRemove, MyAllocator\phpsdk\src\Api\PropertyList, MyAllocator\phpsdk\src\Api\PropertyModify, MyAllocator\phpsdk\src\Api\RoomAvailabilityList, MyAllocator\phpsdk\src\Api\ARIUpdate, MyAllocator\phpsdk\src\Api\RoomCreate, MyAllocator\phpsdk\src\Api\RoomImageCreate, MyAllocator\phpsdk\src\Api\RoomImageList, MyAllocator\phpsdk\src\Api\RoomImageRemove, MyAllocator\phpsdk\src\Api\RoomList, MyAllocator\phpsdk\src\Api\RoomRemove, MyAllocator\phpsdk\src\Api\RoomUpdate, MyAllocator\phpsdk\src\Api\UserCreate, MyAllocator\phpsdk\src\Api\UserExists, MyAllocator\phpsdk\src\Api\VendorSet, MyAllocator\phpsdk\src\Api\ARIUpdateStatus, MyAllocator\phpsdk\src\Api\AssociatePropertyToPMS, MyAllocator\phpsdk\src\Api\AssociateUserToPMS, MyAllocator\phpsdk\src\Api\BookingAction, MyAllocator\phpsdk\src\Api\BookingList, MyAllocator\phpsdk\src\Api\BookingPaymentDownload

Namespace: MyAllocator\phpsdk\src
Located at MaBaseClass.php

Methods summary

public
# __construct( mixed $cfg = null )

Class contructor attempts to assign configuration parameters.

Class contructor attempts to assign configuration parameters.

Parameters

$cfg
<p>API configuration potentially containing a 'cfg' key with configurations to overwrite Config/Config.php.</p>
public boolean|null
# setConfig( key $key = null, value $value = null )

Set an API configuration key.

Set an API configuration key.

Parameters

$key
The configuration key.
$value
The configuration key value.

Returns

boolean|null
Result of the set.
public mixed|null
# getConfig( key $key )

Get an API configuration value by key.

Get an API configuration value by key.

Parameters

$key
The configuration key.

Returns

mixed|null
The configuration value.
protected
# debug_echo( string $str )

Echoes a string if debugsEnabled is set to true.

Echoes a string if debugsEnabled is set to true.

Parameters

$str
The string to echo.
protected
# debug_var_dump( mixed $obj )

Dumps an object/variable if debugsEnabled is set to true.

Dumps an object/variable if debugsEnabled is set to true.

Parameters

$obj
The object or vairable to dump.
protected
# debug_print_r( array $array )

Prints an array if debugsEnabled is set to true.

Prints an array if debugsEnabled is set to true.

Parameters

$array
The array to print.
protected
# debug( string $type, mixed $mixed )

Generates some output if debugsEnabled is set to true.

Generates some output if debugsEnabled is set to true.

Parameters

$type
The output type.
$mixed
The object, array, or variable.

Magic methods summary

Properties summary

protected array $config

MyAllocator API configuration.

MyAllocator API configuration.

# null
MyAllocator PMS PHP SDK API documentation generated by ApiGen