本文整理汇总了PHP中Bookmark::get_bookmarks方法的典型用法代码示例。如果您正苦于以下问题:PHP Bookmark::get_bookmarks方法的具体用法?PHP Bookmark::get_bookmarks怎么用?PHP Bookmark::get_bookmarks使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Bookmark
的用法示例。
在下文中一共展示了Bookmark::get_bookmarks方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: get_class_reportFN
//.........这里部分代码省略.........
} else {
$user_message_count = count($msgs_ha);
$dati_stude[$num_student]['message_count_in'] = $user_message_count;
$tot_message_count += $user_message_count;
}
$tot_message_count_in += $user_message_count;
$dati['msg_in'] = $user_message_count;
// messages sent
$msgs_ha = $mh->get_sent_messages($id_student, ADA_MSG_SIMPLE, array("id_mittente", "data_ora"), $sort_field);
if (AMA_DataHandler::isError($msgs_ha)) {
$err_code = $msgs_ha->code;
$dati_stude[$num_student]['message_count_out'] = "-";
} else {
$user_message_count = count($msgs_ha);
$dati_stude[$num_student]['message_count_out'] = $user_message_count;
$tot_message_count += $user_message_count;
}
$tot_message_count_out += $user_message_count;
$dati['msg_out'] = $user_message_count;
//chat..
$msgs_ha = $mh->get_sent_messages($id_student, ADA_MSG_CHAT, array("id_mittente", "data_ora"), $sort_field);
if (AMA_DataHandler::isError($msgs_ha)) {
$err_code = $msgs_ha->code;
$dati_stude[$num_student]['chat'] = "-";
} else {
$chatlines_count_out = count($msgs_ha);
$dati_stude[$num_student]['chat'] = $chatlines_count_out;
$tot_chatlines_count_out += $chatlines_count_out;
}
$tot_chatlines_count_out += $chatlines_count_out;
$dati['chat'] = $chatlines_count_out;
//bookmarks..
include_once 'bookmark_class.inc.php';
$bookmarks_count = count(Bookmark::get_bookmarks($id_student));
$dati_stude[$num_student]['bookmarks'] = $bookmarks_count;
$tot_bookmarks_count += $bookmarks_count;
$dati['bookmarks'] = $bookmarks_count;
// activity index
if (empty($index_att)) {
// parametro passato alla funzione
if (empty($GLOBALS['index_activity_expression'])) {
//
if (!isset($bcount)) {
$bcount = 1;
}
$index = $added_nodes_count * $npar + $st_history_count * $hpar + $user_message_count * $mpar + $st_exer_number * $epar + $bookmarks_count * $bcount + $chatlines_count_out * $cpar;
} else {
$index = eval($GLOBALS['index_activity_expression']);
}
} else {
$index = eval($index_att);
}
$dati_stude[$num_student]['index'] = $index;
//echo $index;
$tot_index += $index;
$dati['index'] = $index;
// level
$tot_level += $student_level;
$dati_stude[$num_student]['level'] = '<span id="studentLevel_' . $id_student . '">' . $student_level . '</span>';
$forceUpdate = false;
$linksHtml = $this->generateLevelButtons($id_student, $forceUpdate);
$dati_stude[$num_student]['level_plus'] = !is_null($linksHtml) ? $linksHtml : '-';
// inserting a row in table log_classi
$this->log_class_data($id_course, $id_instance, $dati);
}
}
示例2: getbookmarks
/**
* getBookmarks
* Get all user bookmarks.
* Takes no parameter.
* Not supported.
*/
public static function getbookmarks($input)
{
self::check_version($input, "1.9.0");
$r = Subsonic_XML_Data::createSuccessResponse();
$bookmarks = Bookmark::get_bookmarks();
Subsonic_XML_Data::addBookmarks($r, $bookmarks);
self::apiOutput($input, $r);
}
示例3: is_node_bookmarkedFN
public static function is_node_bookmarkedFN($id_user, $id_node)
{
// cerca un nodo nella lista di bookmark dell'utente
$dataHa = Bookmark::get_bookmarks($id_user, $id_tutor = "", $id_node);
/* foreach ($dataHa as $bkm){
$id_bk = $bkm[0];
$id_bk_node = $bkm[1];
if ($id_bk_node == $id_node)
return $id_bk;
}
*/
if (is_array($dataHa) && isset($dataHa[0][0])) {
return $dataHa[0][0];
} else {
return FALSE;
}
}