/** * Iterates over the downloads accessible to the customer * * @api `shopp('customer.downloads')` * @since 1.1 * * @param string $result The output * @param array $options The options * @param ShoppCustomer $O The working object * @return bool True if the next download exists, false otherwise **/ public static function downloads($result, $options, $O) { if ($O->each_download()) { return true; } else { $O->reset_downloads(); return false; } }