phpDocumentor

AfterbuyOrderWriteService extends AfterbuyOrderWriteService_parent

Class AfterbuyOrderWriteService

Table of Contents

AFTERBUY_ORDER_SENDER_COMMENT_START  = 'Afterbuy'
updateOrderStatus()  : mixed
Afterbuy overload of `OrderWriteService::updateOrderStatus`.
getContext()  : array<string|int, mixed>
Returns the arguments as serialized array, used for logging.
getServices()  : array<string|int, mixed>|null
Provides all necessary Afterbuy-services as array (in order to extract that array to variables).
mergeThrowable()  : array<string|int, mixed>
Merges data from the Throwable into the context array and returns a new copy containing error information.
strStartsWith()  : bool
Checks if string $haystack starts with the string of $needle.

Constants

Methods

updateOrderStatus()

Afterbuy overload of `OrderWriteService::updateOrderStatus`.

public updateOrderStatus(IdType $orderId, IntType $newOrderStatusId, StringType $comment, BoolType $customerNotified[, IdType|null $customerId = null ]) : mixed

Send orders with status 'paid' or 'unpaid' to afterbuy if the module is installed and enabled.

Parameters
$orderId : IdType
$newOrderStatusId : IntType
$comment : StringType
$customerNotified : BoolType
$customerId : IdType|null = null
Return values
mixed

getServices()

Provides all necessary Afterbuy-services as array (in order to extract that array to variables).

private getServices(array<string|int, mixed> $context) : array<string|int, mixed>|null

Returns null and logs an error if one of the services are not available in the DI-Container.

Parameters
$context : array<string|int, mixed>
Return values
array<string|int, mixed>|null

mergeThrowable()

Merges data from the Throwable into the context array and returns a new copy containing error information.

private mergeThrowable(array<string|int, mixed> $context, Throwable $t) : array<string|int, mixed>
Parameters
$context : array<string|int, mixed>
$t : Throwable
Return values
array<string|int, mixed>

strStartsWith()

Checks if string $haystack starts with the string of $needle.

private strStartsWith(string $haystack, string $needle) : bool
Parameters
$haystack : string
$needle : string
Return values
bool

Search results