public function __construct($ID, $arAuth = null) { $this->ID = intval($ID); if ($this->ID > 0) { $dbRes = CFormCrm::GetByID($this->ID); $this->arLink = $dbRes->Fetch(); } if (is_array($arAuth)) { $this->arAuth = array('LOGIN' => $arAuth['LOGIN'], 'PASSWORD' => $arAuth['PASSWORD']); } }