public static function new_bkgnd($inbound, $outbound) { Util::keys_required($inbound, array('id', 'card_id')); $stack = new Stack(Util::safe_stack_id($inbound['id']), Util::optional($inbound, 'auth_hash')); $card_id = $stack->stack_new_card($inbound['card_id'], true); $outbound['card'] = $stack->stack_load_card($card_id); $outbound['bkgnd'] = $stack->stack_load_bkgnd($outbound['card']['bkgnd_id']); return $outbound; }
public static function new_bkgnd($inbound, $outbound) { $stack = new Stack(Util::safe_stack_id($inbound['stack_id'])); $inbound['card_id'] = $stack->stack_new_card($inbound['card_id'], true); return Gateway::load_card($inbound, $outbound); }