function get_component_md5() {

    /// Check requisites are passed
        if (!$this->requisitesok) {
            return false;
        }
    /// Get all components of md5 file
        if (!$comp_arr = $this->get_all_components_md5()) {
            if (empty($this->errorstring)) {
                $this->errorstring='cannotdownloadcomponents';
            }
            return false;
        }
    /// Search for the componentname component
        if (empty($comp_arr[$this->componentname]) || !$component = $comp_arr[$this->componentname]) {
             $this->errorstring='cannotfindcomponent';
             return false;
        }
    /// Check we have a valid md5
        if (empty($component[1]) || strlen($component[1]) != 32) {
            $this->errorstring='invalidmd5';
            return false;
        }
    /// Set the extramd5info field
        if (!empty($component[2])) {
            $this->extramd5info = $component[2];
        }
        return $component[1];
    }
function get_component_md5() {

    /// Check requisites are passed
        if (!$this->requisitesok) {
            return false;
        }
    /// Get all components of md5 file
        if (!$comp_arr = $this->get_all_components_md5()) {
            if (empty($this->errorstring)) {
                $this->errorstring='cannotdownloadcomponents';
            }
            return false;
        }
    /// Search for the componentname component
        if (empty($comp_arr[$this->componentname]) || !$component = $comp_arr[$this->componentname]) {
             $this->errorstring='cannotfindcomponent';
             return false;
        }
    /// Check we have a valid md5
        if (empty($component[1]) || strlen($component[1]) != 32) {
            $this->errorstring='invalidmd5';
            return false;
        }
    /// Set the extramd5info field
        if (!empty($component[2])) {
            $this->extramd5info = $component[2];
        }
        return $component[1];
    }
function get_component_md5 ( ) { /// Check requisites are passed if ( ! $ this -> requisitesok ) { return false ; } /// Get all components of md5 file if ( ! $ comp_arr = $ this -> get_all_components_md5 ( ) ) { if ( empty ( $ this -> errorstring ) ) { $ this -> errorstring = 'cannotdownloadcomponents' ; } return false ; } /// Search for the componentname component if ( empty ( $ comp_arr [ $ this -> componentname ] ) || ! $ component = $ comp_arr [ $ this -> componentname ] ) { $ this -> errorstring = 'cannotfindcomponent' ; return false ; } /// Check we have a valid md5 if ( empty ( $ component [ 1 ] ) || strlen ( $ component [ 1 ] ) != 32 ) { $ this -> errorstring = 'invalidmd5' ; return false ; } /// Set the extramd5info field if ( ! empty ( $ component [ 2 ] ) ) { $ this -> extramd5info = $ component [ 2 ] ; } return $ component [ 1 ] ; }
This function will download the specified md5 file, looking for the
current componentname, returning its md5 field and storing extramd5info
if present. Also it caches results to cachedmd5components for better
performance in the same request.

@return mixed md5 present in server (or false if error)
This function will download the specified md5 file looking for the current componentname returning its md5 field and storing extramd5info if present . Also it caches results to cachedmd5components for better performance in the same request .