/** Attempts to refresh a subscribed newsfeed, returning an indication of success
*
* @param string|null $user The user whose subscribed newsfeed is to be updated; this may be null to facilitate refreshing feeds from the CLI
* @param integer $id The numerical identifier of the subscription to refresh
* @param boolean $throwError Whether to throw an exception on failure in addition to storing error information in the database
*/
public function subscriptionUpdate(?string $user, int $id, bool $throwError = false): bool {
// TODO: stub
return true;
}
/** Clears the soft-delete flag from one or more subscriptions, making them visible to the user
/** Clears the soft-delete flag from one or more subscriptions, making them visible to the user
*
*
* @param string $user The user whose subscriptions to reveal
* @param string $user The user whose subscriptions to reveal
@ -1219,27 +1208,26 @@ class Database {
return array_column($feeds, 'id');
return array_column($feeds, 'id');
}
}
/** Attempts to refresh a newsfeed, returning an indication of success
/** Attempts to refresh a subscribed newsfeed, returning an indication of success
*
*
* @param integer $feedID The numerical identifier of the newsfeed to refresh
* @param string|null $user The user whose subscribed newsfeed is to be updated; this may be null to facilitate refreshing feeds from the CLI
* @param integer $id The numerical identifier of the subscription to refresh
* @param boolean $throwError Whether to throw an exception on failure in addition to storing error information in the database
* @param boolean $throwError Whether to throw an exception on failure in addition to storing error information in the database
* @param boolean|null $scrapeOverride If not null, overrides information in the database signaling whether or not to scrape full-article content. This is intended for when there are no subscriptions for the feed in the database yet
*/
*/
public function feedUpdate($feedID, bool $throwError = false, ?bool $scrapeOverride = null): bool {
public function subscriptionUpdate(?string $user, $id, bool $throwError = false): bool {