Esempio n. 1
0
 * 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']);
}
Esempio n. 2
0
 /**
  * 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}'");
 }
 public function mark_deleted($id)
 {
     $inboundEmail = new InboundEmail();
     $inboundEmail->mark_deleted($id);
     $result = $inboundEmail->retrieve($id);
     $this->assertEquals(null, $result);
 }