本文整理匯總了PHP中Stack::stack_delete_card方法的典型用法代碼示例。如果您正苦於以下問題:PHP Stack::stack_delete_card方法的具體用法?PHP Stack::stack_delete_card怎麽用?PHP Stack::stack_delete_card使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Stack
的用法示例。
在下文中一共展示了Stack::stack_delete_card方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: delete_card
public static function delete_card($inbound, $outbound)
{
Util::keys_required($inbound, array('id', 'card_id'));
$stack = new Stack(Util::safe_stack_id($inbound['id']), Util::optional($inbound, 'auth_hash'));
$next_card_id = $stack->stack_delete_card($inbound['card_id']);
$outbound['card'] = $stack->stack_load_card($next_card_id);
$outbound['bkgnd'] = $stack->stack_load_bkgnd($outbound['card']['bkgnd_id']);
return $outbound;
}
示例2: delete_card
public static function delete_card($inbound, $outbound)
{
$stack = new Stack(Util::safe_stack_id($inbound['stack_id']));
$inbound['card_id'] = $stack->stack_delete_card($inbound['card_id']);
$outbound = Gateway::load_card($inbound, $outbound);
$outbound['stack'] = $stack->stack_load();
return $outbound;
}