function VisitorChat() { if (func_num_args() == 2) { $this->UserId = func_get_arg(0); $this->BrowserId = func_get_arg(1); $this->FirstCall = true; $this->QueuedPosts = array(); } else { if (func_num_args() == 10) { $this->UserId = func_get_arg(0); $this->BrowserId = func_get_arg(1); $this->Fullname = func_get_arg(2); $this->Email = func_get_arg(3); $this->Company = func_get_arg(4); $this->Question = func_get_arg(5); $this->Customs = func_get_arg(6); $this->DesiredChatGroup = func_get_arg(7); $this->DesiredChatPartner = func_get_arg(8); $this->FirstCall = true; $this->Phone = func_get_arg(9); } else { if (func_num_args() == 1) { $this->SetValues(func_get_arg(0)); } } } parent::__construct($this->BrowserId, $this->UserId); }
function VisitorChat() { if (func_num_args() == 2) { $this->UserId = func_get_arg(0); $this->BrowserId = func_get_arg(1); $this->FirstCall = true; } else { if (func_num_args() == 1) { $this->SetValues(func_get_arg(0)); } } parent::__construct($this->BrowserId, $this->UserId); }
function VisitorChat() { $loadParentHistory = true; if (func_num_args() == 2) { $this->UserId = func_get_arg(0); $this->BrowserId = func_get_arg(1); $this->FirstCall = true; $this->QueuedPosts = array(); } else { if (func_num_args() == 3) { $this->UserId = func_get_arg(0); $this->BrowserId = func_get_arg(1); $this->FirstCall = false; $this->QueuedPosts = array(); $loadParentHistory = false; } else { if (func_num_args() == 10) { $this->UserId = func_get_arg(0); $this->BrowserId = func_get_arg(1); if (empty($this->UserData)) { $this->UserData = new UserData(); } $this->UserData->Fullname = func_get_arg(2); $this->UserData->Email = func_get_arg(3); $this->UserData->Company = func_get_arg(4); $this->UserData->Text = func_get_arg(5); $this->UserData->Customs = func_get_arg(6); $this->DesiredChatGroup = func_get_arg(7); $this->DesiredChatPartner = func_get_arg(8); $this->FirstCall = true; $this->UserData->Phone = func_get_arg(9); } else { if (func_num_args() == 1) { $this->SetValues(func_get_arg(0)); } } } } parent::__construct($this->BrowserId, $this->UserId, $loadParentHistory); }