You are here

function flag_flag::get_flagging in Flag 7.3

Similar to is_flagged() excepts it returns the flagging entity.

1 call to flag_flag::get_flagging()
flag_flag::replace_tokens in includes/flag/flag_flag.inc
Replaces tokens in a label. Only the 'global' token context is recognized by default, so derived classes should override this method to add all token contexts they understand.

File

includes/flag/flag_flag.inc, line 1031
Contains the flag_flag class. Flag type classes use an 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 get_flagging($entity_id, $uid = NULL, $sid = NULL) {
  if ($record = $this
    ->get_flagging_record($entity_id, $uid, $sid)) {
    return flagging_load($record->flagging_id);
  }
}