function flag_flag::_flag_anonymous in Flag 7.3
Same name and namespace in other branches
- 6.2 flag.inc \flag_flag::_flag_anonymous()
- 7.2 flag.inc \flag_flag::_flag_anonymous()
Set a cookie for anonymous users to record their flagging.
@private
1 call to flag_flag::_flag_anonymous()
- flag_flag::flagging_insert in includes/
flag/ flag_flag.inc - Create a new Flagging to flag an entity.
File
- includes/
flag/ flag_flag.inc, line 1137 - 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 _flag_anonymous($entity_id) {
$storage = FlagCookieStorage::factory($this);
$storage
->flag($entity_id);
}