當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Call::get_full_list方法代碼示例

本文整理匯總了PHP中Call::get_full_list方法的典型用法代碼示例。如果您正苦於以下問題:PHP Call::get_full_list方法的具體用法?PHP Call::get_full_list怎麽用?PHP Call::get_full_list使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Call的用法示例。


在下文中一共展示了Call::get_full_list方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: elseif

    $where .= " AND calls_users.user_id='{$current_user->id}' ";
    $where .= " AND calls_users.accept_status != 'decline'";
    // allow for differences between MySQL and Oracle 9
    if ($sugar_config["dbconfig"]["db_type"] == "mysql") {
        $where .= " HAVING datetime <= '" . $laterWhere["date"] . " " . $laterWhere["time"] . "' ";
    } elseif ($sugar_config["dbconfig"]["db_type"] == "oci8") {
    } else {
        if ($sugar_config["dbconfig"]["db_type"] == "mssql") {
            //add condition for MS Sql server.
            $where .= " AND calls.date_start + ' ' + calls.time_start <= '" . $laterWhere["date"] . " " . $laterWhere["time"] . "' ";
        } else {
            $GLOBALS['log']->fatal("No database type identified.");
        }
    }
    $call->disable_row_level_security = true;
    $focus_calls_list = $call->get_full_list("time_start", $where);
}
$open_activity_list = array();
if (count($focus_meetings_list) > 0) {
    foreach ($focus_meetings_list as $meeting) {
        $td = $timedate->merge_date_time(from_db_convert($meeting->date_start, 'date'), from_db_convert($meeting->time_start, 'time'));
        $tag = 'span';
        if ($meeting->ACLAccess('view', $meeting->isOwner($current_user->id))) {
            $tag = 'a';
        }
        $open_activity_list[] = array('name' => $meeting->name, 'id' => $meeting->id, 'type' => 'Meeting', 'module' => 'Meetings', 'status' => $meeting->status, 'parent_id' => $meeting->parent_id, 'parent_type' => $meeting->parent_type, 'parent_name' => $meeting->parent_name, 'contact_id' => $meeting->contact_id, 'contact_name' => $meeting->contact_name, 'normal_date_start' => $meeting->date_start, 'date_start' => $timedate->to_display_date($td), 'normal_time_start' => $meeting->time_start, 'time_start' => $timedate->to_display_time($td, true), 'required' => $meeting->required, 'accept_status' => $meeting->accept_status, 'tag' => $tag);
    }
}
if (count($focus_calls_list) > 0) {
    foreach ($focus_calls_list as $call) {
        $td = $timedate->merge_date_time(from_db_convert($call->date_start, 'date'), from_db_convert($call->time_start, 'time'));
開發者ID:klr2003,項目名稱:sourceread,代碼行數:31,代碼來源:OpenListView.php


注:本文中的Call::get_full_list方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。