public function detect_plugin_component($zipfilepath) {

        $workdir = make_request_directory();
        $versionphp = $this->extract_versionphp_file($zipfilepath, $workdir);

        if (empty($versionphp)) {
            return false;
        }

        return $this->detect_plugin_component_from_versionphp(file_get_contents($workdir.'/'.$versionphp));
    }
public function detect_plugin_component($zipfilepath) {

        $workdir = make_request_directory();
        $versionphp = $this->extract_versionphp_file($zipfilepath, $workdir);

        if (empty($versionphp)) {
            return false;
        }

        return $this->detect_plugin_component_from_versionphp(file_get_contents($workdir.'/'.$versionphp));
    }
public function detect_plugin_component ( $ zipfilepath ) { $ workdir = make_request_directory ( ) ; $ versionphp = $ this -> extract_versionphp_file ( $ zipfilepath , $ workdir ) ; if ( empty ( $ versionphp ) ) { return false ; } return $ this -> detect_plugin_component_from_versionphp ( file_get_contents ( $ workdir . '/' . $ versionphp ) ) ; }
Detect the given plugin's component name

Only plugins that declare valid $plugin->component value in the version.php
are supported.

@param string $zipfilepath full path to the saved ZIP file
@return string|bool declared component name or false if unable to detect
Detect the given plugin s component name