/** * Register this plugin to be responsible for a specific task * * @param string $task Task name (only characters [a-z0-9_.-] are allowed) */ public function register_task($task) { if ($this->api->register_task($task, $this->ID)) { $this->mytask = $task; } }