public function checkPurge(AbstractModelAwareEvent $event)
    {
        $table = $event->getModel()->getProviderName();
        if (($table == 'tl_metamodel') ||
            ($table == 'tl_metamodel_dca') ||
            ($table == 'tl_metamodel_dca_sortgroup') ||
            ($table == 'tl_metamodel_dcasetting') ||
            ($table == 'tl_metamodel_dcasetting_condition') ||
            ($table == 'tl_metamodel_attribute') ||
            ($table == 'tl_metamodel_filter') ||
            ($table == 'tl_metamodel_filtersetting') ||
            ($table == 'tl_metamodel_rendersettings') ||
            ($table == 'tl_metamodel_rendersetting') ||
            ($table == 'tl_metamodel_dca_combine')
        ) {
            $this->purger->purge();
        }
    }
public function checkPurge(AbstractModelAwareEvent $event)
    {
        $table = $event->getModel()->getProviderName();
        if (($table == 'tl_metamodel') ||
            ($table == 'tl_metamodel_dca') ||
            ($table == 'tl_metamodel_dca_sortgroup') ||
            ($table == 'tl_metamodel_dcasetting') ||
            ($table == 'tl_metamodel_dcasetting_condition') ||
            ($table == 'tl_metamodel_attribute') ||
            ($table == 'tl_metamodel_filter') ||
            ($table == 'tl_metamodel_filtersetting') ||
            ($table == 'tl_metamodel_rendersettings') ||
            ($table == 'tl_metamodel_rendersetting') ||
            ($table == 'tl_metamodel_dca_combine')
        ) {
            $this->purger->purge();
        }
    }
public function checkPurge ( AbstractModelAwareEvent $ event ) { $ table = $ event -> getModel ( ) -> getProviderName ( ) ; if ( ( $ table == 'tl_metamodel' ) || ( $ table == 'tl_metamodel_dca' ) || ( $ table == 'tl_metamodel_dca_sortgroup' ) || ( $ table == 'tl_metamodel_dcasetting' ) || ( $ table == 'tl_metamodel_dcasetting_condition' ) || ( $ table == 'tl_metamodel_attribute' ) || ( $ table == 'tl_metamodel_filter' ) || ( $ table == 'tl_metamodel_filtersetting' ) || ( $ table == 'tl_metamodel_rendersettings' ) || ( $ table == 'tl_metamodel_rendersetting' ) || ( $ table == 'tl_metamodel_dca_combine' ) ) { $ this -> purger -> purge ( ) ; } }
Check if we have to purge the MetaModels cache.

@param AbstractModelAwareEvent $event The event holding the model being manipulated.

@return void

@SuppressWarnings(PHPMD.CyclomaticComplexity)
Check if we have to purge the MetaModels cache .