User:AnomieBOT/source/AnomieBOT/API/Iterator.pm: Difference between revisions

Content deleted Content added
AnomieBOT (talk | contribs)
Updating published sources: CHUUClerk: * New task, not filing BRFA quite yet. AnomieBOT::API: * Document __nolog as input to $api->query. * Add __errok to $api->query, to suppress logging of expected MediaWiki errors. AnomieBOT::Task: * Remove warnin
AnomieBOT (talk | contribs)
Updating published sources: SourceUploader: * Override several behaviors of Pod::Simple::Wiki::Mediawiki: ** Don't try to generate "; foo : bar" lists, to prevent incorrect generation of "; foo1; foo2; foo3" when multiple =items have no intervening t
Line 139:
 
Note that no API query is done on creation, and thus no result object is
current. C<< $iter->next >> must be called at least once before this function is
useful.
 
Line 149:
The return object is normally a hashref representing one page object, with an
additional property C<_ok_> set to a true value. If C<_ok_> is false, the
returned hashref is instead the error object as returned by C<< $api->query() >>.
C<< $api->query() >>. Calling C<< $iter->next >> again after an error will
retry the API query, which may or may not succeed.
may not succeed.
 
When no more results are available, undef is returned.
Line 159:
=head1 COPYRIGHT
 
Copyright 2008–20102008–2011 Anomie
 
This library is free software; you can redistribute it and/or