| 1 | <?php |
| 2 | |
| 3 | class CRM_Contribute_Exception_PastContributionPageException extends Exception { |
| 4 | private $id; |
| 5 | |
| 6 | /** |
| 7 | * @param string $message |
| 8 | * @param int $id |
| 9 | */ |
| 10 | public function __construct($message, $id) { |
| 11 | parent::__construct($message); |
| 12 | $this->id = $id; |
| 13 | CRM_Core_Error::debug_log_message('Access to contribution page with past end date attempted - page number ' . $id); |
| 14 | } |
| 15 | |
| 16 | /** |
| 17 | * Get Contribution page ID. |
| 18 | * |
| 19 | * @return int |
| 20 | */ |
| 21 | public function getID() { |
| 22 | return $this->id; |
| 23 | } |
| 24 | |
| 25 | } |