: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
* Abstract class of editor plugins.
* Array of allowed method by request from client side.
protected $allowed = array();
* @var object elFinder instance
* @param object $elfinder
public function __construct($elfinder, $args)
$this->elfinder = $elfinder;
* Return boolean that this plugin is enabled.
public function enabled()
* Return boolean that $name method is allowed.
public function isAllowedMethod($name)
$checker = array_flip($this->allowed);
return isset($checker[$name]);
* Return $this->args value of the key
* @param string $key target key
* @param string $empty empty value
public function argValue($key, $empty = '')
return isset($this->args[$key]) ? $this->args[$key] : $empty;