public function CabinetUpdateFile($file_id, $name, $file_path, $comment = false) { // $file_id : IDType (== string == integer) update file ID // $name : string (Download File Name ,almost basename($file_path)) // $file_path : new file location (string) // $commnet : string (optional) file description $this->CheckAndSetHeader(__FUNCTION__); $reg_args["file_id"] = $file_id; $reg_args["name"] = $name; if ($commnet !== false) { $reg_args["comment"] = $comment; } $this->encodeString($reg_args); // update file body $fp = fopen($file_path, "r"); if ($fp == false) { throw new CbgrnSoapFault("007", __FUNCTION__); } $reg_args["content"] = fread($fp, filesize($file_path)); fclose($fp); $results = parent::CabinetUpdateFile($reg_args); $this->methodClose(); return $this->decodeString($results->file); }