You are here

function flag_flag::validate in Flag 6.2

Same name and namespace in other branches
  1. 5 flag.inc \flag_flag::validate()
  2. 6 flag.inc \flag_flag::validate()
  3. 7.3 includes/flag/flag_flag.inc \flag_flag::validate()
  4. 7.2 flag.inc \flag_flag::validate()

Validates this flag's options.

Return value

A list of errors encountered while validating this flag's options.

File

./flag.inc, line 287
Implements various flags. Uses object oriented style inspired by that of Views 2.

Class

flag_flag
This abstract class represents a flag, or, in Views 2 terminology, "a handler".

Code

function validate() {

  // TODO: It might be nice if this used automatic method discovery rather
  // than hard-coding the list of validate functions.
  return array_merge_recursive($this
    ->validate_name(), $this
    ->validate_access());
}