bitrix-module bitrix-agent-manager
Agent manager for Bitrix
notamedia/bitrix-agent-manager
Agent manager for Bitrix
- PHP
- 0 Dependents
- 0 Suggesters
- 1 Forks
- 0 Open issues
- 2 Versions
- 0 % Grown
Agent manager for Bitrix
, (*1)
This module help to create simple workers on the Agents of Bitrix., (*2)
Installation
composer require notamedia/bitrix-agent-manager
Usage
Extends abstract class Agent for create your simple workers. For example:, (*3)
use Notamedia\AgentManager\Agent;
class SimpleWorker extends Agent
{
protected $recurring = false; // Agent is not recurring.
protected $parameter;
public function __construct($parameter)
{
parent::__construct();
$this->parameter = $parameter;
}
protected function init()
{
// Preparatory operations.
}
protected function execute()
{
// The basic logic of worker.
}
}
And register your Agent in the Bitrix:, (*4)
, (*5)