You are here

function flag_flag::_flag in Flag 5

Same name and namespace in other branches
  1. 6.2 flag.inc \flag_flag::_flag()
  2. 6 flag.inc \flag_flag::_flag()
  3. 7.2 flag.inc \flag_flag::_flag()

A low-level method to flag content.

You probably shouldn't call this raw private method: call the flag() function instead.

@private

1 call to flag_flag::_flag()
flag_flag::flag in ./flag.inc
Flags, on unflags, an item.

File

./flag.inc, line 457
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($content_id, $uid) {
  db_query("INSERT INTO {flag_content} (fid, content_type, content_id, uid, timestamp) VALUES (%d, '%s', %d, %d, %d)", $this->fid, $this->content_type, $content_id, $uid, time());
  $this
    ->_update_count($content_id);
}