batch_example.module
Версия 1.3 (checked in on 2007/10/05 at 16:11:36 by drewish)
This is an example outlining how a module can define batches.
Batches allow heavy processing to be spread out over several page requests, thus ensuring that the processing does not get interrupted because of a PHP timeout, while allowing the user to receive feedback on the progress of the ongoing operations.
Функции
Имя | Описание |
---|---|
batch_example_batch_1 | Batch 1 : Load 100 times the node with the lowest nid |
batch_example_batch_2 | Batch 2 : load all nodes 5 by 5, 20 times (Multipart operation) |
batch_example_finished | Batch 'finished' callback used by both batch 1 and batch 2 |
batch_example_menu | Реализация hook_menu(). |
batch_example_multistep_form | Многошаговая форма. |
batch_example_multistep_form_submit | |
batch_example_op_1 | Batch operation for batch 1 : lode a node... |
batch_example_op_2 | Batch operation for batch 2 : load all nodes, 5 by five This is a multipart operation, using the |
batch_example_page | |
batch_example_simple_form | Test 1 : Simple form |
batch_example_simple_form_submit |