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


PHP Call::ACLAccess方法代碼示例

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


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

示例1: testACLAccess

 public function testACLAccess()
 {
     error_reporting(E_ERROR | E_PARSE);
     $call = new Call();
     //test without setting recurring_source attribute
     $this->assertTrue($call->ACLAccess(''));
     $this->assertTrue($call->ACLAccess('edit'));
     //test with recurring_source attribute set
     $call->recurring_source = 'test';
     $this->assertFalse($call->ACLAccess('edit'));
 }
開發者ID:recci,項目名稱:SuiteCRM,代碼行數:11,代碼來源:CallTest.php

示例2: array

$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'));
        $tag = 'span';
        if ($call->ACLAccess('view', $call->isOwner($current_user->id))) {
            $tag = 'a';
        }
        $open_activity_list[] = array('name' => $call->name, 'id' => $call->id, 'type' => 'Call', 'module' => 'Calls', 'status' => $call->status, 'parent_id' => $call->parent_id, 'parent_type' => $call->parent_type, 'parent_name' => $call->parent_name, 'contact_id' => $call->contact_id, 'contact_name' => $call->contact_name, 'date_start' => $timedate->to_display_date($td), 'normal_date_start' => $call->date_start, 'normal_time_start' => $call->time_start, 'time_start' => $timedate->to_display_time($td, true), 'required' => $call->required, 'accept_status' => $call->accept_status, 'tag' => $tag);
    }
}
///////////////////////////////////////////////////////////////////////////////
////	START OUTPUT
$xtpl = new XTemplate('modules/Activities/OpenListView.html');
$xtpl->assign("MOD", $current_module_strings);
$xtpl->assign("APP", $app_strings);
$xtpl->assign('JSON_CONFIG_JAVASCRIPT', $json_config->get_static_json_server());
$xtpl->assign("SUGAR_VERSION", $sugar_version);
$xtpl->assign("JS_CUSTOM_VERSION", $sugar_config['js_custom_version']);
// Stick the form header out there.
$filter = get_select_options_with_id($current_module_strings['appointment_filter_dom'], $appointment_filter);
開發者ID:klr2003,項目名稱:sourceread,代碼行數:31,代碼來源:OpenListView.php

示例3: display

 function display($defines, $additionalFormFields = null)
 {
     $focus = new Call();
     if (!$focus->ACLAccess('EditView')) {
         return '';
     }
     return parent::display($defines, $additionalFormFields);
 }
開發者ID:omusico,項目名稱:windcrm,代碼行數:8,代碼來源:SugarWidgetSubPanelTopScheduleCallButton.php

示例4: Call

 *
 * All copies of the Covered Code must include on each user interface screen:
 *    (i) the "Powered by SugarCRM" logo and
 *    (ii) the SugarCRM copyright notice
 * in the same form as they appear in the distribution.  See full license for
 * requirements.
 *
 * The Original Code is: SugarCRM Open Source
 * The Initial Developer of the Original Code is SugarCRM, Inc.
 * Portions created by SugarCRM are Copyright (C) 2004-2006 SugarCRM, Inc.;
 * All Rights Reserved.
 * Contributor(s): ______________________________________.
 ********************************************************************************/
/*********************************************************************************
 * Description:  TODO: To be written.
 * Portions created by SugarCRM are Copyright (C) SugarCRM, Inc.
 * All Rights Reserved.
 * Contributor(s): ______________________________________..
 ********************************************************************************/
require_once 'modules/Calls/Call.php';
$focus = new Call();
if (!isset($_REQUEST['record'])) {
    sugar_die("A record number must be specified to delete the call.");
}
$focus->retrieve($_REQUEST['record']);
if (!$focus->ACLAccess('Delete')) {
    ACLController::displayNoAccess(true);
    sugar_cleanup(true);
}
$focus->mark_deleted($_REQUEST['record']);
header("Location: index.php?module=" . $_REQUEST['return_module'] . "&action=" . $_REQUEST['return_action'] . "&record=" . $_REQUEST['return_id']);
開發者ID:BackupTheBerlios,項目名稱:livealphaprint,代碼行數:31,代碼來源:Delete.php


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