Revision 582db59d
Added by Assos Assos almost 9 years ago
drupal7/modules/simpletest/tests/batch_test.callbacks.inc | ||
---|---|---|
7 | 7 |
*/ |
8 | 8 |
|
9 | 9 |
/** |
10 |
* Implements callback_batch_operation(). |
|
11 |
* |
|
10 | 12 |
* Simple batch operation. |
11 | 13 |
*/ |
12 | 14 |
function _batch_test_callback_1($id, $sleep, &$context) { |
... | ... | |
20 | 22 |
} |
21 | 23 |
|
22 | 24 |
/** |
25 |
* Implements callback_batch_operation(). |
|
26 |
* |
|
23 | 27 |
* Multistep batch operation. |
24 | 28 |
*/ |
25 | 29 |
function _batch_test_callback_2($start, $total, $sleep, &$context) { |
... | ... | |
53 | 57 |
} |
54 | 58 |
|
55 | 59 |
/** |
60 |
* Implements callback_batch_operation(). |
|
61 |
* |
|
56 | 62 |
* Simple batch operation. |
57 | 63 |
*/ |
58 | 64 |
function _batch_test_callback_5($id, $sleep, &$context) { |
... | ... | |
68 | 74 |
} |
69 | 75 |
|
70 | 76 |
/** |
77 |
* Implements callback_batch_operation(). |
|
78 |
* |
|
71 | 79 |
* Batch operation setting up its own batch. |
72 | 80 |
*/ |
73 | 81 |
function _batch_test_nested_batch_callback() { |
... | ... | |
76 | 84 |
} |
77 | 85 |
|
78 | 86 |
/** |
87 |
* Implements callback_batch_finished(). |
|
88 |
* |
|
79 | 89 |
* Common 'finished' callbacks for batches 1 to 4. |
80 | 90 |
*/ |
81 | 91 |
function _batch_test_finished_helper($batch_id, $success, $results, $operations) { |
... | ... | |
99 | 109 |
} |
100 | 110 |
|
101 | 111 |
/** |
112 |
* Implements callback_batch_finished(). |
|
113 |
* |
|
102 | 114 |
* 'finished' callback for batch 0. |
103 | 115 |
*/ |
104 | 116 |
function _batch_test_finished_0($success, $results, $operations) { |
... | ... | |
106 | 118 |
} |
107 | 119 |
|
108 | 120 |
/** |
121 |
* Implements callback_batch_finished(). |
|
122 |
* |
|
109 | 123 |
* 'finished' callback for batch 1. |
110 | 124 |
*/ |
111 | 125 |
function _batch_test_finished_1($success, $results, $operations) { |
... | ... | |
113 | 127 |
} |
114 | 128 |
|
115 | 129 |
/** |
130 |
* Implements callback_batch_finished(). |
|
131 |
* |
|
116 | 132 |
* 'finished' callback for batch 2. |
117 | 133 |
*/ |
118 | 134 |
function _batch_test_finished_2($success, $results, $operations) { |
... | ... | |
120 | 136 |
} |
121 | 137 |
|
122 | 138 |
/** |
139 |
* Implements callback_batch_finished(). |
|
140 |
* |
|
123 | 141 |
* 'finished' callback for batch 3. |
124 | 142 |
*/ |
125 | 143 |
function _batch_test_finished_3($success, $results, $operations) { |
... | ... | |
127 | 145 |
} |
128 | 146 |
|
129 | 147 |
/** |
148 |
* Implements callback_batch_finished(). |
|
149 |
* |
|
130 | 150 |
* 'finished' callback for batch 4. |
131 | 151 |
*/ |
132 | 152 |
function _batch_test_finished_4($success, $results, $operations) { |
... | ... | |
134 | 154 |
} |
135 | 155 |
|
136 | 156 |
/** |
157 |
* Implements callback_batch_finished(). |
|
158 |
* |
|
137 | 159 |
* 'finished' callback for batch 5. |
138 | 160 |
*/ |
139 | 161 |
function _batch_test_finished_5($success, $results, $operations) { |
Also available in: Unified diff
Update Drupal core to version 7.40