requireAllAttributes() (tick_24Validator Engine Only)

int requireAllAttributes(int $flags, string $att1[, string $att2...]);

$flags

1 - display a default error message if one of the listed attributes is not used

2 - after $flags specify a string to prepend to the default error message (requires flag 1) (New v4.5000)

4 - after $flags specify that attribute that creates the requirement (requires flag 1) (New v4.9910)

8 - after $flags specify a message ID (New v5.9930)

16 - after $flags specify a category string or category number (based on getMessageCategory() ) to use if a message is generated (New v17.00)

$attx - an attribute

This function returns 0 if all of the listed attributes are used, or returns 1 or greater if one or more of the listed attributes are not used:

The function returns 1 or greater if one or more of the listed attributes are not used. For instance, 1 is returned if the first listed attribute is not used ($att1), 2 if the second ($att2), and so on. If more than one of the listed attributes is not used, then the return value indicates the first attribute in the list that is not used.

If the return value is 1 or greater, and flag 1 is set, then a standard error message will be generated stating that the tag requires all of the listed attributes.