public function UltimateCronPlugin::__construct in Ultimate Cron 7.2
Constructor.
Setup object.
Parameters
string $name: Name of plugin.
array $plugin: The plugin definition.
1 call to UltimateCronPlugin::__construct()
- UltimateCronDatabaseLogger::__construct in plugins/
ultimate_cron/ logger/ database.class.php - Constructor.
1 method overrides UltimateCronPlugin::__construct()
- UltimateCronDatabaseLogger::__construct in plugins/
ultimate_cron/ logger/ database.class.php - Constructor.
File
- ./
ultimate_cron.plugin.inc, line 34 - Plugin framework for Ultimate Cron.
Class
- UltimateCronPlugin
- This is the base class for all Ultimate Cron plugins.
Code
public function __construct($name, $plugin) {
$this->plugin = $plugin;
$this->title = $plugin['title'];
$this->description = $plugin['description'];
$this->name = $name;
$this->type = $plugin['plugin type'];
$this->key = 'ultimate_cron_plugin_' . $plugin['plugin type'] . '_' . $name . '_settings';
$this->settings = variable_get($this->key, array());
}