protected function setPluginStatus($stage, $plugin, $status)
    {
        $summary = $this->getBuildSummary();

        if (!isset($summary[$stage][$plugin])) {
            $summary[$stage][$plugin] = array();
        }

        $summary[$stage][$plugin]['status'] = $status;

        if ($status === Build::STATUS_RUNNING) {
            $summary[$stage][$plugin]['started'] = time();
        } elseif ($status >= Build::STATUS_SUCCESS) {
            $summary[$stage][$plugin]['ended'] = time();
        }

        $this->setBuildSummary($summary);
    }
protected function setPluginStatus($stage, $plugin, $status)
    {
        $summary = $this->getBuildSummary();

        if (!isset($summary[$stage][$plugin])) {
            $summary[$stage][$plugin] = array();
        }

        $summary[$stage][$plugin]['status'] = $status;

        if ($status === Build::STATUS_RUNNING) {
            $summary[$stage][$plugin]['started'] = time();
        } elseif ($status >= Build::STATUS_SUCCESS) {
            $summary[$stage][$plugin]['ended'] = time();
        }

        $this->setBuildSummary($summary);
    }
protected function setPluginStatus ( $ stage , $ plugin , $ status ) { $ summary = $ this -> getBuildSummary ( ) ; if ( ! isset ( $ summary [ $ stage ] [ $ plugin ] ) ) { $ summary [ $ stage ] [ $ plugin ] = array ( ) ; } $ summary [ $ stage ] [ $ plugin ] [ 'status' ] = $ status ; if ( $ status === Build :: STATUS_RUNNING ) { $ summary [ $ stage ] [ $ plugin ] [ 'started' ] = time ( ) ; } elseif ( $ status >= Build :: STATUS_SUCCESS ) { $ summary [ $ stage ] [ $ plugin ] [ 'ended' ] = time ( ) ; } $ this -> setBuildSummary ( $ summary ) ; }
Change the status of a plugin for a given stage.

@param string $stage The builder stage.
@param string $plugin The plugin name.
@param int $status The new status.
Change the status of a plugin for a given stage .