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


PHP CEventType类代码示例

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


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

示例1: installEvents

 /**
  * Creates events for sending e-mail.
  * @return bool
  */
 public static function installEvents()
 {
     $dbEvent = \CEventMessage::GetList($b = "ID", $order = "ASC", array("EVENT_NAME" => "SALE_EBAY_ERROR"));
     if (!$dbEvent->Fetch()) {
         $langs = \CLanguage::GetList($b = "", $o = "");
         while ($lang = $langs->Fetch()) {
             $lid = $lang["LID"];
             $obEventType = new \CEventType();
             $obEventType->Add(array("EVENT_NAME" => "SALE_EBAY_ERROR", "NAME" => Loc::getMessage("SALE_EBAY_HLP_EVNT_TYPE_ERROR"), "LID" => $lid, "DESCRIPTION" => "\n\t\t\t\t\t#ERROR_TYPE# - " . Loc::getMessage("SALE_EBAY_HLP_EVNT_TYPE_ERROR_TYPE") . "\n\t\t\t\t\t#ERROR_DETAILS# - " . Loc::getMessage("SALE_EBAY_HLP_EVNT_TYPE_ERROR_DETAIL") . "\n\t\t\t\t\t#EMAIL_FROM# - " . Loc::getMessage("SALE_EBAY_HLP_EVNT_TYPE_FROM") . "\n\t\t\t\t\t#EMAIL_TO# - " . Loc::getMessage("SALE_EBAY_HLP_EVNT_TYPE_TO") . "\n\t\t\t\t\t#BCC# - " . Loc::getMessage("SALE_EBAY_HLP_EVNT_TYPE_BCC")));
             $arSites = array();
             $sites = \CSite::GetList($b = "", $o = "", array("LANGUAGE_ID" => $lid));
             while ($site = $sites->Fetch()) {
                 $arSites[] = $site["LID"];
             }
             if (count($arSites) > 0) {
                 $arr = array();
                 $arr["ACTIVE"] = "Y";
                 $arr["EVENT_NAME"] = "SALE_EBAY_ERROR";
                 $arr["LID"] = $arSites;
                 $arr["EMAIL_FROM"] = "#DEFAULT_EMAIL_FROM#";
                 $arr["EMAIL_TO"] = "#EMAIL_TO#";
                 $arr["BCC"] = "#BCC#";
                 $arr["SUBJECT"] = "#SITE_NAME# " . Loc::getMessage("SALE_EBAY_EVNT_MSG_SBUJ']") . ".";
                 $arr["BODY_TYPE"] = "text";
                 $arr["MESSAGE"] = Loc::getMessage("SALE_EBAY_EVNT_MSG_INFO_SITE") . " #SITE_NAME#.\n\n" . Loc::getMessage("SALE_EBAY_EVNT_MSG") . ":\n\n" . "#ERROR_TYPE#\n\n" . "#ERROR_DETAILS#";
                 $obTemplate = new \CEventMessage();
                 $obTemplate->Add($arr);
             }
         }
     }
     return true;
 }
开发者ID:Satariall,项目名称:izurit,代码行数:36,代码来源:helper.php

示例2: InstallDB

		function InstallDB($arParams = array())
		{
			RegisterModuleDependences('main', 'OnBuildGlobalMenu', self::MODULE_ID, 'CIpdesignK', 'OnBuildGlobalMenu');
			$arsites = array();
			$rsSites = CSite::GetList($by="sort", $order="desc", false);
			while ($arSite = $rsSites->Fetch()){
				$arsites[] = $arSite['ID'];
			}
			$arFilter = array(
	    	"TYPE_ID" => "SENDWISHLIST",
	    );
			$rsET = CEventType::GetList($arFilter);
			$arET = $rsET->Fetch();
			if(empty($arET)){
				$et = new CEventType;
				$arMessageFields = array("USER_ID" => $UserProduct['USER']['ID'],
														 "USER_NAME" => $UserProduct['USER']["NAME"].' '.$UserProduct['USER']["LAST_NAME"],
														 "USER_EMAIL" => $UserProduct['USER']["EMAIL"],
														 "PRODUCTS_LIST" => $strListProduct);
				$DESCRIPTION = '#USER_ID# - '.GetMessage("IT_BASKET_SENDER_USER_ID");
				$DESCRIPTION .= '\n#USER_NAME# - '.GetMessage("IT_BASKET_SENDER_USER_NAME");
				$DESCRIPTION .= '\n#USER_EMAIL# - '.GetMessage("IT_BASKET_SENDER_USER_EMAIL");
				$DESCRIPTION .= '\n#PRODUCTS_LIST# - '.GetMessage("IT_BASKET_SENDER_PRODUCTS_LIST");
		    $sendType = $et->Add(array(
		        "LID"           => 'ru',
		        "EVENT_NAME"    => "SENDWISHLIST",
		        "NAME"          => GetMessage("IT_SENDER_TYPE_NAME"),
		        "DESCRIPTION"   => $DESCRIPTION
		        ));
			}else{
				$sendType = $arET['ID'];
			}
			$rsMess = CEventMessage::GetList($by="site_id", $order="desc", array('TYPE' => 'SENDWISHLIST'));
			$arMess = $rsMess->Fetch();
			if(empty($arMess)){
				$message = '';
				$message .= '<h2>'.GetMessage("IT_BASKET_SENDER_TEMPLATE_HELLO").',#USER_NAME#</h2>';
				$message .= '<p>'.GetMessage("IT_BASKET_SENDER_TEMPLATE_WHISHLIST").'</p>';
				$message .= '<hr />';
				$message .= '#PRODUCTS_LIST#';
				$arFields = array("ACTIVE" => 'Y',
												 "EVENT_NAME" => "SENDWISHLIST",
												 "LID" => $arsites,
												 "EMAIL_FROM" => "#DEFAULT_EMAIL_FROM#",
												 "EMAIL_TO" => "#USER_EMAIL#",
												 "BCC" => "",
												 "MESSAGE" => $message,
												 "BODY_TYPE" => "html",
												 "SUBJECT" => GetMessage("IT_SENDER_MESSAGE_SUBJECT"). " #SERVER_NAME# ",
											 );
				$emess = new CEventMessage;
				if($emess->Add($arFields)){

				}
			};
			RegisterModuleDependences("sale", "OnCondSaleActionsControlBuildList", self::MODULE_ID, "CSaleActionCtrlBasketMain", "GetControlDescr");
			RegisterModuleDependences("main", "OnBeforeProlog", "main", "", "", 110, '/modules/ipdesign.k1785/itdiscount.php');
			return true;
		}
开发者ID:Kulkow,项目名称:ipdesign.k1785,代码行数:59,代码来源:index.php

示例3: 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

示例4: addEventTypeIfNotExists

 /**
  * @param $eventName
  * @param $fields array(), key LID = language id
  * @return bool|int
  * @throws \Sprint\Migration\Exceptions\HelperException
  */
 public function addEventTypeIfNotExists($eventName, $fields)
 {
     $this->checkRequiredKeys(__METHOD__, $fields, array('LID'));
     /** @noinspection PhpDynamicAsStaticMethodCallInspection */
     $aItem = \CEventType::GetList(array('TYPE_ID' => $eventName, 'LID' => $fields['LID']))->Fetch();
     if ($aItem) {
         return $aItem['ID'];
     }
     $default = array("LID" => $fields['LID'], "EVENT_NAME" => 'event_name', "NAME" => 'NAME', "DESCRIPTION" => 'description');
     $fields = array_replace_recursive($default, $fields);
     $fields['EVENT_NAME'] = $eventName;
     $event = new \CEventType();
     $id = $event->Add($fields);
     if ($id) {
         return $id;
     }
     $this->throwException(__METHOD__, 'Event type %s not added', $eventName);
 }
开发者ID:andreyryabin,项目名称:sprint.migration,代码行数:24,代码来源:EventHelper.php

示例5: GetAdditionalFields

	function GetAdditionalFields($id = 0){
		$arFieldList = array(
			"ID" => "SEND_MAIL",
			"SIZE" => 5,
			"TYPE" => "SELECT",
			"CTYPE" => "SINGLE",
			"VALUES" => array()					
		);
		$curEventMessage = array();
		$arFilter = array(
			"ACTIVE" => "Y"	
		);
		if($id > 0){
			$arFilter["ID"] = $id;
		}
		//echo "<pre>";print_r($arFilter);echo "</pre>";
		$rsEmailTemplates = CEventMessage::GetList($by, $order, $arFilter);
		if($arEmailTemplate = $rsEmailTemplates->GetNext()){
			//echo "<pre>";print_r($arEmailTemplate);echo "</pre>";
			$arFieldList["VALUES"][] = array(
				"ID" => $arEmailTemplate["ID"],
				"NAME" => $arEmailTemplate["EVENT_TYPE"]
			);
			$curEventMessage = array(
				"ID" => $arEmailTemplate["ID"],
				"TYPE_ID" => $arEmailTemplate["EVENT_NAME"]
			);			
		}
		if($id > 0 && !empty($curEventMessage)){
			$rsEmailEventType = CEventType::GetList(
				array(
					"TYPE_ID" => $curEventMessage["TYPE_ID"],
			    	"LID"     => "ru"
				)
			);
			if($arEmailEventType = $rsEmailEventType->Fetch()){
				//echo "<pre>";print_r($arEmailEventType);echo "</pre>";
				preg_match_all('/#([A-Za-z_]+)#/iu', $arEmailEventType["DESCRIPTION"], $out);
				//echo "<pre>";print_r($out);echo "</pre>";die;
				if(!empty($out[0])){
					return implode(",",$out[0]);
				}				
			}else{
				return "";
			}
			//return ($arEmailEventType = $rsEmailEventType->Fetch() ? $arEmailEventType["DESCRIPTION"] : "");			
		}else{
			return "";
		}
	}
开发者ID:ASDAFF,项目名称:trigger-module,代码行数:50,代码来源:action_type_fields.php

示例6: GetMessage

<tr>
	<td><?php 
echo GetMessage("MAIN_F_EVENT_TYPE");
?>
</td>
	<td><input type="text" name="find_event_type" size="47" value="<?php 
echo htmlspecialcharsbx($find_event_type);
?>
"><?php 
echo ShowFilterLogicHelp();
?>
<br><?php 
$event_type_ref = array();
$event_type_ref_id = array();
$ref_en = array();
$rsType = CEventType::GetList(array("LID" => LANGUAGE_ID), array("name" => "asc"));
while ($arType = $rsType->Fetch()) {
    $event_type_ref[] = $arType["NAME"] . ($arType["NAME"] == '' ? '' : ' ') . "[" . $arType["EVENT_NAME"] . "]";
    $event_type_ref_id[] = $arType["EVENT_NAME"];
}
$arr = array("REFERENCE" => $event_type_ref, "REFERENCE_ID" => $event_type_ref_id);
echo SelectBoxFromArray("find_type_id", $arr, htmlspecialcharsbx($find_type_id), GetMessage("MAIN_ALL"));
?>
</td>
</tr>
<tr>
	<td><?php 
echo GetMessage("MAIN_F_TIMESTAMP") . ":";
?>
</td>
	<td><?php 
开发者ID:k-kalashnikov,项目名称:geekcon_new,代码行数:31,代码来源:message_admin.php

示例7: InstallEvents

 function InstallEvents()
 {
     $arEventTypes = array();
     $langs = CLanguage::GetList($b = "", $o = "");
     while ($language = $langs->Fetch()) {
         $lid = $language["LID"];
         IncludeModuleLangFile(__FILE__, $lid);
         $arEventTypes[] = array("LID" => $lid, "EVENT_NAME" => "NEW_USER", "NAME" => GetMessage("MAIN_NEW_USER_TYPE_NAME"), "DESCRIPTION" => GetMessage("MAIN_NEW_USER_TYPE_DESC"), "SORT" => 1);
         $arEventTypes[] = array("LID" => $lid, "EVENT_NAME" => "USER_INFO", "NAME" => GetMessage("MAIN_USER_INFO_TYPE_NAME"), "DESCRIPTION" => GetMessage("MAIN_USER_INFO_TYPE_DESC"), "SORT" => 2);
         $arEventTypes[] = array("LID" => $lid, "EVENT_NAME" => "NEW_USER_CONFIRM", "NAME" => GetMessage("MAIN_NEW_USER_CONFIRM_TYPE_NAME"), "DESCRIPTION" => GetMessage("MAIN_NEW_USER_CONFIRM_TYPE_DESC"), "SORT" => 3);
         $arEventTypes[] = array("LID" => $lid, "EVENT_NAME" => "USER_PASS_REQUEST", "NAME" => GetMessage("MAIN_USER_PASS_REQUEST_TYPE_NAME"), "DESCRIPTION" => GetMessage("MAIN_USER_INFO_TYPE_DESC"), "SORT" => 4);
         $arEventTypes[] = array("LID" => $lid, "EVENT_NAME" => "USER_PASS_CHANGED", "NAME" => GetMessage("MAIN_USER_PASS_CHANGED_TYPE_NAME"), "DESCRIPTION" => GetMessage("MAIN_USER_INFO_TYPE_DESC"), "SORT" => 5);
         $arEventTypes[] = array("LID" => $lid, "EVENT_NAME" => "USER_INVITE", "NAME" => GetMessage("MAIN_USER_INVITE_TYPE_NAME"), "DESCRIPTION" => GetMessage("MAIN_USER_INVITE_TYPE_DESC"), "SORT" => 6);
         $arEventTypes[] = array("LID" => $lid, "EVENT_NAME" => "FEEDBACK_FORM", "NAME" => GetMessage("MF_EVENT_NAME"), "DESCRIPTION" => GetMessage("MF_EVENT_DESCRIPTION"), "SORT" => 7);
     }
     $type = new CEventType();
     foreach ($arEventTypes as $arEventType) {
         $type->Add($arEventType);
     }
     IncludeModuleLangFile(__FILE__);
     $arMessages = array();
     $arMessages[] = array("EVENT_NAME" => "NEW_USER", "LID" => "s1", "EMAIL_FROM" => "#DEFAULT_EMAIL_FROM#", "EMAIL_TO" => "#DEFAULT_EMAIL_FROM#", "SUBJECT" => GetMessage("MAIN_NEW_USER_EVENT_NAME"), "MESSAGE" => GetMessage("MAIN_NEW_USER_EVENT_DESC"));
     $arMessages[] = array("EVENT_NAME" => "USER_INFO", "LID" => "s1", "EMAIL_FROM" => "#DEFAULT_EMAIL_FROM#", "EMAIL_TO" => "#EMAIL#", "SUBJECT" => GetMessage("MAIN_USER_INFO_EVENT_NAME"), "MESSAGE" => GetMessage("MAIN_USER_INFO_EVENT_DESC"));
     $arMessages[] = array("EVENT_NAME" => "USER_PASS_REQUEST", "LID" => "s1", "EMAIL_FROM" => "#DEFAULT_EMAIL_FROM#", "EMAIL_TO" => "#EMAIL#", "SUBJECT" => GetMessage("MAIN_USER_PASS_REQUEST_EVENT_NAME"), "MESSAGE" => GetMessage("MAIN_USER_PASS_REQUEST_EVENT_DESC"));
     $arMessages[] = array("EVENT_NAME" => "USER_PASS_CHANGED", "LID" => "s1", "EMAIL_FROM" => "#DEFAULT_EMAIL_FROM#", "EMAIL_TO" => "#EMAIL#", "SUBJECT" => GetMessage("MAIN_USER_PASS_CHANGED_EVENT_NAME"), "MESSAGE" => GetMessage("MAIN_USER_PASS_CHANGED_EVENT_DESC"));
     $arMessages[] = array("EVENT_NAME" => "NEW_USER_CONFIRM", "LID" => "s1", "EMAIL_FROM" => "#DEFAULT_EMAIL_FROM#", "EMAIL_TO" => "#EMAIL#", "SUBJECT" => GetMessage("MAIN_NEW_USER_CONFIRM_EVENT_NAME"), "MESSAGE" => GetMessage("MAIN_NEW_USER_CONFIRM_EVENT_DESC"));
     $arMessages[] = array("EVENT_NAME" => "USER_INVITE", "LID" => "s1", "EMAIL_FROM" => "#DEFAULT_EMAIL_FROM#", "EMAIL_TO" => "#EMAIL#", "SUBJECT" => GetMessage("MAIN_USER_INVITE_EVENT_NAME"), "MESSAGE" => GetMessage("MAIN_USER_INVITE_EVENT_DESC"));
     $arMessages[] = array("EVENT_NAME" => "FEEDBACK_FORM", "LID" => "s1", "EMAIL_FROM" => "#DEFAULT_EMAIL_FROM#", "EMAIL_TO" => "#EMAIL_TO#", "SUBJECT" => GetMessage("MF_EVENT_SUBJECT"), "MESSAGE" => GetMessage("MF_EVENT_MESSAGE"));
     $message = new CEventMessage();
     foreach ($arMessages as $arMessage) {
         $message->Add($arMessage);
     }
     return true;
 }
开发者ID:ASDAFF,项目名称:bitrix-5,代码行数:34,代码来源:index.php

示例8: Fetch

 function Fetch()
 {
     $arr = array();
     $arr_lid = array();
     $arr_lids = array();
     if ($res = parent::Fetch()) {
         if ($this->type != "none") {
             $db_res_ = CEventType::GetList(array("EVENT_NAME" => $res["EVENT_NAME"]));
             if ($db_res_ && ($res_ = $db_res_->Fetch())) {
                 do {
                     $arr[$res_["ID"]] = $res_;
                     $arr_lid[] = $res_["LID"];
                     $arr_lids[$res_["LID"]] = $res_;
                 } while ($res_ = $db_res_->Fetch());
             }
             $res["ID"] = array_keys($arr);
             $res["LID"] = $arr_lid;
             $res["NAME"] = empty($arr_lids[$this->LID]["NAME"]) ? $arr_lids["en"]["NAME"] : $arr_lids[$this->LID]["NAME"];
             $res["SORT"] = empty($arr_lids[$this->LID]["SORT"]) ? $arr_lids["en"]["SORT"] : $arr_lids[$this->LID]["SORT"];
             $res["DESCRIPTION"] = empty($arr_lids[$this->LID]["DESCRIPTION"]) ? $arr_lids["en"]["DESCRIPTION"] : $arr_lids[$this->LID]["DESCRIPTION"];
             $res["TYPE"] = $arr;
             if ($this->type != "type") {
                 $arr = array();
                 $db_res_ = CEventMessage::GetList($sort = "sort", $by = "asc", array("EVENT_NAME" => $res["EVENT_NAME"]));
                 if ($db_res_ && ($res_ = $db_res_->Fetch())) {
                     do {
                         $arr[$res_["ID"]] = $res_;
                     } while ($res_ = $db_res_->Fetch());
                 }
                 $res["TEMPLATES"] = $arr;
             }
         }
     }
     return $res;
 }
开发者ID:ASDAFF,项目名称:bitrix-5,代码行数:35,代码来源:event.php

示例9: while

<?php

$langs = CLanguage::GetList($b = "", $o = "");
while ($lang = $langs->Fetch()) {
    $lid = $lang["LID"];
    IncludeModuleLangFile(__FILE__, $lid);
    $et = new CEventType();
    $et->Add(array("LID" => $lid, "EVENT_NAME" => "EXTRANET_WG_TO_ARCHIVE", "NAME" => GetMessage("EXTRANET_WG_TO_ARCHIVE_NAME"), "DESCRIPTION" => GetMessage("EXTRANET_WG_TO_ARCHIVE_DESC")));
    $et = new CEventType();
    $et->Add(array("LID" => $lid, "EVENT_NAME" => "EXTRANET_WG_FROM_ARCHIVE", "NAME" => GetMessage("EXTRANET_WG_FROM_ARCHIVE_NAME"), "DESCRIPTION" => GetMessage("EXTRANET_WG_FROM_ARCHIVE_DESC")));
    $et = new CEventType();
    $et->Add(array("LID" => $lid, "EVENT_NAME" => "EXTRANET_INVITATION", "NAME" => GetMessage("EXTRANET_INVITATION_NAME"), "DESCRIPTION" => GetMessage("EXTRANET_INVITATION_DESC")));
    $arSites = array();
    $sites = CSite::GetList($b = "", $o = "", array("LANGUAGE_ID" => $lid));
    while ($site = $sites->Fetch()) {
        $arSites[] = $site["LID"];
    }
    if (count($arSites) > 0) {
        $emess = new CEventMessage();
        $emess->Add(array("ACTIVE" => "Y", "EVENT_NAME" => "EXTRANET_WG_TO_ARCHIVE", "LID" => $arSites, "EMAIL_FROM" => "#DEFAULT_EMAIL_FROM#", "EMAIL_TO" => "#MEMBER_EMAIL#", "BCC" => "", "SUBJECT" => GetMessage("EXTRANET_WG_TO_ARCHIVE_SUBJECT"), "MESSAGE" => GetMessage("EXTRANET_WG_TO_ARCHIVE_MESSAGE"), "BODY_TYPE" => "text"));
        $emess = new CEventMessage();
        $emess->Add(array("ACTIVE" => "Y", "EVENT_NAME" => "EXTRANET_WG_FROM_ARCHIVE", "LID" => $arSites, "EMAIL_FROM" => "#DEFAULT_EMAIL_FROM#", "EMAIL_TO" => "#MEMBER_EMAIL#", "BCC" => "", "SUBJECT" => GetMessage("EXTRANET_WG_FROM_ARCHIVE_SUBJECT"), "MESSAGE" => GetMessage("EXTRANET_WG_FROM_ARCHIVE_MESSAGE"), "BODY_TYPE" => "text"));
        $emess = new CEventMessage();
        $emess->Add(array("ACTIVE" => "Y", "EVENT_NAME" => "EXTRANET_INVITATION", "LID" => $arSites, "EMAIL_FROM" => "#DEFAULT_EMAIL_FROM#", "EMAIL_TO" => "#EMAIL#", "BCC" => "", "SUBJECT" => GetMessage("EXTRANET_INVITATION_SUBJECT"), "MESSAGE" => GetMessage("EXTRANET_INVITATION_MESSAGE"), "BODY_TYPE" => "text"));
    }
}
开发者ID:mrdeadmouse,项目名称:u136006,代码行数:26,代码来源:set_events.php

示例10: array

                } 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());
}
$lAdmin->AddHeaders(array(array("id" => "ID", "content" => "ID", "default" => true), array("id" => "LID", "content" => GetMessage("LANG"), "default" => true), array("id" => "EVENT_NAME", "content" => GetMessage("EVENT_TYPE"), "sort" => "event_name", "default" => true), array("id" => "NAME", "content" => GetMessage("EVENT_NAME"), "default" => true), array("id" => "DESCRIPTION", "content" => GetMessage("EVENT_DESCRIPTION"), "default" => false), array("id" => "TEMPLATES", "content" => GetMessage("EVENT_TEMPLATES"), "default" => false)));
$db_res = CEventType::GetListEx(array($by => $order), $arFilter, array("type" => "full"));
if ($db_res && ($res = $db_res->Fetch())) {
    do {
        $arResult[] = $res;
    } while ($res = $db_res->Fetch());
}
$rsData = new CDBResult();
$rsData->InitFromArray($arResult);
$rsData = new CAdminResult($rsData, $sTableID);
$rsData->NavStart();
$lAdmin->NavText($rsData->GetNavPrint(GetMessage("PAGES")));
while ($arRes = $rsData->NavNext(true, "f_")) {
    $arr = $f_ID;
    $f_ID = $f_EVENT_NAME;
    $row =& $lAdmin->AddRow($f_EVENT_NAME, $arRes, "type_edit.php?EVENT_NAME=" . $f_EVENT_NAME, GetMessage("type_admin_edit_title"));
    $row->AddViewField("ID", implode("<br />", $arr));
开发者ID:Satariall,项目名称:izurit,代码行数:31,代码来源:type_admin.php

示例11: while

<?php

$langs = CLanguage::GetList($b = "", $o = "");
while ($lang = $langs->Fetch()) {
    $lid = $lang["LID"];
    IncludeModuleLangFile(__FILE__, $lid);
    $et = new CEventType();
    $et->Add(array("LID" => $lid, "EVENT_NAME" => "VIRUS_DETECTED", "NAME" => GetMessage("VIRUS_DETECTED_NAME"), "DESCRIPTION" => GetMessage("VIRUS_DETECTED_DESC")));
    $arSites = array();
    $sites = CSite::GetList($b = "", $o = "", array("LANGUAGE_ID" => $lid));
    while ($site = $sites->Fetch()) {
        $arSites[] = $site["LID"];
    }
    if (count($arSites) > 0) {
        $emess = new CEventMessage();
        $emess->Add(array("ACTIVE" => "Y", "EVENT_NAME" => "VIRUS_DETECTED", "LID" => $arSites, "EMAIL_FROM" => "#DEFAULT_EMAIL_FROM#", "EMAIL_TO" => "#EMAIL#", "BCC" => "", "SUBJECT" => GetMessage("VIRUS_DETECTED_SUBJECT"), "MESSAGE" => GetMessage("VIRUS_DETECTED_MESSAGE"), "BODY_TYPE" => "text"));
    }
}
开发者ID:Satariall,项目名称:izurit,代码行数:18,代码来源:events.php

示例12: while

<?php

$langs = CLanguage::GetList($b = "", $o = "");
while ($lang = $langs->Fetch()) {
    $lid = $lang["LID"];
    IncludeModuleLangFile(__FILE__, $lid);
    $arSites = array();
    $sites = CSite::GetList($b = "", $o = "", array("LANGUAGE_ID" => $lid));
    while ($site = $sites->Fetch()) {
        $arSites[] = $site["LID"];
    }
    $et = new CEventType();
    $et->Add(array("LID" => $lid, "EVENT_NAME" => "CALENDAR_INVITATION", "NAME" => GetMessage("CALENDAR_INVITATION_NAME"), "DESCRIPTION" => GetMessage("CALENDAR_INVITATION_DESC")));
    if (count($arSites) > 0) {
        $emess = new CEventMessage();
        $emess->Add(array("ACTIVE" => "Y", "EVENT_NAME" => "CALENDAR_INVITATION", "LID" => $arSites, "EMAIL_FROM" => "#DEFAULT_EMAIL_FROM#", "EMAIL_TO" => "#EMAIL_TO#", "BCC" => "", "SUBJECT" => "#TITLE#", "MESSAGE" => "#MESSAGE#" . GetMessage('CALENDAR_INVITATION_AUTO_GENERATED'), "BODY_TYPE" => "text"));
    }
}
开发者ID:Satariall,项目名称:izurit,代码行数:18,代码来源:events.php

示例13: CreatTypeMailEvent

	function CreatTypeMailEvent()
	{
		$oEventType = new CEventType();
		$oEventType->Add( array(
				"LID" => SITE_ID,
				"EVENT_NAME" => "ADD_MAILBOX_PDD",
				"NAME" => GetMessage("PDD_NAME_TYPE_MAIL_EVENT"),
				"DESCRIPTION"   => "#LOGIN_PDD# - ".GetMessage("PDD_LOGIN_PDD")."
							        #DOMAIN_PDD# - ".GetMessage("DOMAIN_PDD")."
							        #PASSWORD_PDD# - ".GetMessage("PASSWORD_PDD")."
							        #LINK_PDD# - ".GetMessage("LINK_PDD")."
									#EMAIL# - ".GetMessage("EMAIL")."
							        "
		) );
	}
开发者ID:ASDAFF,项目名称:bitrix-yandex-pdd,代码行数:15,代码来源:index.php

示例14: UET

function UET($EVENT_NAME, $NAME, $LID, $DESCRIPTION)
{
    $et = new CEventType();
    $et->Add(array("LID" => $LID, "EVENT_NAME" => $EVENT_NAME, "NAME" => $NAME, "DESCRIPTION" => $DESCRIPTION));
}
开发者ID:Satariall,项目名称:izurit,代码行数:5,代码来源:events.php

示例15: GetMessage

 $et->Add(array("LID" => $lid, "EVENT_NAME" => "NEW_BLOG_MESSAGE", "NAME" => GetMessage("NEW_BLOG_MESSAGE_NAME"), "DESCRIPTION" => GetMessage("NEW_BLOG_MESSAGE_DESC")));
 $et = new CEventType();
 $et->Add(array("LID" => $lid, "EVENT_NAME" => "NEW_BLOG_COMMENT", "NAME" => GetMessage("NEW_BLOG_COMMENT_NAME"), "DESCRIPTION" => GetMessage("NEW_BLOG_COMMENT_DESC")));
 $et = new CEventType();
 $et->Add(array("LID" => $lid, "EVENT_NAME" => "NEW_BLOG_COMMENT2COMMENT", "NAME" => GetMessage("NEW_BLOG_COMMENT2COMMENT_NAME"), "DESCRIPTION" => GetMessage("NEW_BLOG_COMMENT2COMMENT_DESC")));
 $et = new CEventType();
 $et->Add(array("LID" => $lid, "EVENT_NAME" => "NEW_BLOG_COMMENT_WITHOUT_TITLE", "NAME" => GetMessage("NEW_BLOG_COMMENT_WITHOUT_TITLE_NAME"), "DESCRIPTION" => GetMessage("NEW_BLOG_COMMENT_WITHOUT_TITLE_DESC")));
 $et = new CEventType();
 $et->Add(array("LID" => $lid, "EVENT_NAME" => "NEW_BLOG_COMMENT2COMMENT_WITHOUT_TITLE", "NAME" => GetMessage("NEW_BLOG_COMMENT2COMMENT_WITHOUT_TITLE_NAME"), "DESCRIPTION" => GetMessage("NEW_BLOG_COMMENT2COMMENT_WITHOUT_TITLE_DESC")));
 $et = new CEventType();
 $et->Add(array("LID" => $lid, "EVENT_NAME" => "BLOG_YOUR_BLOG_TO_USER", "NAME" => GetMessage("BLOG_YOUR_BLOG_TO_USER_NAME"), "DESCRIPTION" => GetMessage("BLOG_YOUR_BLOG_TO_USER_DESC")));
 $et = new CEventType();
 $et->Add(array("LID" => $lid, "EVENT_NAME" => "BLOG_YOU_TO_BLOG", "NAME" => GetMessage("BLOG_YOU_TO_BLOG_NAME"), "DESCRIPTION" => GetMessage("BLOG_YOU_TO_BLOG_DESC")));
 $et = new CEventType();
 $et->Add(array("LID" => $lid, "EVENT_NAME" => "BLOG_BLOG_TO_YOU", "NAME" => GetMessage("BLOG_BLOG_TO_YOU_NAME"), "DESCRIPTION" => GetMessage("BLOG_BLOG_TO_YOU_DESC")));
 $et = new CEventType();
 $et->Add(array("LID" => $lid, "EVENT_NAME" => "BLOG_USER_TO_YOUR_BLOG", "NAME" => GetMessage("BLOG_USER_TO_YOUR_BLOG_NAME"), "DESCRIPTION" => GetMessage("BLOG_USER_TO_YOUR_BLOG_DESC")));
 $arSites = array();
 $sites = CSite::GetList($b = "", $o = "", array("LANGUAGE_ID" => $lid));
 while ($site = $sites->Fetch()) {
     $arSites[] = $site["LID"];
 }
 if (count($arSites) > 0) {
     $emess = new CEventMessage();
     $emess->Add(array("ACTIVE" => "Y", "EVENT_NAME" => "NEW_BLOG_MESSAGE", "LID" => $arSites, "EMAIL_FROM" => "#EMAIL_FROM#", "EMAIL_TO" => "#EMAIL_TO#", "SUBJECT" => GetMessage("NEW_BLOG_MESSAGE_SUBJECT"), "MESSAGE" => GetMessage("NEW_BLOG_MESSAGE_MESSAGE"), "BODY_TYPE" => "text"));
     $emess = new CEventMessage();
     $emess->Add(array("ACTIVE" => "Y", "EVENT_NAME" => "NEW_BLOG_COMMENT", "LID" => $arSites, "EMAIL_FROM" => "#EMAIL_FROM#", "EMAIL_TO" => "#EMAIL_TO#", "SUBJECT" => GetMessage("NEW_BLOG_COMMENT_SUBJECT"), "MESSAGE" => GetMessage("NEW_BLOG_COMMENT_MESSAGE"), "BODY_TYPE" => "text"));
     $emess = new CEventMessage();
     $emess->Add(array("ACTIVE" => "Y", "EVENT_NAME" => "NEW_BLOG_COMMENT2COMMENT", "LID" => $arSites, "EMAIL_FROM" => "#EMAIL_FROM#", "EMAIL_TO" => "#EMAIL_TO#", "SUBJECT" => GetMessage("NEW_BLOG_COMMENT2COMMENT_SUBJECT"), "MESSAGE" => GetMessage("NEW_BLOG_COMMENT2COMMENT_MESSAGE"), "BODY_TYPE" => "text"));
     $emess = new CEventMessage();
     $emess->Add(array("ACTIVE" => "Y", "EVENT_NAME" => "NEW_BLOG_COMMENT_WITHOUT_TITLE", "LID" => $arSites, "EMAIL_FROM" => "#EMAIL_FROM#", "EMAIL_TO" => "#EMAIL_TO#", "SUBJECT" => GetMessage("NEW_BLOG_COMMENT_WITHOUT_TITLE_SUBJECT"), "MESSAGE" => GetMessage("NEW_BLOG_COMMENT_WITHOUT_TITLE_MESSAGE"), "BODY_TYPE" => "text"));
开发者ID:Satariall,项目名称:izurit,代码行数:31,代码来源:set_events.php


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