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,62 @@
<?php
/**
* Abstract Class for Callback Events.
*
* @author Time.ly Network Inc.
* @since 2.0
*
* @package AI1EC
* @subpackage AI1EC.Event
*/
abstract class Ai1ec_Event_Callback_Abstract {
/**
* @var Ai1ec_Registry_Object The Object registry.
*/
protected $_registry = null;
/**
* @var string The registry method name defined in the class map.
*/
protected $_registry_name = null;
/**
* @var string The method invoked by the current callback.
*/
protected $_method = null;
/**
* Initiate callback objects.
*
* @param Ai1ec_Registry_Object $registry Registry object.
* @param string $path Registry method name defined in the class map.
* @param string $method Method invoked by the currect callback.
*
* @return void Constructor does not return.
*/
public function __construct(
Ai1ec_Registry_Object $registry,
$path,
$method
) {
$this->_registry = $registry;
$this->_registry_name = $path;
$this->_method = $method;
}
/**
* Invoke the method added to the current callback.
*
* @return mixed Value returned by the current method.
*/
public function run() {
$argv = func_get_args();
return $this->_registry->dispatch(
$this->_registry_name,
$this->_method,
$argv
);
}
}

View File

@@ -0,0 +1,14 @@
<?php
/**
* Event Callback Action creation.
*
* @author Time.ly Network Inc.
* @since 2.0
*
* @instantiator new
* @package AI1EC
* @subpackage AI1EC.Event
*/
class Ai1ec_Event_Callback_Action extends Ai1ec_Event_Callback_Abstract {
}

View File

@@ -0,0 +1,14 @@
<?php
/**
* Event Callback Filter creation.
*
* @author Time.ly Network Inc.
* @since 2.0
*
* @instantiator new
* @package AI1EC
* @subpackage AI1EC.Event
*/
class Ai1ec_Event_Callback_Filter extends Ai1ec_Event_Callback_Abstract {
}

View File

@@ -0,0 +1,14 @@
<?php
/**
* Event Callback Shortcode creation.
*
* @author Time.ly Network Inc.
* @since 2.0
*
* @instantiator new
* @package AI1EC
* @subpackage AI1EC.Event
*/
class Ai1ec_Event_Callback_Shortcode extends Ai1ec_Event_Callback_Abstract {
}