/** * static function which gets a list of all componentized forms * @param boolean $use_cache. Use the cached value of the list for componentized forms if possible. Defualts to true * @returns array of string, the componentized forms */ public static function getComponentizedForms($use_cache = true) { if (!$use_cache || !is_array(self::$componentized_forms)) { $components = array(); $formsConfig = I2CE::getConfig()->traverse("/modules/forms/forms"); $forms = $formsConfig->getKeys(); foreach ($forms as $form) { if (!self::isComponentized($form)) { continue; } $components[] = $form; } self::$componentized_forms = $components; } return self::$componentized_forms; }