[development] Chapter 2 in Batch issues - @total
Jeff Greenberg
jeff at ayendesigns.com
Thu Jun 10 16:32:20 UTC 2010
Now that the batch operation is firing, I notice an issue with the
progress message. I've been looking through the code, but am defeated so
far by the levels of abstraction. Before resorting to stepping through
in debug, it makes sense to just ask!
I'm processing 200 records. The progress message (@current out of
@total) gives me 1 out of 1, 2 out of 1, 3 out of 1, etc.
$batch['sandbox']['max'] is set to the number of records being
processed, though I don't know whether it's used or not. I can't seem to
find in the docs or the code what is driving the @total value. I do see
that it comes from $current_set['total'], but not where that comes from.
Jeff
--
Ayen Designs
388 Bullsboro Drive #105 · Newnan, Georgia 30263
404-271-9734
ayendesigns.com <http://ayendesigns.com>
IM (Yahoo) baalwww (MSN) baalwww at yahoo.com
Skype: ayendesigns
Ayen Designs is a tradename of the computer services division of
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/development/attachments/20100610/144638dd/attachment.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ayenlogo
Type: image/jpeg
Size: 8316 bytes
Desc: not available
Url : http://lists.drupal.org/pipermail/development/attachments/20100610/144638dd/attachment.jpe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: acmelogo
Type: image/jpeg
Size: 1462 bytes
Desc: not available
Url : http://lists.drupal.org/pipermail/development/attachments/20100610/144638dd/attachment-0001.jpe
More information about the development
mailing list