private static function init()
    {
        if (!self::$data_initialized) {
            self::$data_initialized = true;

            $page_components_collection = new PageComponentEntityRepository();
            $page_components_collection->setWherePageId(PAGE_ID);
            $page_components_collection->addWhereFieldIsLike('component', 'select_plugin');
            if (Settings::isCacheEnabled()) {
                $page_components_collection->enableUsingCache();
            }

            self::$data = $page_components_collection->getPairs('data', 'component');
        }
    }
private static function init()
    {
        if (!self::$data_initialized) {
            self::$data_initialized = true;

            $page_components_collection = new PageComponentEntityRepository();
            $page_components_collection->setWherePageId(PAGE_ID);
            $page_components_collection->addWhereFieldIsLike('component', 'select_plugin');
            if (Settings::isCacheEnabled()) {
                $page_components_collection->enableUsingCache();
            }

            self::$data = $page_components_collection->getPairs('data', 'component');
        }
    }
private static function init ( ) { if ( ! self :: $ data_initialized ) { self :: $ data_initialized = true ; $ page_components_collection = new PageComponentEntityRepository ( ) ; $ page_components_collection -> setWherePageId ( PAGE_ID ) ; $ page_components_collection -> addWhereFieldIsLike ( 'component' , 'select_plugin' ) ; if ( Settings :: isCacheEnabled ( ) ) { $ page_components_collection -> enableUsingCache ( ) ; } self :: $ data = $ page_components_collection -> getPairs ( 'data' , 'component' ) ; } }
Preload all data of plugins
Preload all data of plugins