Files
wordpress-dev-env/wordpress_plugins/wp-config-file-editor/SysPlugins/Plugins.class.php
Felix Förtsch 648ded8896 Initial commit
2020-10-20 14:39:50 +02:00

69 lines
743 B
PHP

<?php
/**
*
*
*/
namespace WCFE\SysPlugins;
/**
*
*/
class Plugins
{
/**
* put your comment there...
*
* @var mixed
*/
protected static $instance;
/**
* put your comment there...
*
* @var mixed
*/
protected $plugins;
/**
* put your comment there...
*
*/
private function __construct()
{
# Load Plugins
$this->plugins[ ] = new SysFilters\Plugin();
}
/**
* put your comment there...
*
*/
public static function & load()
{
if ( ! self::$instance )
{
self::$instance = new Plugins();
}
return self::$instance;
}
/**
* put your comment there...
*
*/
public function runPlugins()
{
foreach ( $this->plugins as $plugin )
{
$plugin->run();
}
return $this;
}
}