Friday, 12 June 2009 22:41

During a recent project, I had an issue with BulkLoader. I wanted to pause all of the loaders running, then resume them later. Pausing them was easy, as BulkLoader has a static method 'pauseAllLoaders'. But resuming them was another issue. I could resume individual items with resume(), or a whole instance with resumeAll(), but there was no method for resuming all instances.

I took a peek under the hood and found exactly what I was hoping to find: a static Object housing all the named BulkLoader instances! So here's a short snippet I wrote to resume all BulkLoader LoaderItems:

for( var ldr:String in BulkLoader._allLoaders )
{
  BulkLoader.getLoader( ldr ).resumeAll();
}
 

Add your comment

Your name:
Comment:
  The word for verification. Lowercase letters only with no spaces.
Word verification:

Featured Extensions

$3.00
FREE
You Save: $3.00
$5.00
FREE
You Save: $5.00
$1.00
FREE
You Save: $1.00
FREE

The Joomla!® name is used under a limited license from Open Source Matters in the United States and other countries. Jeff Channell is not affiliated with or endorsed by Open Source Matters or the Joomla!® Project.

Santorum
Joomla Extensions