/** * Preload all data of plugins */ private static function init() { if (!self::$data_initialized) { self::$data_initialized = true; $page_components_collection = new PageComponentRepository(); $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'); } }