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 - immediately after $flags, include a string to prepend to the default error message (requires flag 1) (New v4.5000)

4 - immediately after $flags (unless flag 2 is used), specify that attribute that creates the requirement (requires flag 1) (New v4.9910)

8 - immediately after $flags (unless flag 2 or 4 is used), specify a message ID (New v5.9930)

$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.