update_all_channels (ReachRSS >= 0.91) Description boolean update_all_channels ( [ boolean force_reload ] ) This function runs through each channel and calls update_channel() for each, then calls save_data(). If you call startup() you don't need to call this function, as startup() automatically calls update_all_channels(). If force_reload is set to true, all channels will be reloaded from the servers, regardless if their cache time has expired or not. update_all_channels() returns true on success, false if there were any HTTP errors or if there was a problem while saving the data file. If the error was an HTTP error a message will be output. Example 1. update_all_channels() example $ReachRSS = new ReachRSS(); $ReachRSS->load_data(); $ReachRSS->add_channel("http://www.comicalert.com/public/popular24.xml"); // You do not actually need to call update_all_channel() after // add_channel(), but this is an example, so... $ReachRSS->update_all_channels(); // No need to call save_data() here, because update_all_channels() handles // it automatically. This example will subscribe ReachRSS to the "most popular comics" feed at Comic Alert! and then immediatly update it and any other channels you're subscribed to. See also update_channel(), save_data(), startup(), channel_exists(), channels()
Home | Features | Samples | Demo | Download | Register | Help / Support
|