Back to FormHelper class

Method addRulePath

public static array
addRulePath
(mixed $new = null)
Method to add a path to the list of rule include paths.
Parameters
  • mixed $new A path or array of paths to add.
Returns
  • array The list of paths that have been added.
Since
  • 1.7.0
Class: FormHelper
Project: Joomla

Method addRulePath - Source code

/**
 * Method to add a path to the list of rule include paths.
 *
 * @param   mixed  $new  A path or array of paths to add.
 *
 * @return  array  The list of paths that have been added.
 *
 * @since   1.7.0
 */
public static function addRulePath($new = null)
{
    return self::addPath('rule', $new);
}