Back to Rules class

Method mergeCollection

public void
mergeCollection
(mixed $input)
Method to merge a collection of Rules.
Parameters
  • mixed $input Rule or array of Rules
Returns
  • void
Since
  • 1.7.0
Class: Rules
Project: Joomla

Method mergeCollection - Source code

/**
 * Method to merge a collection of Rules.
 *
 * @param   mixed  $input  Rule or array of Rules
 *
 * @return  void
 *
 * @since   1.7.0
 */
public function mergeCollection($input)
{
    // Check if the input is an array.
    if (\is_array($input)) {
        foreach ($input as $actions) {
            $this->merge($actions);
        }
    }
}