Esempio n. 1
0
 public function init()
 {
     $this->_configForm = new ConfigForm(Synchronization::getSettingsFilePath());
     $this->_data = $this->_configForm->getConfig();
     $this->server_ip = $this->_data['SERVER_IP']['value'];
     $this->server_port = $this->_data['SERVER_PORT']['value'];
     $this->remote_server_ip = $this->_data['REMOTE_SERVER_IP']['value'];
     $this->remote_server_port = $this->_data['REMOTE_SERVER_PORT']['value'];
     $this->switch_variant = $this->_data['SWITCH_VARIANT']['value'];
     $this->flexibility_role = $this->_data['FLEXIBILITY_ROLE']['value'];
     $this->process_status = $this->_data['PROCESS_STATUS']['value'];
     $this->main_role = $this->_data['MAIN_ROLE']['value'];
     $this->forwarding_messages_ip = $this->_data['FOR_COMES_FORWARDING_MESSAGES_IP']['value'];
     $this->forwarding_messages_port = $this->_data['FOR_COMES_FORWARDING_MESSAGES_PORT']['value'];
     $this->for_send_messages_to_ip = $this->_data['FOR_SEND_MESSAGES_TO_IP']['value'];
     $this->for_send_messages_port = $this->_data['FOR_SEND_MESSAGES_PORT']['value'];
     $this->identificator = $this->_data['IDENTIFICATOR']['value'];
     $this->tcp_server_command_port = $this->_data['TCP_SERVER_COMMAND_PORT']['value'];
     $this->tcp_client_command_port = $this->_data['TCP_CLIENT_COMMAND_PORT']['value'];
     $this->tcp_server_command_pid = $this->_data['TCP_SERVER_COMMAND_PID'];
     $this->tcp_client_command_pid = $this->_data['TCP_CLIENT_COMMAND_PID'];
     parent::init();
 }