Add upstream plugins

Signed-off-by: Adrian Nöthlich <git@promasu.tech>
This commit is contained in:
2019-10-25 22:42:20 +02:00
parent 5d3c2ec184
commit 290736650a
1186 changed files with 302577 additions and 0 deletions

View File

@@ -0,0 +1,52 @@
<?php
/**
* Abstract base class for all our excpetion.
*
* @author Time.ly Network Inc.
* @since 2.0
*
* @package AI1EC
* @subpackage AI1EC.Exception
*/
class Ai1ec_Exception extends Exception {
/**
* A message to be displayed for admin
*
* Specific Exceptions should override this.
*
* @return string Message to be displayed for admin
*/
public function get_html_message() {
return $this->getMessage();
}
/**
* Return the èath of the plugin to disable it.
* If empty it disables core.
*
* @return string
*/
public function plugin_to_disable() {
return '';
}
/**
* Returns destination URL if exception handler redirects.
*
* @return string Result.
*/
public function get_redirect_url() {
return ai1ec_get_admin_url();
}
/**
* Defined whether exception handler should attach backtrace or not.
*
* @return bool Value.
*/
public function display_backtrace(){
return true;
}
}