You are here

function PaymentStatusInfo::children in Payment 7

Get this payment status's children.

Return value

string[] The machine names of this status's children.

1 call to PaymentStatusInfo::children()
PaymentStatusInfo::descendants in ./payment.classes.inc
Get this payment status's descendants.

File

./payment.classes.inc, line 1047
The API and related functions for executing and managing payments.

Class

PaymentStatusInfo
Payment status information.

Code

function children() {
  $children = array();
  foreach (payment_statuses_info() as $status_info) {
    if ($status_info->parent == $this->status) {
      $children[] = $status_info->status;
    }
  }
  return $children;
}