Back to FormHelper class

Method loadFilterClass

public static string|bool
loadFilterClass
(mixed $type)
Attempt to import the FormFilter class file if it isn't already imported.
Parameters
  • string $type Type of a filter whose class should be loaded.
Returns
  • string|bool Class name on success or false otherwise.
Since
  • 4.0.0
Class: FormHelper
Project: Joomla

Method loadFilterClass - Source code

/**
 * Attempt to import the FormFilter class file if it isn't already imported.
 * You can use this method outside of Form for loading a filter for inheritance or composition.
 *
 * @param   string  $type  Type of a filter whose class should be loaded.
 *
 * @return  string|boolean  Class name on success or false otherwise.
 *
 * @since   4.0.0
 */
public static function loadFilterClass($type)
{
    return self::loadClass('filter', $type);
}