Skip to content

Instantly share code, notes, and snippets.

@emanuele45
Created April 30, 2016 20:48
Show Gist options
  • Select an option

  • Save emanuele45/0ef539d6543e4fe12579bc643935109f to your computer and use it in GitHub Desktop.

Select an option

Save emanuele45/0ef539d6543e4fe12579bc643935109f to your computer and use it in GitHub Desktop.
<?php
/**
* Extension of the default Exception class to handle controllers redirection.
*
* @name ElkArte Forum
* @copyright ElkArte Forum contributors
* @license BSD http://opensource.org/licenses/BSD-3-Clause
*
* @version 1.1 beta 1
*
*/
if (!defined('ELK'))
die('No access...');
/**
* An exception to be catched by the PM controller.
*/
class Pm_Error_Exception extends Exception
{
public $recipientList;
public $namedRecipientList;
public $msgOptions;
/**
* Redefine the initialization.
* Do note that parent::__construct() is not called.
*
* @param int[] $recipientList Array of members ID separated into 'to' and 'bcc'
* @param \ElkArte\ValuesContainer $msgOptions Some values for common
* @param string[] $namedRecipientList Array of membernames separated into 'to' and 'bcc'
* this argument is @deprecated
*/
public function __construct($recipientList, $msgOptions, $namedRecipientList = array())
{
$this->recipientList = $recipientList;
$this->msgOptions = $msgOptions;
$this->namedRecipientList = $namedRecipientList;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment