You are here

function flag_flag::construct in Flag 7.2

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

Default constructor. Loads the default options.

File

./flag.inc, line 276
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 construct() {
  $options = $this
    ->options();
  foreach ($options as $option => $value) {
    $this->{$option} = $value;
  }
}