Lets say I'm looking for some particular data. When I've found it, is there anyway to stop the crawler from within the document callback? I don't want to exit the script since there's still more it needs to do after the item is found.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
View and moderate all "Help" comments posted by this user
Mark all as spam, and block user from posting to "Forum"
Lets say I'm looking for some particular data. When I've found it, is there anyway to stop the crawler from within the document callback? I don't want to exit the script since there's still more it needs to do after the item is found.
View and moderate all "Help" comments posted by this user
Mark all as spam, and block user from posting to "Forum"
Hi!
Yes, just let your handleDocumentInfo()-method return any negative value/integer, the crawler will stop after that request.
Also take a look at the docs:
http://phpcrawl.cuab.de/classreferences/PHPCrawler/method_detail_tpl_method_handleDocumentInfo.htm
View and moderate all "Help" comments posted by this user
Mark all as spam, and block user from posting to "Forum"
Wow thanks a lot for the quick response! Looks good, thanks for the help.
View and moderate all "Help" comments posted by this user
Mark all as spam, and block user from posting to "Forum"
good but seem can explain this feature in document :D