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