public function isOld($key, $config)
    {
        if (substr_count($key, ',') < 2) {
            return true;
        }
        list($version, $hash, $revision) = explode(',', $key, 3);
        $compare = version_compare($version, $config->version);
        // version mismatch, is always old
        if ($compare != 0) {
            return true;
        }
        // versions match, ids match, check revision number
        if ($hash == $config->getBatchSerial($this->type) &&
            $revision < $config->get($this->type . '.DefinitionRev')) {
            return true;
        }
        return false;
    }
public function isOld($key, $config)
    {
        if (substr_count($key, ',') < 2) {
            return true;
        }
        list($version, $hash, $revision) = explode(',', $key, 3);
        $compare = version_compare($version, $config->version);
        // version mismatch, is always old
        if ($compare != 0) {
            return true;
        }
        // versions match, ids match, check revision number
        if ($hash == $config->getBatchSerial($this->type) &&
            $revision < $config->get($this->type . '.DefinitionRev')) {
            return true;
        }
        return false;
    }
public function isOld ( $ key , $ config ) { if ( substr_count ( $ key , ',' ) < 2 ) { return true ; } list ( $ version , $ hash , $ revision ) = explode ( ',' , $ key , 3 ) ; $ compare = version_compare ( $ version , $ config -> version ) ; // version mismatch, is always old
 if ( $ compare != 0 ) { return true ; } // versions match, ids match, check revision number
 if ( $ hash == $ config -> getBatchSerial ( $ this -> type ) && $ revision < $ config -> get ( $ this -> type . '.DefinitionRev' ) ) { return true ; } return false ; }
Tests whether or not a key is old with respect to the configuration's
version and revision number.
@param string $key Key to test
@param HTMLPurifier_Config $config Instance of HTMLPurifier_Config to test against
@return bool
Tests whether or not a key is old with respect to the configuration s version and revision number .