protected function validateUpdate($updateDir)
    {
        $errorMessage = null;
        if (!\CUpdateClientPartner::CheckUpdatability($updateDir, $errorMessage)) {
            throw new Exception\ModuleUpdateException('[CL03] CheckUpdatability failed. ' . $errorMessage,
                $this->getName());
        }

        if (isset($updateDescription["DATA"]["#"]["ERROR"])) {
            $errorMessage = "";
            foreach ($updateDescription["DATA"]["#"]["ERROR"] as $errorDescription) {
                $errorMessage .= "[" . $errorDescription["@"]["TYPE"] . "] " . $errorDescription["#"];
            }
            throw new Exception\ModuleUpdateException($errorMessage, $this->getName());
        }
    }
protected function validateUpdate($updateDir)
    {
        $errorMessage = null;
        if (!\CUpdateClientPartner::CheckUpdatability($updateDir, $errorMessage)) {
            throw new Exception\ModuleUpdateException('[CL03] CheckUpdatability failed. ' . $errorMessage,
                $this->getName());
        }

        if (isset($updateDescription["DATA"]["#"]["ERROR"])) {
            $errorMessage = "";
            foreach ($updateDescription["DATA"]["#"]["ERROR"] as $errorDescription) {
                $errorMessage .= "[" . $errorDescription["@"]["TYPE"] . "] " . $errorDescription["#"];
            }
            throw new Exception\ModuleUpdateException($errorMessage, $this->getName());
        }
    }
protected function validateUpdate ( $ updateDir ) { $ errorMessage = null ; if ( ! \ CUpdateClientPartner :: CheckUpdatability ( $ updateDir , $ errorMessage ) ) { throw new Exception \ ModuleUpdateException ( '[CL03] CheckUpdatability failed. ' . $ errorMessage , $ this -> getName ( ) ) ; } if ( isset ( $ updateDescription [ "DATA" ] [ "#" ] [ "ERROR" ] ) ) { $ errorMessage = "" ; foreach ( $ updateDescription [ "DATA" ] [ "#" ] [ "ERROR" ] as $ errorDescription ) { $ errorMessage .= "[" . $ errorDescription [ "@" ] [ "TYPE" ] . "] " . $ errorDescription [ "#" ] ; } throw new Exception \ ModuleUpdateException ( $ errorMessage , $ this -> getName ( ) ) ; } }
Check update files.

@param string $updateDir
Check update files .