/** * This method validates the outputcontext called. * * It checks if the value passed is in the allowed array * of validOutputs. * * @see self::$validOutputs * @return bool Valid or not. */ public static function validateOutputType($type) { $outputs = Frapi_Internal::getCachedElseQueryConfigurationByKey('Output.formats-enabled', array('type' => 'outputs', 'node' => 'output', 'key' => 'name')); if (is_array($outputs) && !in_array(strtolower($type), $outputs)) { return false; } return true; }