[ Index ] |
MailPress 7.2 |
[ Index ] [ Classes ] [ Functions ] [ Variables ] [ Constants ] [ Statistics ] |
[Summary view] [Print] [Text view]
1 <?php 2 3 /* 4 * This file is part of SwiftMailer. 5 * (c) 2009 Fabien Potencier <fabien.potencier@gmail.com> 6 * 7 * For the full copyright and license information, please view the LICENSE 8 * file that was distributed with this source code. 9 */ 10 11 /** 12 * Base class for Spools (implements time and message limits). 13 * 14 * @author Fabien Potencier 15 */ 16 abstract class Swift_ConfigurableSpool implements Swift_Spool 17 { 18 /** The maximum number of messages to send per flush */ 19 private $message_limit; 20 21 /** The time limit per flush */ 22 private $time_limit; 23 24 /** 25 * Sets the maximum number of messages to send per flush. 26 * 27 * @param int $limit 28 */ 29 public function setMessageLimit($limit) 30 { 31 $this->message_limit = (int) $limit; 32 } 33 34 /** 35 * Gets the maximum number of messages to send per flush. 36 * 37 * @return int The limit 38 */ 39 public function getMessageLimit() 40 { 41 return $this->message_limit; 42 } 43 44 /** 45 * Sets the time limit (in seconds) per flush. 46 * 47 * @param int $limit The limit 48 */ 49 public function setTimeLimit($limit) 50 { 51 $this->time_limit = (int) $limit; 52 } 53 54 /** 55 * Gets the time limit (in seconds) per flush. 56 * 57 * @return int The limit 58 */ 59 public function getTimeLimit() 60 { 61 return $this->time_limit; 62 } 63 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Tue May 19 15:55:14 2020 | Cross-referenced by PHPXref 0.7.1 |