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


PHP CEventType::Delete方法代码示例

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


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

示例1: UnInstallEvent

 function UnInstallEvent()
 {
     global $DB;
     //Удаляем тип почтового события
     $et = new CEventType();
     $et->Delete($this->EVENT_NAME);
     //Находим все почтовые шаблоные которые были привязаны к нашему типу
     $DB->StartTransaction();
     $emessage = new CEventMessage();
     $rsMess = CEventMessage::GetList($by = "site_id", $order = "desc", array("TYPE_ID" => $this->EVENT_NAME));
     //рекурсивно по одному удаляем найденные шаблоны
     while ($events = $rsMess->GetNext()) {
         $emessage->Delete(intval($events["ID"]));
         $DB->Commit();
     }
 }
开发者ID:ASDAFF,项目名称:callback.form,代码行数:16,代码来源:index.php

示例2: CreateMailTemplate

 public static function CreateMailTemplate($ID)
 {
     $ID = trim($ID);
     if ('' == $ID) {
         return false;
     }
     if (!($arStatus = CSaleStatus::GetByID($ID, LANGUAGE_ID))) {
         return false;
     }
     $eventType = new CEventType();
     $eventMessage = new CEventMessage();
     $eventType->Delete("SALE_STATUS_CHANGED_" . $ID);
     $b = 'sort';
     $o = 'asc';
     $dbSiteList = CSite::GetList($b, $o);
     while ($arSiteList = $dbSiteList->Fetch()) {
         IncludeModuleLangFile($_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/sale/general/status.php", $arSiteList["LANGUAGE_ID"]);
         $arStatusLang = CSaleStatus::GetLangByID($ID, $arSiteList["LANGUAGE_ID"]);
         $dbEventType = $eventType->GetList(array("EVENT_NAME" => "SALE_STATUS_CHANGED_" . $ID, "LID" => $arSiteList["LANGUAGE_ID"]));
         if (!($arEventType = $dbEventType->Fetch())) {
             $str = "";
             $str .= "#ORDER_ID# - " . GetMessage("SKGS_ORDER_ID") . "\n";
             $str .= "#ORDER_DATE# - " . GetMessage("SKGS_ORDER_DATE") . "\n";
             $str .= "#ORDER_STATUS# - " . GetMessage("SKGS_ORDER_STATUS") . "\n";
             $str .= "#EMAIL# - " . GetMessage("SKGS_ORDER_EMAIL") . "\n";
             $str .= "#ORDER_DESCRIPTION# - " . GetMessage("SKGS_STATUS_DESCR") . "\n";
             $str .= "#TEXT# - " . GetMessage("SKGS_STATUS_TEXT") . "\n";
             $str .= "#SALE_EMAIL# - " . GetMessage("SKGS_SALE_EMAIL") . "\n";
             $eventTypeID = $eventType->Add(array("LID" => $arSiteList["LANGUAGE_ID"], "EVENT_NAME" => "SALE_STATUS_CHANGED_" . $ID, "NAME" => GetMessage("SKGS_CHANGING_STATUS_TO") . " \"" . $arStatusLang["NAME"] . "\"", "DESCRIPTION" => $str));
         }
         $dbEventMessage = $eventMessage->GetList($b = "", $o = "", array("EVENT_NAME" => "SALE_STATUS_CHANGED_" . $ID, "SITE_ID" => $arSiteList["LID"]));
         if (!($arEventMessage = $dbEventMessage->Fetch())) {
             $subject = GetMessage("SKGS_STATUS_MAIL_SUBJ");
             $message = GetMessage("SKGS_STATUS_MAIL_BODY1");
             $message .= "------------------------------------------\n\n";
             $message .= GetMessage("SKGS_STATUS_MAIL_BODY2");
             $message .= GetMessage("SKGS_STATUS_MAIL_BODY3");
             $message .= "#ORDER_STATUS#\n";
             $message .= "#ORDER_DESCRIPTION#\n";
             $message .= "#TEXT#\n\n";
             $message .= "#SITE_NAME#\n";
             $arFields = array("ACTIVE" => "Y", "EVENT_NAME" => "SALE_STATUS_CHANGED_" . $ID, "LID" => $arSiteList["LID"], "EMAIL_FROM" => "#SALE_EMAIL#", "EMAIL_TO" => "#EMAIL#", "SUBJECT" => $subject, "MESSAGE" => $message, "BODY_TYPE" => "text");
             $eventMessageID = $eventMessage->Add($arFields);
         }
     }
     return true;
 }
开发者ID:rasuldev,项目名称:torino,代码行数:47,代码来源:status.php

示例3: UnInstallEvents

 function UnInstallEvents()
 {
     global $DB;
     $statusMes = array();
     $dbStatus = $DB->Query("SELECT * FROM b_sale_status", true);
     if ($dbStatus) {
         while ($arStatus = $dbStatus->Fetch()) {
             $statusMes[] = "SALE_STATUS_CHANGED_" . $arStatus["ID"];
         }
     }
     $statusMes[] = "SALE_NEW_ORDER";
     $statusMes[] = "SALE_ORDER_CANCEL";
     $statusMes[] = "SALE_ORDER_PAID";
     $statusMes[] = "SALE_ORDER_DELIVERY";
     $statusMes[] = "SALE_RECURRING_CANCEL";
     $statusMes[] = "SALE_STATUS_CHANGED";
     $statusMes[] = "SALE_ORDER_REMIND_PAYMENT";
     $statusMes[] = "SALE_NEW_ORDER_RECURRING";
     $statusMes[] = "SALE_ORDER_TRACKING_NUMBER";
     $statusMes[] = "SALE_SUBSCRIBE_PRODUCT";
     $eventType = new CEventType();
     $eventM = new CEventMessage();
     foreach ($statusMes as $v) {
         $eventType->Delete($v);
         $dbEvent = CEventMessage::GetList($b = "ID", $order = "ASC", array("EVENT_NAME" => $v));
         while ($arEvent = $dbEvent->Fetch()) {
             $eventM->Delete($arEvent["ID"]);
         }
     }
     return true;
 }
开发者ID:mrdeadmouse,项目名称:u136006,代码行数:31,代码来源:index.php

示例4: SetMailTemplate

 function SetMailTemplate($WEB_FORM_ID, $ADD_NEW_TEMPLATE = "Y", $old_SID = "", $bReturnFullInfo = false)
 {
     global $DB, $MESS, $strError;
     $err_mess = CAllForm::err_mess() . "<br>Function: SetMailTemplates<br>Line: ";
     $arrReturn = array();
     $WEB_FORM_ID = intval($WEB_FORM_ID);
     $q = CForm::GetByID($WEB_FORM_ID);
     if ($arrForm = $q->Fetch()) {
         $MAIL_EVENT_TYPE = "FORM_FILLING_" . $arrForm["SID"];
         if (strlen($old_SID) > 0) {
             $old_MAIL_EVENT_TYPE = "FORM_FILLING_" . $old_SID;
         }
         $et = new CEventType();
         $em = new CEventMessage();
         if (strlen($MAIL_EVENT_TYPE) > 0) {
             $et->Delete($MAIL_EVENT_TYPE);
         }
         $z = CLanguage::GetList($v1, $v2);
         $OLD_MESS = $MESS;
         while ($arLang = $z->Fetch()) {
             IncludeModuleLangFile($_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/form/admin/form_mail.php", $arLang["LID"]);
             $str = "";
             $str .= "#RS_FORM_ID# - " . GetMessage("FORM_L_FORM_ID") . "\n";
             $str .= "#RS_FORM_NAME# - " . GetMessage("FORM_L_NAME") . "\n";
             $str .= "#RS_FORM_SID# - " . GetMessage("FORM_L_SID") . "\n";
             $str .= "#RS_RESULT_ID# - " . GetMessage("FORM_L_RESULT_ID") . "\n";
             $str .= "#RS_DATE_CREATE# - " . GetMessage("FORM_L_DATE_CREATE") . "\n";
             $str .= "#RS_USER_ID# - " . GetMessage("FORM_L_USER_ID") . "\n";
             $str .= "#RS_USER_EMAIL# - " . GetMessage("FORM_L_USER_EMAIL") . "\n";
             $str .= "#RS_USER_NAME# - " . GetMessage("FORM_L_USER_NAME") . "\n";
             $str .= "#RS_USER_AUTH# - " . GetMessage("FORM_L_USER_AUTH") . "\n";
             $str .= "#RS_STAT_GUEST_ID# - " . GetMessage("FORM_L_STAT_GUEST_ID") . "\n";
             $str .= "#RS_STAT_SESSION_ID# - " . GetMessage("FORM_L_STAT_SESSION_ID") . "\n";
             $strFIELDS = "";
             $w = CFormField::GetList($WEB_FORM_ID, "ALL", $by, $order, array(), $is_filtered);
             while ($wr = $w->Fetch()) {
                 if (strlen($wr["RESULTS_TABLE_TITLE"]) > 0) {
                     $FIELD_TITLE = $wr["RESULTS_TABLE_TITLE"];
                 } elseif (strlen($wr["TITLE"]) > 0) {
                     $FIELD_TITLE = $wr["TITLE_TYPE"] == "html" ? htmlspecialcharsback(strip_tags($wr["TITLE"])) : $wr["TITLE"];
                 } else {
                     $FIELD_TITLE = TrimEx($wr["FILTER_TITLE"], ":");
                 }
                 $str .= "#" . $wr["SID"] . "# - " . $FIELD_TITLE . "\n";
                 $str .= "#" . $wr["SID"] . "_RAW# - " . $FIELD_TITLE . " (" . GetMessage('FORM_L_RAW') . ")\n";
                 $strFIELDS .= $FIELD_TITLE . "\n*******************************\n#" . $wr["SID"] . "#\n\n";
             }
             $et->Add(array("LID" => $arLang["LID"], "EVENT_NAME" => $MAIL_EVENT_TYPE, "NAME" => GetMessage("FORM_FILLING") . " \"" . $arrForm["SID"] . "\"", "DESCRIPTION" => $str));
         }
         // задаем новый тип событи¤ дл¤ старых шаблонов
         if (strlen($old_MAIL_EVENT_TYPE) > 0 && $old_MAIL_EVENT_TYPE != $MAIL_EVENT_TYPE) {
             $e = $em->GetList($by = "id", $order = "desc", array("EVENT_NAME" => $old_MAIL_EVENT_TYPE));
             while ($er = $e->Fetch()) {
                 $em->Update($er["ID"], array("EVENT_NAME" => $MAIL_EVENT_TYPE));
             }
             if (strlen($old_MAIL_EVENT_TYPE) > 0) {
                 $et->Delete($old_MAIL_EVENT_TYPE);
             }
         }
         if ($ADD_NEW_TEMPLATE == "Y") {
             $z = CSite::GetList($v1, $v2);
             while ($arSite = $z->Fetch()) {
                 $arrSiteLang[$arSite["ID"]] = $arSite["LANGUAGE_ID"];
             }
             $arrFormSite = CForm::GetSiteArray($WEB_FORM_ID);
             if (is_array($arrFormSite) && count($arrFormSite) > 0) {
                 foreach ($arrFormSite as $sid) {
                     IncludeModuleLangFile($_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/form/admin/form_mail.php", $arrSiteLang[$sid]);
                     $SUBJECT = "#SERVER_NAME#: " . GetMessage("FORM_FILLING_S") . " [#RS_FORM_ID#] #RS_FORM_NAME#";
                     $MESSAGE = "#SERVER_NAME#\n\n" . GetMessage("FORM_FILLING") . ": [#RS_FORM_ID#] #RS_FORM_NAME#\n-------------------------------------------------------\n\n" . GetMessage("FORM_DATE_CREATE") . "#RS_DATE_CREATE#\n" . GetMessage("FORM_RESULT_ID") . "#RS_RESULT_ID#\n" . GetMessage("FORM_USER") . "[#RS_USER_ID#] #RS_USER_NAME# #RS_USER_AUTH#\n" . GetMessage("FORM_STAT_GUEST_ID") . "#RS_STAT_GUEST_ID#\n" . GetMessage("FORM_STAT_SESSION_ID") . "#RS_STAT_SESSION_ID#\n\n\n{$strFIELDS}\n" . GetMessage("FORM_VIEW") . "\nhttp://#SERVER_NAME#/bitrix/admin/form_result_view.php?lang=" . $arrSiteLang[$sid] . "&WEB_FORM_ID=#RS_FORM_ID#&RESULT_ID=#RS_RESULT_ID#\n\n-------------------------------------------------------\n" . GetMessage("FORM_GENERATED_AUTOMATICALLY") . "\n\t\t\t\t\t\t";
                     // добавл¤ем новый шаблон
                     $arFields = array("ACTIVE" => "Y", "EVENT_NAME" => $MAIL_EVENT_TYPE, "LID" => $sid, "EMAIL_FROM" => "#DEFAULT_EMAIL_FROM#", "EMAIL_TO" => "#DEFAULT_EMAIL_FROM#", "SUBJECT" => $SUBJECT, "MESSAGE" => $MESSAGE, "BODY_TYPE" => "text");
                     $TEMPLATE_ID = $em->Add($arFields);
                     if ($bReturnFullInfo) {
                         $arrReturn[] = array('ID' => $TEMPLATE_ID, 'FIELDS' => $arFields);
                     } else {
                         $arrReturn[] = $TEMPLATE_ID;
                     }
                 }
             }
         }
         $MESS = $OLD_MESS;
     }
     return $arrReturn;
 }
开发者ID:k-kalashnikov,项目名称:geekcon_new,代码行数:85,代码来源:form_callform.php

示例5: deleteMailEvType

 protected function deleteMailEvType()
 {
     $et = \Bitrix\Main\Config\Option::get($this->MODULE_ID, "mail_event_name");
     CEventType::Delete($et);
     return true;
 }
开发者ID:dimabresky,项目名称:bitrix-Erip-module,代码行数:6,代码来源:index.php

示例6: array

     $db_res = CEventType::GetListEx(array(), array("EVENT_NAME" => $_POST["EVENT_NAME"]), array("type" => "full"));
     if (!$db_res || !($res = $db_res->Fetch())) {
         $res["EVENT_NAME"] = $_POST["EVENT_NAME"];
     }
 }
 foreach ($arParams["LANGUAGE"] as $idLang => $arLang) {
     $arType = array("ID" => $_POST["FIELDS"][$idLang]["ID"], "SORT" => $_POST["FIELDS"][$idLang]["SORT"], "NAME" => $_POST["FIELDS"][$idLang]["NAME"], "DESCRIPTION" => $_POST["FIELDS"][$idLang]["DESCRIPTION"], "LID" => $idLang, "EVENT_NAME" => $res["EVENT_NAME"]);
     if (CAdminList::IsUpdated($idLang) && $_REQUEST[$idLang] == "Y") {
         if (intval($arType["ID"]) > 0 && !CEventType::Update(array("ID" => $arType["ID"]), $arType) || intval($arType["ID"]) <= 0 && !CEventType::Add($arType)) {
             $bVarsFromForm = true;
         }
     }
     if ($_REQUEST[$idLang] != "Y") {
         unset($arLangs[$idLang]);
         if (intval($arType["ID"]) > 0) {
             if (!CEventType::Delete(array("ID" => $arType["ID"]))) {
                 $bVarsFromForm = true;
             }
         }
     }
     if ($bVarsFromForm) {
         break;
     }
 }
 if (empty($arLangs)) {
     $arMsg = array();
     if ($res["EVENT_NAME"] == '') {
         $arMsg[] = array("id" => "EVENT_NAME_EMPTY", "text" => GetMessage("EVENT_NAME_EMPTY"));
     }
     $arMsg[] = array("id" => "LID_EMPTY", "text" => GetMessage("ERROR_LANG_EMPTY"));
     $e = new CAdminException($arMsg);
开发者ID:Satariall,项目名称:izurit,代码行数:31,代码来源:type_edit.php

示例7: switch

        }
        switch ($_REQUEST['action']) {
            case "delete":
            case "clean":
                $DB->StartTransaction();
                $ID = array("EVENT_NAME" => $ID);
                $db_res = CEventMessage::GetList($by, $order, $ID);
                if ($db_res && ($res = $db_res->Fetch())) {
                    do {
                        if (!CEventMessage::Delete($res["ID"])) {
                            $error = true;
                            break;
                        }
                    } while ($res = $db_res->Fetch());
                }
                if ($error || !CEventType::Delete($ID)) {
                    $DB->Rollback();
                    $lAdmin->AddGroupError(GetMessage("DELETE_ERROR"), $ID);
                } else {
                    $DB->Commit();
                }
                break;
        }
    }
}
$arLID = array();
$db_res = CLanguage::GetList($by_ = "sort", $order_ = "asc");
if ($db_res && ($res = $db_res->GetNext())) {
    do {
        $arLID[$res["LID"]] = $res["LID"];
    } while ($res = $db_res->GetNext());
开发者ID:Satariall,项目名称:izurit,代码行数:31,代码来源:type_admin.php

示例8: SetMailTemplate

	public static function SetMailTemplate($WEB_FORM_ID, $STATUS_ID, $ADD_NEW_TEMPLATE="Y", $old_SID="", $bReturnFullInfo = false)
	{
		global $DB, $MESS, $strError;
		$err_mess = (CAllForm::err_mess())."<br>Function: SetMailTemplate<br>Line: ";
		$arrReturn = array();
		$WEB_FORM_ID = intval($WEB_FORM_ID);
		$q = CForm::GetByID($WEB_FORM_ID);
		if ($arrForm = $q->Fetch())
		{
			$dbRes = CFormStatus::GetByID($STATUS_ID);
			if ($arrStatus = $dbRes->Fetch())
			{
				$MAIL_EVENT_TYPE = "FORM_STATUS_CHANGE_".$arrForm["SID"]."_".$arrStatus['ID'];
				if (strlen($old_SID)>0)
					$old_MAIL_EVENT_TYPE = "FORM_STATUS_CHANGE_".$old_SID."_".$arrStatus['ID'];

				$et = new CEventType;
				$em = new CEventMessage;

				if (strlen($MAIL_EVENT_TYPE)>0)
					$et->Delete($MAIL_EVENT_TYPE);

				$z = CLanguage::GetList($v1, $v2);
				$OLD_MESS = $MESS;
				$MESS = array();
				while ($arLang = $z->Fetch())
				{
					IncludeModuleLangFile($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/form/admin/form_status_mail.php", $arLang["LID"]);

					$str = "";
					$str .= "#EMAIL_TO# - ".GetMessage("FORM_L_EMAIL_TO")."\n";
					$str .= "#RS_FORM_ID# - ".GetMessage("FORM_L_FORM_ID")."\n";
					$str .= "#RS_FORM_NAME# - ".GetMessage("FORM_L_NAME")."\n";
					$str .= "#RS_FORM_SID# - ".GetMessage("FORM_L_SID")."\n";
					$str .= "#RS_RESULT_ID# - ".GetMessage("FORM_L_RESULT_ID")."\n";
					$str .= "#RS_DATE_CREATE# - ".GetMessage("FORM_L_DATE_CREATE")."\n";
					$str .= "#RS_USER_ID# - ".GetMessage("FORM_L_USER_ID")."\n";
					$str .= "#RS_USER_EMAIL# - ".GetMessage("FORM_L_USER_EMAIL")."\n";
					$str .= "#RS_USER_NAME# - ".GetMessage("FORM_L_USER_NAME")."\n";
					$str .= "#RS_STATUS_ID# - ".GetMessage("FORM_L_STATUS_ID")."\n";
					$str .= "#RS_STATUS_NAME# - ".GetMessage("FORM_L_STATUS_NAME")."\n";

					$et->Add(
							Array(
							"LID"			=> $arLang["LID"],
							"EVENT_NAME"	=> $MAIL_EVENT_TYPE,
							"NAME"			=> str_replace(array('#FORM_SID#', '#STATUS_NAME#'), array($arrForm['SID'], $arrStatus['TITLE']), GetMessage("FORM_CHANGE_STATUS")),
							"DESCRIPTION"	=> $str
							)
						);
				}
				// create new event type for old templates
				if (strlen($old_MAIL_EVENT_TYPE)>0 && $old_MAIL_EVENT_TYPE!=$MAIL_EVENT_TYPE)
				{
					$e = $em->GetList($by="id",$order="desc",array("EVENT_NAME"=>$old_MAIL_EVENT_TYPE));
					while ($er=$e->Fetch())
					{
						$em->Update($er["ID"],array("EVENT_NAME"=>$MAIL_EVENT_TYPE));
					}
					if (strlen($old_MAIL_EVENT_TYPE)>0)
						$et->Delete($old_MAIL_EVENT_TYPE);
				}

				if ($ADD_NEW_TEMPLATE=="Y")
				{
					$z = CSite::GetList($v1, $v2);
					while ($arSite = $z->Fetch()) $arrSiteLang[$arSite["ID"]] = $arSite["LANGUAGE_ID"];

					$arrFormSite = CForm::GetSiteArray($WEB_FORM_ID);
					if (is_array($arrFormSite) && count($arrFormSite)>0)
					{
						foreach($arrFormSite as $sid)
						{
							IncludeModuleLangFile($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/form/admin/form_status_mail.php", $arrSiteLang[$sid]);

							$SUBJECT = GetMessage("FORM_CHANGE_STATUS_S");
							$MESSAGE = GetMessage("FORM_CHANGE_STATUS_B");

							// добавляем новый шаблон
							$arFields = Array(
								"ACTIVE"		=> "Y",
								"EVENT_NAME"	=> $MAIL_EVENT_TYPE,
								"LID"			=> $sid,
								"EMAIL_FROM"	=> "#DEFAULT_EMAIL_FROM#",
								"EMAIL_TO"		=> "#EMAIL_TO#",
								"SUBJECT"		=> $SUBJECT,
								"MESSAGE"		=> $MESSAGE,
								"BODY_TYPE"		=> "text"
								);
							//echo '<pre>'; print_r($arFields); echo '</pre>';
							$TEMPLATE_ID = $em->Add($arFields);
							if ($bReturnFullInfo)
								$arrReturn[] = array(
									'ID' => $TEMPLATE_ID,
									'FIELDS' => $arFields,
								);
							else
								$arrReturn[] = $TEMPLATE_ID;

						}
//.........这里部分代码省略.........
开发者ID:ASDAFF,项目名称:bxApiDocs,代码行数:101,代码来源:form_callformstatus.php

示例9: in

<?php

/*
$DB->Query("DELETE FROM b_event_type WHERE EVENT_NAME in (
	'TICKET_NEW_FOR_AUTHOR', 
	'TICKET_NEW_FOR_TECHSUPPORT',
	'TICKET_CHANGE_FOR_TECHSUPPORT', 
	'TICKET_CHANGE_BY_AUTHOR_FOR_AUTHOR', 
	'TICKET_CHANGE_BY_SUPPORT_FOR_AUTHOR',
	'TICKET_OVERDUE_REMINDER'
	)");

$DB->Query("DELETE FROM b_event_message WHERE EVENT_NAME in (
	'TICKET_NEW_FOR_AUTHOR', 
	'TICKET_NEW_FOR_TECHSUPPORT',
	'TICKET_CHANGE_FOR_TECHSUPPORT', 
	'TICKET_CHANGE_BY_AUTHOR_FOR_AUTHOR', 
	'TICKET_CHANGE_BY_SUPPORT_FOR_AUTHOR',
	'TICKET_OVERDUE_REMINDER'
	)");
*/
$arEventNames = array('TICKET_NEW_FOR_AUTHOR', 'TICKET_NEW_FOR_TECHSUPPORT', 'TICKET_CHANGE_FOR_TECHSUPPORT', 'TICKET_CHANGE_BY_AUTHOR_FOR_AUTHOR', 'TICKET_CHANGE_BY_SUPPORT_FOR_AUTHOR', 'TICKET_OVERDUE_REMINDER', 'TICKET_GENERATE_SUPERCOUPON');
$rs = CEventMessage::GetList($v1, $v2, array('EVENT_NAME' => implode('|', $arEventNames)));
while ($arEventMessage = $rs->Fetch()) {
    CEventMessage::Delete($arEventMessage['ID']);
}
foreach ($arEventNames as $e) {
    CEventType::Delete($e);
}
开发者ID:Satariall,项目名称:izurit,代码行数:29,代码来源:del_events.php

示例10: UnInstallEvents

 function UnInstallEvents()
 {
     //Comment
     $EM = new CEventMessage();
     $oEventMessgae = $EM->GetList($by = "", $order = "", array("EVENT_NAME" => "ADD_IDEA_COMMENT"));
     while ($arEvent = $oEventMessgae->Fetch()) {
         $EM->Delete($arEvent["ID"]);
     }
     $ET = new CEventType();
     $ET->Delete("ADD_IDEA_COMMENT");
     //Idea
     $oEventMessgae = $EM->GetList($by = "", $order = "", array("EVENT_NAME" => "ADD_IDEA"));
     while ($arEvent = $oEventMessgae->Fetch()) {
         $EM->Delete($arEvent["ID"]);
     }
     $ET->Delete("ADD_IDEA");
     return true;
 }
开发者ID:webgksupport,项目名称:alpina,代码行数:18,代码来源:index.php

示例11: DeleteTypeMailEvent

 function DeleteTypeMailEvent()
 {
     $et = new CEventType();
     $et->Delete("STALL_EMAIL");
 }
开发者ID:anmaslov,项目名称:stall,代码行数:5,代码来源:index.php

示例12: UnInstallEvents

 function UnInstallEvents()
 {
     $dbEvent = CEventMessage::GetList($by, $order, array("EVENT_NAME" => "LDAP_USER_CONFIRM"));
     while ($arEvent = $dbEvent->Fetch()) {
         CEventMessage::Delete($arEvent["ID"]);
     }
     $eventType = new CEventType();
     $eventType->Delete("LDAP_USER_CONFIRM");
     return true;
 }
开发者ID:Satariall,项目名称:izurit,代码行数:10,代码来源:index.php

示例13: UnInstallEvents

 public function UnInstallEvents()
 {
     $et = new CEventType();
     $et->Delete('SPM_CMIOS_NEW_ORDER');
     $res = CEventMessage::GetList($by = 'id', $order = 'asc', array('TYPE_ID' => 'SPM_CMIOS_NEW_ORDER'));
     while ($row = $res->GetNext()) {
         $em = new CEventMessage();
         $em->Delete($row['ID']);
     }
     return true;
 }
开发者ID:ASDAFF,项目名称:bitrix-casco,代码行数:11,代码来源:index.php


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