Esempio n. 1
0
 function __construct($exception_id, $position, $params)
 {
     $msg = wfMsgExt('abusefilter-exception-' . $exception_id, array(), array_merge(array($position), $params));
     parent::__construct($msg);
     $this->mExceptionID = $exception_id;
     $this->mPosition = $position;
     $this->mParams = $params;
 }
 /**
  * @param string $exception_id
  * @param int $position
  * @param array $params
  */
 function __construct($exception_id, $position, $params)
 {
     // Give grep a chance to find the usages:
     // abusefilter-exception-unexpectedatend, abusefilter-exception-expectednotfound
     // abusefilter-exception-unrecognisedkeyword, abusefilter-exception-unexpectedtoken
     // abusefilter-exception-unclosedstring, abusefilter-exception-invalidoperator
     // abusefilter-exception-unrecognisedtoken, abusefilter-exception-noparams
     // abusefilter-exception-dividebyzero, abusefilter-exception-unrecognisedvar
     // abusefilter-exception-notenoughargs, abusefilter-exception-regexfailure
     // abusefilter-exception-overridebuiltin, abusefilter-exception-outofbounds
     // abusefilter-exception-notlist
     $msg = wfMessage('abusefilter-exception-' . $exception_id, array_merge(array($position), $params))->text();
     parent::__construct($msg);
     $this->mExceptionID = $exception_id;
     $this->mPosition = $position;
     $this->mParams = $params;
 }