Esempio n. 1
0
 public function __construct($logger, $message)
 {
     parent::__construct($logger);
     $this->_logger->log(__CLASS__ . ' ' . __METHOD__);
     $this->message = $message;
     $this->run();
 }
 public function __construct($logger)
 {
     parent::__construct($logger);
     $this->synchronization = new Synchronization();
     $this->slave_ip = $this->synchronization->getRemoteIpToSentMessages();
     $this->slave_port = $this->synchronization->getRemotePortToSentMessages();
     $this->loadSlaveClient();
 }
Esempio n. 3
0
 /**
  * Ctor.
  * 
  * @param ILogger $logger
  * @param string $source Source string with connection info
  * @param string $by User who runs listener
  */
 public function __construct($logger, $source, $communication_type, $by)
 {
     parent::__construct($logger);
     $this->_logger->log(__METHOD__);
     $this->source = $source;
     $this->communication_type = $communication_type;
     $this->by = $by;
     $this->init();
 }
Esempio n. 4
0
 /**
  * Ctor.
  * 
  * @param ILogger $logger
  * @param string $source Source string with connection info
  * @param string $by User who runs listener
  */
 public function __construct($logger, $source, $by, $listener)
 {
     parent::__construct($logger);
     $this->_logger->log(__METHOD__);
     $this->source = $source;
     $this->listener = $listener;
     $this->by = $by;
     if (!$this->init()) {
         return false;
     }
     $this->run();
 }
Esempio n. 5
0
 /**
  * Ctor.
  * 
  * @param ILogger $logger
  * @param string $source Source string with connection info
  * @param string $by User who runs listener
  */
 public function __construct($logger, $source, $by, $listener, $callerClass, $connector)
 {
     if ($callerClass !== 'ProcessListenCom') {
         return false;
     }
     parent::__construct($logger);
     $this->_logger->log(__METHOD__);
     $this->_connector = $connector;
     $this->source = $source;
     $this->listener = $listener;
     $this->by = $by;
     if (!$this->init()) {
         return false;
     }
     $this->run();
 }
Esempio n. 6
0
 public function __construct($logger, $message_obj_temp)
 {
     parent::__construct($logger);
     // тут надо производить замену модели  $message_obj с ListenerLogtemp на ListenrLog
     $message_obj = new ListenerLog();
     $message_obj->listener_id = $message_obj_temp->listener_id;
     $message_obj->message = $message_obj_temp->message;
     $message_obj->rewrite_prev_values = $message_obj_temp->rewrite_prev_values;
     $message_obj->is_processed = $message_obj_temp->is_processed;
     $message_obj->is_processing = $message_obj_temp->is_processing;
     $message_obj->source = $message_obj_temp->source;
     $message_obj->source_info = $message_obj_temp->source_info;
     $message_obj->station_id = 0;
     $message_obj->save();
     $this->_logger->log(__METHOD__);
     $this->message_obj = $message_obj;
 }
 public function __construct($logger)
 {
     parent::__construct($logger);
     $this->loadForwardingClients();
 }
Esempio n. 8
0
 public function __construct($logger, $args)
 {
     parent::__construct($logger);
     $this->run($args);
 }
Esempio n. 9
0
 /**
  *   Constructor. Calls BaseComponent constructor.
  */
 function __construct()
 {
     parent::__construct();
 }
Esempio n. 10
0
 /**
  * 
  * 
  * @param ILogger $logger
  * @param Listener $listener
  * @param PhpSerial $serial
  * @param array $serialPortParams
  * @param int $serialPort
  * @param string $phoneNumber
  * @param string $messageText
  */
 public function __construct($logger, $listener, $serial, $serialPortParams, $serialPort, $phoneNumber, $messageText)
 {
     parent::__construct($logger);
     $this->_logger->log(__METHOD__);
     $this->_listener = $listener;
     $this->_serial = $serial;
     $this->_serialPortParams = $serialPortParams;
     $this->_serialPort = $serialPort;
     $this->_phoneNumber = $phoneNumber;
     $this->_messageText = $messageText;
 }
Esempio n. 11
0
 public function __construct(array $options = [])
 {
     parent::__construct($options);
 }
Esempio n. 12
0
 /**
  * @param Logger $logger
  * @param array  $server
  * @param array  $client
  */
 public function __construct($logger, $server, $client)
 {
     parent::__construct($logger);
     $this->server_param = $server;
     $this->client_param = $client;
 }