当前位置: 首页>>代码示例>>PHP>>正文


PHP Campaign::ACLAccess方法代码示例

本文整理汇总了PHP中Campaign::ACLAccess方法的典型用法代码示例。如果您正苦于以下问题:PHP Campaign::ACLAccess方法的具体用法?PHP Campaign::ACLAccess怎么用?PHP Campaign::ACLAccess使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Campaign的用法示例。


在下文中一共展示了Campaign::ACLAccess方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: Campaign

 * 
 * In accordance with Section 7(b) of the GNU Affero General Public License version 3,
 * these Appropriate Legal Notices must retain the display of the "Powered by
 * SugarCRM" logo. If the display of the logo is not reasonably feasible for
 * technical reasons, the Appropriate Legal Notices must display the words
 * "Powered by SugarCRM".
 ********************************************************************************/
/*********************************************************************************
 * Description:  TODO: To be written.
 * Portions created by SugarCRM are Copyright (C) SugarCRM, Inc.
 * All Rights Reserved.
 * Contributor(s): ______________________________________..
 ********************************************************************************/
$focus = new Campaign();
$focus->retrieve($_POST['record']);
if (!$focus->ACLAccess('Save')) {
    ACLController::displayNoAccess(true);
    sugar_cleanup(true);
}
if (!empty($_POST['assigned_user_id']) && $focus->assigned_user_id != $_POST['assigned_user_id'] && $_POST['assigned_user_id'] != $current_user->id) {
    $check_notify = TRUE;
} else {
    $check_notify = FALSE;
}
require_once 'include/formbase.php';
$focus = populateFromPost('', $focus);
//store preformatted dates for 2nd save
$preformat_start_date = $focus->start_date;
$preformat_end_date = $focus->end_date;
//_ppd($preformat_end_date);
$focus->save($check_notify);
开发者ID:rgauss,项目名称:sugarcrm_dev,代码行数:31,代码来源:Save.php

示例2:

        $query .= "inner join prospect_lists on campaign_log.list_id = prospect_lists.id and prospect_lists.list_type='test' ";
        $query .= "set emails.deleted=1 ";
    } else {
    }
    $focus->db->query($query);
    //delete from message queue.
    if ($focus->db->dbType == 'mysql') {
        $query = "delete emailman.* from emailman ";
        $query .= "inner join prospect_lists on emailman.list_id = prospect_lists.id and prospect_lists.list_type='test' ";
        $query .= "WHERE emailman.campaign_id = '{$focus->id}' ";
    } else {
    }
    $focus->db->query($query);
    //delete from campaign_log
    if ($focus->db->dbType == 'mysql') {
        $query = "update  campaign_log ";
        $query .= "inner join prospect_lists on campaign_log.list_id = prospect_lists.id and prospect_lists.list_type='test' ";
        $query .= "set campaign_log.deleted=1 ";
        $query .= "where campaign_log.campaign_id='{$focus->id}' ";
    } else {
    }
    $focus->db->query($query);
} else {
    if (!$focus->ACLAccess('Delete')) {
        ACLController::displayNoAccess(true);
        sugar_cleanup(true);
    }
    $focus->mark_deleted($_REQUEST['record']);
}
$return_id = !empty($_REQUEST['return_id']) ? $_REQUEST['return_id'] : $focus->id;
header("Location: index.php?module=" . $_REQUEST['return_module'] . "&action=" . $_REQUEST['return_action'] . "&record=" . $return_id);
开发者ID:BackupTheBerlios,项目名称:livealphaprint,代码行数:31,代码来源:Delete.php


注:本文中的Campaign::ACLAccess方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。