• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP CEventType类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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


示例16: array

<?php

/*
 * This file is part of the Studio Fact package.
 *
 * (c) Kulichkin Denis (onEXHovia) <[email protected]>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */
if (!defined('B_PROLOG_INCLUDED') || B_PROLOG_INCLUDED !== true) {
    die;
}
use Bitrix\Main\Localization\Loc;
Loc::loadMessages(__FILE__);
$eventTypeList = array();
$eventType = CEventType::GetList(array('LID' => SITE_ID));
while ($item = $eventType->GetNext()) {
    $eventTypeList[$item['EVENT_NAME']] = sprintf('[%s] %s', $item['EVENT_NAME'], $item['NAME']);
}
$eventTemplateList = array();
if (strlen($arCurrentValues['EVENT_NAME']) > 0) {
    $eventTemplate = CEventMessage::GetList($o = '', $b = '', array('EVENT_NAME' => $arCurrentValues['EVENT_NAME']));
    while ($item = $eventTemplate->GetNext()) {
        $eventTemplateList[$item['ID']] = sprintf('[%d] %s', $item['ID'], $item['SUBJECT']);
    }
}
$arComponentParameters = array('PARAMETERS' => array('ID' => array('PARENT' => 'BASE', 'NAME' => Loc::getMessage('ID'), 'TYPE' => 'STRING'), 'TYPE' => array('PARENT' => 'BASE', 'NAME' => Loc::getMessage('TYPE'), 'TYPE' => 'LIST', 'VALUES' => array('IBLOCK' => Loc::getMessage('TYPE_IBLOCK'), 'HLBLOCK' => Loc::getMessage('TYPE_HLBLOCK'), 'CUSTOM' => Loc::getMessage('TYPE_CUSTOM'))), 'ALIAS_FIELDS' => array('NAME' => Loc::getMessage('ALIAS_FIELDS'), 'TYPE' => 'CUSTOM', 'ADDITIONAL_VALUES' => 'Y', 'MULTIPLE' => 'Y', 'VALUES' => array()), 'DISPLAY_FIELDS' => array('NAME' => Loc::getMessage('DISPLAY_FIELDS'), 'TYPE' => 'STRING', 'ADDITIONAL_VALUES' => 'Y', 'MULTIPLE' => 'Y', 'VALUES' => array()), 'ATTACH_FIELDS' => array('NAME' => Loc::getMessage('ATTACH_FIELDS'), 'TYPE' => 'STRING', 'ADDITIONAL_VALUES' => 'Y', 'MULTIPLE' => 'Y', 'VALUES' => array()), 'EVENT_NAME' => array('NAME' => Loc::getMessage('EVENT_NAME'), 'TYPE' => 'LIST', 'ADDITIONAL_VALUES' => 'Y', 'VALUES' => $eventTypeList, 'REFRESH' => 'Y', 'DEFAULT' => ''), 'EVENT_TEMPLATE' => array('NAME' => Loc::getMessage('EVENT_TEMPLATE'), 'TYPE' => 'LIST', 'VALUES' => $eventTemplateList, 'ADDITIONAL_VALUES' => 'Y', 'DEFAULT' => ''), 'EVENT_TYPE' => array('NAME' => Loc::getMessage('EVENT_TYPE'), 'TYPE' => 'STRING', 'DEFAULT' => ''), 'BUILDER' => array('NAME' => Loc::getMessage('BUILDER'), 'TYPE' => 'STRING', 'DEFAULT' => ''), 'STORAGE' => array('NAME' => Loc::getMessage('STORAGE'), 'TYPE' => 'STRING', 'DEFAULT' => ''), 'VALIDATOR' => array('NAME' => Loc::getMessage('VALIDATOR'), 'TYPE' => 'STRING', 'DEFAULT' => ''), 'AJAX' => array('NAME' => Loc::getMessage('AJAX'), 'TYPE' => 'CHECKBOX', 'DEFAULT' => ''), 'USE_CAPTCHA' => array('NAME' => Loc::getMessage('USE_CAPTCHA'), 'TYPE' => 'CHECKBOX', 'DEFAULT' => 'Y'), 'USE_CSRF' => array('NAME' => Loc::getMessage('USE_CSRF'), 'TYPE' => 'CHECKBOX', 'DEFAULT' => 'Y'), 'REDIRECT_PATH' => array('NAME' => Loc::getMessage('REDIRECT_PATH'), 'TYPE' => 'STRING', 'DEFAULT' => ''), 'CACHE_TIME' => array('DEFAULT' => 36000000), 'CACHE_GROUPS' => array('PARENT' => 'CACHE_SETTINGS', 'NAME' => Loc::getMessage('CACHE_GROUPS'), 'TYPE' => 'CHECKBOX', 'DEFAULT' => 'Y')));
开发者ID:ASDAFF,项目名称:citfact.form,代码行数:28,代码来源:.parameters.php


示例17: while

<?php

$langs = CLanguage::GetList($b = "", $o = "");
while ($lang = $langs->Fetch()) {
    $lid = $lang["LID"];
    IncludeModuleLangFile($_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/learning/install/events.php", $lid);
    $et = new CEventType();
    $et->Add(array("LID" => $lid, "EVENT_NAME" => "NEW_LEARNING_TEXT_ANSWER", "NAME" => GetMessage("NEW_LEARNING_TEXT_ANSWER_NAME"), "DESCRIPTION" => GetMessage("NEW_LEARNING_TEXT_ANSWER_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_LEARNING_TEXT_ANSWER", "LID" => $arSites, "EMAIL_FROM" => "#EMAIL_FROM#", "EMAIL_TO" => "#EMAIL_TO#", "SUBJECT" => GetMessage("NEW_LEARNING_TEXT_ANSWER_SUBJECT"), "MESSAGE" => GetMessage("NEW_LEARNING_TEXT_ANSWER_MESSAGE"), "BODY_TYPE" => "text"));
    }
}
开发者ID:Satariall,项目名称:izurit,代码行数:18,代码来源:set_events.php


示例18: LocalRedirect

        $DB->Rollback();
    } else {
        $DB->Commit();
        if ($_POST["save"] != '') {
            LocalRedirect(BX_ROOT . "/admin/type_admin.php?lang=" . LANGUAGE_ID);
        } else {
            LocalRedirect(BX_ROOT . "/admin/type_edit.php?EVENT_NAME=" . $res["EVENT_NAME"] . "&lang=" . LANGUAGE_ID);
        }
    }
}
if ($bVarsFromForm && ($e = $APPLICATION->GetException())) {
    $message = new CAdminMessage(GetMessage("MAIN_ERROR_SAVING"), $e);
}
$arParams["EVENT_NAME"] = $_REQUEST["EVENT_NAME"];
if ($arParams["EVENT_NAME"] != '') {
    $db_res = CEventType::GetListEx(array(), array("EVENT_NAME" => $arParams["EVENT_NAME"]), array("type" => "full"));
    if ($db_res && ($res = $db_res->Fetch())) {
        $arParams["DATA"] = $res;
        if (is_array($res["TYPE"])) {
            foreach ($res["TYPE"] as $r) {
                $arParams["DATA"][$r["LID"]] = $r;
            }
        }
        $arParams["ACTION"] = "UPDATE";
        $arParams["DATA_OLD"] = $arParams["DATA"];
    }
}
$aTabs = array(array("DIV" => "edit1", "TAB" => GetMessage("EVENT_NAME_TITLE"), "ICON" => "mail", "TITLE" => GetMessage("EVENT_NAME_DESCR")));
if ($arParams["ACTION"] == "UPDATE") {
    $aTabs[] = array("DIV" => "edit2", "TAB" => GetMessage("TEMPLATES_TITLE"), "ICON" => "mail", "TITLE" => GetMessage("TEMPLATES_DESCR"));
}
开发者ID:Satariall,项目名称:izurit,代码行数:31,代码来源:type_edit.php


示例19: SetMailTemplate


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP CExtranet类代码示例发布时间:2022-05-23
下一篇:
PHP CEventMessage类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap