plugins, $name, $location, $args)) return false; # Parse $location = ($location===0 ? 'before' : 'after'); # Call plugins $this->plugins->activate($name . ":" . $location, $args); return true; } protected function dependencies($available = false) { if ($available===false) exit('Error: Can not execute function. Missing parameters and variables.'); } }