protected function hasDatabaseHistory($code, $version, $script = null)
    {
        $historyInfo = $this->getDatabaseHistory($code);
        if (!$historyInfo) {
            return false;
        }

        foreach ($historyInfo as $history) {
            if ($history->version != $version) {
                continue;
            }

            if ($history->type == self::HISTORY_TYPE_COMMENT && !$script) {
                return true;
            }

            if ($history->type == self::HISTORY_TYPE_SCRIPT && $history->detail == $script) {
                return true;
            }
        }

        return false;
    }
protected function hasDatabaseHistory($code, $version, $script = null)
    {
        $historyInfo = $this->getDatabaseHistory($code);
        if (!$historyInfo) {
            return false;
        }

        foreach ($historyInfo as $history) {
            if ($history->version != $version) {
                continue;
            }

            if ($history->type == self::HISTORY_TYPE_COMMENT && !$script) {
                return true;
            }

            if ($history->type == self::HISTORY_TYPE_SCRIPT && $history->detail == $script) {
                return true;
            }
        }

        return false;
    }
protected function hasDatabaseHistory ( $ code , $ version , $ script = null ) { $ historyInfo = $ this -> getDatabaseHistory ( $ code ) ; if ( ! $ historyInfo ) { return false ; } foreach ( $ historyInfo as $ history ) { if ( $ history -> version != $ version ) { continue ; } if ( $ history -> type == self :: HISTORY_TYPE_COMMENT && ! $ script ) { return true ; } if ( $ history -> type == self :: HISTORY_TYPE_SCRIPT && $ history -> detail == $ script ) { return true ; } } return false ; }
Checks if a plugin has an applied update version.
Checks if a plugin has an applied update version .