50 $set = $ilDB->queryF(
"SELECT status FROM il_wiki_contributor ".
51 "WHERE wiki_id = %s and user_id = %s",
52 array(
"integer",
"integer"),
53 array($a_obj_id, $a_user_id));
54 if(
$row = $ilDB->fetchAssoc($set))
56 return $row[
"status"];
72 $set = $ilDB->queryF(
"SELECT status_time FROM il_wiki_contributor ".
73 "WHERE wiki_id = %s and user_id = %s",
74 array(
"integer",
"integer"),
75 array($a_obj_id, $a_user_id));
76 if(
$row = $ilDB->fetchAssoc($set))
78 return $row[
"status_time"];
96 $ilDB->manipulate(
"DELETE FROM il_wiki_contributor WHERE ".
97 " wiki_id = ".$ilDB->quote($a_obj_id,
"integer").
98 " AND user_id = ".$ilDB->quote($a_user_id,
"integer"));
100 $ilDB->manipulateF(
"INSERT INTO il_wiki_contributor (status, wiki_id, user_id, status_time) ".
101 "VALUES (%s,%s,%s,%s)",
102 array(
"integer",
"integer",
"integer",
"timestamp"),
103 array($a_status, $a_obj_id, $a_user_id,
ilUtil::now()));