function flag_flag::_flag_anonymous in Flag 7.2
Same name and namespace in other branches
- 6.2 flag.inc \flag_flag::_flag_anonymous()
- 7.3 includes/flag/flag_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::flag in ./
flag.inc - Flags, or unflags, an item.
File
- ./
flag.inc, line 907 - 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 _flag_anonymous($content_id) {
$storage = FlagCookieStorage::factory($this);
$storage
->flag($content_id);
}