本文整理匯總了PHP中InboundEmail::mark_deleted方法的典型用法代碼示例。如果您正苦於以下問題:PHP InboundEmail::mark_deleted方法的具體用法?PHP InboundEmail::mark_deleted怎麽用?PHP InboundEmail::mark_deleted使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類InboundEmail
的用法示例。
在下文中一共展示了InboundEmail::mark_deleted方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: InboundEmail
* for the specific language governing rights and limitations under the
* License.
*
* 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:
* Created On: Sep 28, 2005
* Portions created by SugarCRM are Copyright (C) SugarCRM, Inc.
* All Rights Reserved.
* Contributor(s): Chris Nojima
********************************************************************************/
global $mod_strings;
if (empty($_REQUEST['record'])) {
sugar_die($mod_strings['LBL_DELETE_ERROR']);
} else {
require_once 'modules/InboundEmail/InboundEmail.php';
$focus = new InboundEmail();
$focus->mark_deleted($_REQUEST['record']);
header("Location: index.php?module=" . $_REQUEST['return_module'] . "&action=" . $_REQUEST['return_action'] . "&record=" . $_REQUEST['return_id']);
}
示例2: InboundEmail
/**
* Delete this inbound account.
*
*/
function _tearDownInboundAccount($inbound_account_id)
{
$focus = new InboundEmail();
$focus->retrieve($inbound_account_id);
$focus->mark_deleted($inbound_account_id);
$focus->db->query("delete from inbound_email WHERE id = '{$inbound_account_id}'");
}
示例3: mark_deleted
public function mark_deleted($id)
{
$inboundEmail = new InboundEmail();
$inboundEmail->mark_deleted($id);
$result = $inboundEmail->retrieve($id);
$this->assertEquals(null, $result);
}