本文整理汇总了PHP中CBXFeatures类的典型用法代码示例。如果您正苦于以下问题:PHP CBXFeatures类的具体用法?PHP CBXFeatures怎么用?PHP CBXFeatures使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了CBXFeatures类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: Add
/** Add new store in table b_catalog_store,
* @static
* @param $arFields
* @return bool|int
*/
static function Add($arFields)
{
/** @global CDataBase $DB */
global $DB;
if (!CBXFeatures::IsFeatureEnabled('CatMultiStore')) {
$dbResultList = CCatalogStore::GetList(array());
if ($arResult = $dbResultList->Fetch()) {
$GLOBALS["APPLICATION"]->ThrowException(GetMessage("CS_ALREADY_HAVE_STORE"));
return false;
}
}
if (array_key_exists('DATE_CREATE', $arFields)) {
unset($arFields['DATE_CREATE']);
}
if (array_key_exists('DATE_MODIFY', $arFields)) {
unset($arFields['DATE_MODIFY']);
}
$arFields['~DATE_MODIFY'] = $DB->GetNowFunction();
$arFields['~DATE_CREATE'] = $DB->GetNowFunction();
if (!self::CheckFields('ADD', $arFields)) {
return false;
}
$arInsert = $DB->PrepareInsert("b_catalog_store", $arFields);
$strSql = "INSERT INTO b_catalog_store (" . $arInsert[0] . ") " . "VALUES(" . $arInsert[1] . ")";
$res = $DB->Query($strSql, False, "File: " . __FILE__ . "<br>Line: " . __LINE__);
if (!$res) {
return false;
}
$lastId = intval($DB->LastID());
return $lastId;
}
开发者ID:k-kalashnikov,项目名称:geekcon_new,代码行数:36,代码来源:store.php
示例2: SPRegisterUpdatedItem
public static function SPRegisterUpdatedItem($arFields)
{
if (CBXFeatures::IsFeatureEnabled('intranet_sharepoint')) {
if (CIntranetSharepoint::$bUpdateInProgress) {
return;
}
$dbRes = CIntranetSharepoint::GetByID($arFields['IBLOCK_ID']);
if ($arRes = $dbRes->Fetch()) {
CIntranetSharepoint::AddToUpdateLog($arFields);
}
}
}
开发者ID:mrdeadmouse,项目名称:u136006,代码行数:12,代码来源:include.php
示例3: DoInstall
function DoInstall()
{
global $DB, $DBType, $DOCUMENT_ROOT, $APPLICATION;
$APPLICATION->ResetException();
if (!CBXFeatures::IsFeatureEditable("Extranet")) {
$this->errors = array(GetMessage("MAIN_FEATURE_ERROR_EDITABLE"));
$APPLICATION->ThrowException(implode("<br>", $this->errors));
$GLOBALS["errors"] = $this->errors;
} else {
if ($this->InstallDB()) {
$this->InstallEvents();
$this->InstallFiles();
}
$APPLICATION->IncludeAdminFile(GetMessage("EXTRANET_INSTALL_TITLE"), $DOCUMENT_ROOT . "/bitrix/modules/extranet/install/step1.php");
}
}
开发者ID:mrdeadmouse,项目名称:u136006,代码行数:16,代码来源:index.php
示例4: getUserGroupWithStorage
protected function getUserGroupWithStorage()
{
if (!\CBXFeatures::isFeatureEnabled("Workgroups")) {
return array();
}
if (!Loader::includeModule('socialnetwork')) {
return array();
}
$userId = $this->getUser()->getId();
$currentPossibleUserGroups = $currentUserGroups = array();
$cache = Cache::createInstance();
$cacheTtl = defined('BX_COMP_MANAGED_CACHE') ? 3153600 : 3600 * 4;
$cachePath = "/disk/uf/{$userId}";
if ($cache->initCache($cacheTtl, 'group_storage_list_' . SITE_ID . '_' . $userId, $cachePath)) {
list($currentUserGroups) = $cache->getVars();
} else {
$cache->startDataCache();
$taggedCache = Application::getInstance()->getTaggedCache();
$taggedCache->startTagCache($cachePath);
$diskSecurityContext = new DiskSecurityContext($userId);
$storages = Storage::getReadableList($diskSecurityContext, array('filter' => array('STORAGE.ENTITY_TYPE' => ProxyType\Group::className())));
foreach ($storages as $storage) {
$currentPossibleUserGroups[$storage->getEntityId()] = $storage;
}
unset($storage);
$query = \CSocNetUserToGroup::getList(array('GROUP_NAME' => 'ASC'), array('USER_ID' => $userId, 'GROUP_ID' => array_keys($currentPossibleUserGroups)), false, false, array('GROUP_ID', 'GROUP_NAME', 'GROUP_ACTIVE', 'GROUP_CLOSED', 'ROLE'));
while ($row = $query->getNext()) {
if ($row['GROUP_ACTIVE'] == 'Y' && $row['GROUP_CLOSED'] == 'N' && $row['ROLE'] != SONET_ROLES_BAN && $row['ROLE'] != SONET_ROLES_REQUEST && isset($currentPossibleUserGroups[$row['GROUP_ID']])) {
$taggedCache->registerTag("sonet_features_G_{$row['GROUP_ID']}");
$taggedCache->registerTag("sonet_group_{$row['GROUP_ID']}");
$currentUserGroups[$row['GROUP_ID']] = array('STORAGE' => $currentPossibleUserGroups[$row['GROUP_ID']], 'NAME' => $row['GROUP_NAME']);
}
}
$taggedCache->registerTag("sonet_user2group_U{$userId}");
$taggedCache->endTagCache();
$cache->endDataCache(array($currentUserGroups));
}
return $currentUserGroups;
}
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:39,代码来源:controller.php
示例5: Add
/** Add new store in table b_catalog_store,
* @static
* @param $arFields
* @return bool|int
*/
static function Add($arFields)
{
/** @global CDataBase $DB */
global $DB;
if (!CBXFeatures::IsFeatureEnabled('CatMultiStore')) {
$dbResultList = CCatalogStore::GetList(array(), array(), false, array('NAV_PARAMS' => array("nTopCount" => "1")), array("ID"));
if ($arResult = $dbResultList->Fetch()) {
$GLOBALS["APPLICATION"]->ThrowException(GetMessage("CS_ALREADY_HAVE_STORE"));
return false;
}
}
foreach (GetModuleEvents("catalog", "OnBeforeCatalogStoreAdd", true) as $arEvent) {
if (ExecuteModuleEventEx($arEvent, array(&$arFields)) === false) {
return false;
}
}
if (array_key_exists('DATE_CREATE', $arFields)) {
unset($arFields['DATE_CREATE']);
}
if (array_key_exists('DATE_MODIFY', $arFields)) {
unset($arFields['DATE_MODIFY']);
}
$arFields['~DATE_MODIFY'] = $DB->GetNowFunction();
$arFields['~DATE_CREATE'] = $DB->GetNowFunction();
if (!self::CheckFields('ADD', $arFields)) {
return false;
}
$arInsert = $DB->PrepareInsert("b_catalog_store", $arFields);
$strSql = "INSERT INTO b_catalog_store (" . $arInsert[0] . ") VALUES(" . $arInsert[1] . ")";
$res = $DB->Query($strSql, False, "File: " . __FILE__ . "<br>Line: " . __LINE__);
if (!$res) {
return false;
}
$lastId = intval($DB->LastID());
foreach (GetModuleEvents("catalog", "OnCatalogStoreAdd", true) as $arEvent) {
ExecuteModuleEventEx($arEvent, array($lastId, $arFields));
}
return $lastId;
}
开发者ID:ASDAFF,项目名称:entask.ru,代码行数:44,代码来源:store.php
示例6: getUserGroupWithStorage
protected function getUserGroupWithStorage()
{
if (!\CBXFeatures::isFeatureEnabled("Workgroups")) {
return array();
}
if (!Loader::includeModule('socialnetwork')) {
return array();
}
$userId = $this->getUser()->getId();
$currentPossibleUserGroups = $currentUserGroups = array();
$diskSecurityContext = new DiskSecurityContext($this->getUser()->getId());
$storages = Storage::getReadableList($diskSecurityContext, array('filter' => array('STORAGE.ENTITY_TYPE' => ProxyType\Group::className())));
foreach ($storages as $storage) {
$currentPossibleUserGroups[$storage->getEntityId()] = $storage;
}
unset($storage);
$query = \CSocNetUserToGroup::getList(array('GROUP_NAME' => 'ASC'), array('USER_ID' => $userId, 'GROUP_ID' => array_keys($currentPossibleUserGroups)), false, false, array('GROUP_ID', 'GROUP_NAME', 'GROUP_ACTIVE', 'GROUP_CLOSED', 'ROLE'));
while ($row = $query->getNext()) {
if ($row['GROUP_ACTIVE'] == 'Y' && $row['GROUP_CLOSED'] == 'N' && $row['ROLE'] != SONET_ROLES_BAN && $row['ROLE'] != SONET_ROLES_REQUEST && isset($currentPossibleUserGroups[$row['GROUP_ID']])) {
$currentUserGroups[$row['GROUP_ID']] = array('STORAGE' => $currentPossibleUserGroups[$row['GROUP_ID']], 'NAME' => $row['GROUP_NAME']);
}
}
return $currentUserGroups;
}
开发者ID:mrdeadmouse,项目名称:u136006,代码行数:24,代码来源:controller.php
示例7:
if ($gadget["COMPANY_PHOTO_ONLY"] == true && !CBXFeatures::IsFeatureEnabled("CompanyPhoto")) {
continue;
}
if ($gadget["COMPANY_CALENDAR_ONLY"] == true && !CBXFeatures::IsFeatureEnabled("CompanyCalendar")) {
continue;
}
if ($gadget["CALENDAR_ONLY"] == true && !CBXFeatures::IsFeatureEnabled("Calendar")) {
continue;
}
if ($gadget["COMPANY_VIDEO_ONLY"] == true && !CBXFeatures::IsFeatureEnabled("CompanyVideo")) {
continue;
}
if ($gadget["WORKGROUPS_ONLY"] == true && !CBXFeatures::IsFeatureEnabled("Workgroups")) {
continue;
}
if ($gadget["FRIENDS_ONLY"] == true && !CBXFeatures::IsFeatureEnabled("Friends")) {
continue;
}
if ($USER->IsAuthorized() && $arResult["PERMISSION"] < "W" && $gadget["SELF_PROFILE_ONLY"] == true && $arParams["MODE"] == "SU" && intval($arParams["USER_ID"]) > 0 && $arParams["USER_ID"] != $USER->GetID()) {
continue;
}
if ($gadget["BLOG_ONLY"] == true && $gadget["SU_ONLY"] == true && intval($arParams["USER_ID"]) > 0 && CModule::IncludeModule('socialnetwork') && !CSocNetFeatures::IsActiveFeature(SONET_ENTITY_USER, $arParams["USER_ID"], "blog")) {
continue;
}
if ($gadget["BLOG_ONLY"] == true && $gadget["SG_ONLY"] == true && intval($arParams["SOCNET_GROUP_ID"]) > 0 && CModule::IncludeModule('socialnetwork') && !CSocNetFeatures::IsActiveFeature(SONET_ENTITY_GROUP, $arParams["SOCNET_GROUP_ID"], "blog")) {
continue;
}
if ($gadget["FORUM_ONLY"] == true && $gadget["SU_ONLY"] == true && intval($arParams["USER_ID"]) > 0 && CModule::IncludeModule('socialnetwork') && !CSocNetFeatures::IsActiveFeature(SONET_ENTITY_USER, $arParams["USER_ID"], "forum")) {
continue;
}
if ($gadget["FORUM_ONLY"] == true && $gadget["SG_ONLY"] == true && intval($arParams["SOCNET_GROUP_ID"]) > 0 && CModule::IncludeModule('socialnetwork') && !CSocNetFeatures::IsActiveFeature(SONET_ENTITY_GROUP, $arParams["SOCNET_GROUP_ID"], "forum")) {
开发者ID:nycmic,项目名称:bittest,代码行数:31,代码来源:component.php
示例8: array
?><a href="/bitrix/admin/event_log.php?lang=<? echo LANGUAGE_ID; ?>&set_filter=Y<? echo CCatalogEvent::GetYandexAgentFilter(); ?>"><? echo Loc::getMessage('CAT_AGENT_EVENT_LOG_SHOW_ERROR')?></a>
</td></tr>
<?
$systemTabControl->BeginNextTab();
?><tr><td align="left"><?
$firstTop = ' style="margin-top: 0;"';
if (!$useSaleDiscountOnly)
{
?>
<h4<? echo $firstTop; ?>><? echo Loc::getMessage('CAT_PROC_REINDEX_DISCOUNT'); ?></h4>
<input class="adm-btn-save" type="button" id="discount_reindex" value="<? echo Loc::getMessage('CAT_PROC_REINDEX_DISCOUNT_BTN'); ?>">
<p><? echo Loc::getMessage('CAT_PROC_REINDEX_DISCOUNT_ALERT'); ?></p><?
$firstTop = '';
}
if (CBXFeatures::IsFeatureEnabled('CatCompleteSet') && CCatalogProductSetAvailable::getAllCounter() > 0)
{
?><h4<? echo $firstTop; ?>><? echo Loc::getMessage('CAT_PROC_REINDEX_SETS_AVAILABLE'); ?></h4>
<input class="adm-btn-save" type="button" id="sets_reindex" value="<? echo Loc::getMessage('CAT_PROC_REINDEX_SETS_AVAILABLE_BTN'); ?>">
<p><? echo Loc::getMessage('CAT_PROC_REINDEX_SETS_AVAILABLE_ALERT'); ?></p><?
$firstTop = '';
}
?>
</td></tr><?
if ($strUseStoreControl === 'N' && !empty($arCatalogList))
{
$userListID = array();
$strQuantityUser = '';
$strQuantityReservedUser = '';
$strStoreUser = '';
$strClearQuantityDate = '';
开发者ID:ASDAFF,项目名称:1C_Bitrix_info_site,代码行数:30,代码来源:options.php
示例9: ShowError
<?php
if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) {
die;
}
if (!CModule::IncludeModule("socialnetwork")) {
ShowError(GetMessage("SONET_MODULE_NOT_INSTALL"));
return;
}
if (!CBXFeatures::IsFeatureEnabled("Workgroups")) {
ShowError(GetMessage("SONET_WORKGROUPS_FEATURE_DISABLED"));
return;
}
$arDefaultUrlTemplates404 = array("index" => "index.php", "group_reindex" => "group_reindex.php", "group_content_search" => "group/#group_id#/search/", "group_request_user" => "group/#group_id#/user/#user_id#/request/", "group_create" => "create/", "search" => "search.php", "group" => "group/#group_id#/", "group_edit" => "group/#group_id#/edit/", "group_requests" => "group/#group_id#/requests/", "group_requests_out" => "group/#group_id#/requests_out/", "group_mods" => "group/#group_id#/moderators/", "group_users" => "group/#group_id#/users/", "group_ban" => "group/#group_id#/ban/", "group_delete" => "group/#group_id#/delete/", "group_features" => "group/#group_id#/features/", "group_subscribe" => "group/#group_id#/subscribe/", "group_list" => "group/", "group_search" => "group/search/", "group_search_subject" => "group/search/#subject_id#/", "user_leave_group" => "group/#group_id#/user_leave/", "user_request_group" => "group/#group_id#/user_request/", "group_request_search" => "group/#group_id#/user_search/", "message_to_group" => "group/#group_id#/chat/", "group_photo" => "group/#group_id#/photo/", "group_photo_gallery" => "group/#group_id#/photo/gallery/", "group_photo_gallery_edit" => "group/#group_id#/photo/gallery/action/#action#/", "group_photo_galleries" => "group/#group_id#/photo/galleries/", "group_photo_section" => "group/#group_id#/photo/album/#section_id#/", "group_photo_section_edit" => "group/#group_id#/photo/album/#section_id#/action/#action#/", "group_photo_section_edit_icon" => "group/#group_id#/photo/album/#section_id#/icon/action/#action#/", "group_photo_element_upload" => "group/#group_id#/photo/photo/#section_id#/action/upload/", "group_photo_element" => "group/#group_id#/photo/photo/#section_id#/#element_id#/", "group_photo_element_edit" => "group/#group_id#/photo/photo/#section_id#/#element_id#/action/#action#/", "group_photo_element_slide_show" => "group/#group_id#/photo/photo/#section_id#/#element_id#/slide_show/", "group_photofull_gallery" => "group/#group_id#/photo/gallery/#user_alias#/", "group_photofull_gallery_edit" => "group/#group_id#/photo/gallery/#user_alias#/action/#action#/", "group_photofull_section" => "group/#group_id#/photo/album/#user_alias#/#section_id#/", "group_photofull_section_edit" => "group/#group_id#/photo/album/#user_alias#/#section_id#/action/#action#/", "group_photofull_section_edit_icon" => "group/#group_id#/photo/album/#user_alias#/#section_id#/icon/action/#action#/", "group_photofull_element_upload" => "group/#group_id#/photo/photo/#user_alias#/#section_id#/action/upload/", "group_photofull_element" => "group/#group_id#/photo/photo/#user_alias#/#section_id#/#element_id#/", "group_photofull_element_edit" => "group/#group_id#/photo/photo/#user_alias#/#section_id#/#element_id#/action/#action#/", "group_photofull_element_slide_show" => "group/#group_id#/photo/photo/#user_alias#/#section_id#/#element_id#/slide_show/", "group_calendar" => "group/#group_id#/calendar/", "group_files" => "group/#group_id#/files/lib/#path#/", "group_files_short" => "folder/view/#section_id#/#element_id#/#element_name#", "group_files_section_edit" => "group/#group_id#/files/folder/edit/#section_id#/#action#/", "group_files_element" => "group/#group_id#/files/element/view/#element_id#/", "group_files_element_comment" => "group/#group_id#/files/element/comment/#topic_id#/#message_id#/", "group_files_element_edit" => "group/#group_id#/files/element/edit/#element_id#/#action#/", "group_files_element_file" => "", "group_files_element_history" => "group/#group_id#/files/element/history/#element_id#/", "group_files_element_history_get" => "group/#group_id#/files/element/historyget/#element_id#/#element_name#", "group_files_element_version" => "group/#group_id#/files/element/version/#action#/#element_id#/", "group_files_element_versions" => "group/#group_id#/files/element/versions/#element_id#/", "group_files_element_upload" => "group/#group_id#/files/element/upload/#section_id#/", "group_files_help" => "group/#group_id#/files/help/", "group_files_connector" => "group/#group_id#/files/connector/", "group_files_webdav_bizproc_history" => "group/#group_id#/files/bizproc/history/#element_id#/", "group_files_webdav_bizproc_history_get" => "group/#group_id#/files/bizproc/historyget/#element_id#/#id#/#element_name#", "group_files_webdav_bizproc_log" => "group/#group_id#/files/bizproc/log/#element_id#/#id#/", "group_files_webdav_bizproc_view" => "group/#group_id#/files/bizproc/bizproc/#element_id#/", "group_files_webdav_bizproc_workflow_admin" => "group/#group_id#/files/bizproc/admin/", "group_files_webdav_bizproc_workflow_edit" => "group/#group_id#/files/bizproc/edit/#id#/", "group_files_webdav_start_bizproc" => "group/#group_id#/files/bizproc/start/#element_id#/", "group_files_webdav_task_list" => "group/#group_id#/files/bizproc/task/list/", "group_files_webdav_task" => "group/#group_id#/files/bizproc/task/read/#id#/", "group_blog" => "group/#group_id#/blog/", "group_blog_post_edit" => "group/#group_id#/blog/edit/#post_id#/", "group_blog_rss" => "group/#group_id#/blog/rss/#type#/", "group_blog_post_rss" => "group/#group_id#/blog/rss/#type#/#post_id#/", "group_blog_draft" => "group/#group_id#/blog/draft/", "group_blog_moderation" => "group/#group_id#/blog/moderation/", "group_blog_post" => "group/#group_id#/blog/#post_id#/", "group_forum" => "group/#group_id#/forum/", "group_forum_topic" => "group/#group_id#/forum/#topic_id#/", "group_forum_topic_edit" => "group/#group_id#/forum/edit/#topic_id#/", "group_forum_message" => "group/#group_id#/forum/message/#topic_id#/#message_id#/", "group_forum_message_edit" => "group/#group_id#/forum/message/#action#/#topic_id#/#message_id#/", "group_tasks" => "group/#group_id#/tasks/", "group_tasks_task" => "group/#group_id#/tasks/task/#action#/#task_id#/", "group_tasks_view" => "group/#group_id#/tasks/view/#action#/#view_id#/", "group_tasks_report" => "group/#group_id#/tasks/report/", "group_tasks_report_construct" => "group/#group_id#/tasks/report/construct/#report_id#/#action#/", "group_tasks_report_view" => "group/#group_id#/tasks/report/view/#report_id#/", "group_log" => "group/#group_id#/log/", "group_log_rss" => "group/#group_id#/log/rss/?bx_hit_hash=#sign#&events=#events#", "group_log_rss_mask" => "group/#group_id#/log/rss/");
$diskEnabled = \Bitrix\Main\Config\Option::get('disk', 'successfully_converted', false) && CModule::includeModule('disk');
if ($diskEnabled) {
$arDefaultUrlTemplates404["group_disk"] = "group/#group_id#/disk/path/#PATH#";
$arDefaultUrlTemplates404["group_disk_file"] = "group/#group_id#/disk/file/#FILE_PATH#";
$arDefaultUrlTemplates404["group_trashcan_list"] = "group/#group_id#/disk/trashcan/#TRASH_PATH#";
$arDefaultUrlTemplates404["group_trashcan_file_view"] = "group/#group_id#/disk/trash/file/#TRASH_FILE_PATH#";
$arDefaultUrlTemplates404["group_external_link_list"] = "group/#group_id#/disk/external";
$arDefaultUrlTemplates404["group_disk_bizproc_workflow_admin"] = "group/#group_id#/disk/bp/";
$arDefaultUrlTemplates404["group_disk_bizproc_workflow_edit"] = "group/#group_id#/disk/bp_edit/#ID#/";
$arDefaultUrlTemplates404["group_disk_start_bizproc"] = "group/#group_id#/disk/bp_start/#ELEMENT_ID#/";
$arDefaultUrlTemplates404["group_disk_task"] = "group/#group_id#/disk/bp_task/#ID#/";
$arDefaultUrlTemplates404["group_disk_task_list"] = "group/#group_id#/disk/bp_task_list/";
}
$arDefaultUrlTemplatesN404 = array("index" => "", "group_reindex" => "page=group_reindex", "group_content_search" => "page=group_content_search&group_id=#group_id#", "group_create" => "page=group_create&user_id=#group_id#", "group" => "page=group&group_id=#group_id#", "group_edit" => "page=group_edit&group_id=#group_id#", "group_requests" => "page=group_requests&group_id=#group_id#", "group_requests_out" => "page=group_requests_out&group_id=#group_id#", "group_mods" => "page=group_mods&group_id=#group_id#", "group_users" => "page=group_users&group_id=#group_id#", "group_ban" => "page=group_ban&group_id=#group_id#", "group_delete" => "page=group_delete&group_id=#group_id#", "group_features" => "page=group_features&group_id=#group_id#", "group_subscribe" => "page=group_subscribe&group_id=#group_id#", "group_list" => "page=group_list", "group_search" => "page=group_search", "group_search_subject" => "page=group_search_subject&subject_id=#subject_id#", "user_leave_group" => "page=user_leave_group&group_id=#group_id#", "group_request_user" => "page=group_request_user&group_id=#group_id#&user_id=#user_id#", "user_request_group" => "page=user_request_group&group_id=#group_id#", "group_request_search" => "page=group_request_search&group_id=#group_id#", "group_photo" => "page=group_photo&group_id=#group_id#", "group_photo_gallery" => "page=group_photo_gallery&group_id=#group_id#", "group_photo_gallery_edit" => "page=group_photo_gallery&group_id=#group_id#&action=#action#", "group_photo_galleries" => "page=group_photo_galleries&group_id=#group_id#", "group_photo_section" => "page=group_photo_section&group_id=#group_id#§ion_id=#section_id#", "group_photo_section_edit" => "page=group_photo_section_edit&group_id=#group_id#§ion_id=#section_id#&action=#action#", "group_photo_section_edit_icon" => "page=group_photo_section_edit_icon&group_id=#group_id#§ion_id=#section_id#&action=#action#", "group_photo_element_upload" => "page=group_photo_element_upload&group_id=#group_id#§ion_id=#section_id#", "group_photo_element" => "page=group_photo_element&group_id=#group_id#§ion_id=#section_id#&element_id=#element_id#", "group_photo_element_edit" => "page=group_photo_element_edit&group_id=#group_id#§ion_id=#section_id#&element_id=#element_id#&action=#action#", "group_photo_element_slide_show" => "page=group_photo_element_slide_show&group_id=#group_id#§ion_id=#section_id#&element_id=#element_id#", "group_photofull_gallery" => "page=group_photofull_gallery&group_id=#group_id#&user_alias=#user_alias#", "group_photofull_gallery_edit" => "page=group_photofull_gallery_edit&group_id=#group_id#&user_alias=#user_alias#&action=#action#", "group_photofull_section" => "page=group_photofull_section&group_id=#group_id#&user_alias=#user_alias#§ion_id=#section_id#", "group_photofull_section_edit" => "page=group_photofull_section_edit&group_id=#group_id#&user_alias=#user_alias#§ion_id=#section_id#&action=#action#", "group_photofull_section_edit_icon" => "page=group_photofull_section_edit_icon&group_id=#group_id#&user_alias=#user_alias#§ion_id=#section_id#&action=#action#", "group_photofull_element_upload" => "page=group_photofull_element_upload&group_id=#group_id#&user_alias=#user_alias#§ion_id=#section_id#", "group_photofull_element" => "page=group_photofull_element&group_id=#group_id#&user_alias=#user_alias#§ion_id=#section_id#&element_id=#element_id#", "group_photofull_element_edit" => "page=group_photofull_element_edit&group_id=#group_id#&user_alias=#user_alias#§ion_id=#section_id#&element_id=#element_id#&action=#action#", "group_photofull_element_slide_show" => "page=group_photofull_element_slide_show&group_id=#group_id#&user_alias=#user_alias#§ion_id=#section_id#&element_id=#element_id#", "group_calendar" => "page=group_calendar&group_id=#group_id#", "message_to_group" => "page=message_to_group&group_id=#group_id#", "group_files" => "page=group_files&group_id=#group_id#&path=#path#", "group_files_short" => "page=group_files_short&group_id=#group_id#§ion_id=#section_id#&element_id=#element_id#&element_name=#element_name#", "group_files_section_edit" => "page=group_files_section_edit&group_id=#group_id#§ion_id=#section_id#&action=#action#", "group_files_element" => "page=group_files_element&group_id=#group_id#&element_id=#element_id#", "group_files_element_comment" => "page=group_files_element_comment&group_id=#group_id#&topic_id=#topic_id#&message_id=#message_id#", "group_files_element_edit" => "page=group_files_element_edit&group_id=#group_id#&element_id=#element_id#&action=#action#", "group_files_element_file" => "", "group_files_element_history" => "page=group_files_element_history&element_id=#element_id#", "group_files_element_history_get" => "page=group_files_element_history_get&element_id=#element_id#&element_name=#element_name#", "group_files_element_version" => "page=group_files_element_version&group_id=#group_id#&element_id=#element_id#&action=#action#", "group_files_element_versions" => "page=group_files_element_versions&group_id=#group_id#&element_id=#element_id#", "group_files_element_upload" => "page=group_files_element_upload&group_id=#group_id#§ion_id=#section_id#", "group_files_help" => "page=group_files_help&group_id=#group_id#", "group_files_connector" => "page=group_files_connector&group_id=#group_id#", "group_files_webdav_bizproc_history" => "page=group_files_webdav_bizproc_history&group_id=#group_id#&element_id=#element_id#", "group_files_webdav_bizproc_history_get" => "page=group_files_webdav_bizproc_history_get&group_id=#group_id#&element_id=#element_id#&element_name=#element_name#", "group_files_webdav_bizproc_log" => "page=group_files_webdav_bizproc_log&group_id=#group_id#&element_id=#element_id#&id=#id#", "group_files_webdav_bizproc_view" => "page=group_files_webdav_bizproc_view&group_id=#group_id#&element_id=#element_id#", "group_files_webdav_bizproc_workflow_admin" => "page=group_files_webdav_bizproc_workflow_admin&group_id=#group_id#", "group_files_webdav_bizproc_workflow_edit" => "page=group_files_webdav_bizproc_workflow_edit&group_id=#group_id#&id=#id#", "group_files_webdav_start_bizproc" => "page=group_files_webdav_start_bizproc&group_id=#group_id#&element_id=#element_id#", "group_files_webdav_task_list" => "page=group_files_webdav_task_list&group_id=#group_id#", "group_files_webdav_task" => "page=group_files_webdav_task&group_id=#group_id#&id=#id#", "group_blog" => "page=group_blog&group_id=#group_id#", "group_blog_post_edit" => "page=group_blog_post_edit&group_id=#group_id#&post_id=#post_id#", "group_blog_rss" => "page=group_blog_rss&group_id=#group_id#&type=#type#", "group_blog_post_rss" => "page=group_blog_post_rss&group_id=#group_id#&type=#type#&post_id=#post_id#", "group_blog_draft" => "page=group_blog_draft&group_id=#group_id#", "group_blog_moderation" => "page=group_blog_moderation&group_id=#group_id#", "group_blog_post" => "page=group_blog_post&group_id=#group_id#&post_id=#post_id#", "group_forum" => "page=group_forum&group_id=#group_id#", "group_forum_topic" => "page=group_forum_topic&group_id=#group_id#&topic_id=#topic_id#", "group_forum_topic_edit" => "page=group_forum_topic_edit&group_id=#group_id#&topic_id=#topic_id#", "group_forum_message" => "page=group_forum_message&group_id=#group_id#&topic_id=#topic_id#&message_id=#message_id#", "group_forum_message_edit" => "page=group_forum_message_edit&group_id=#group_id#&topic_id=#topic_id#&message_id=#message_id#&action=#action#", "group_tasks" => "page=group_tasks&group_id=#group_id#", "group_tasks_task" => "page=group_tasks_task&group_id=#group_id#&action=#action#&task_id=#task_id#", "group_tasks_view" => "page=group_tasks_view&group_id=#group_id#&action=#action#&view_id=#view_id#", "group_tasks_report" => "page=group_tasks_report&group_id=#group_id#", "group_tasks_report_construct" => "page=group_tasks_report_construct&group_id=#group_id#&action=#action#&report_id=#report_id#", "group_tasks_report_view" => "page=group_tasks_report_view&group_id=#group_id#&report_id=#report_id#", "group_log" => "page=group_log&group_id=#group_id#", "group_log_rss" => "page=group_log_rss&group_id=#group_id#&bx_hit_hash=#sign#&events=#events#");
$arDefaultVariableAliases404 = array();
$arDefaultVariableAliases = array();
$componentPage = "";
开发者ID:vim84,项目名称:b-markt,代码行数:31,代码来源:component.php
示例10: GetMessage
<input type="hidden" name="CAT_ROW_COUNTER" id="CAT_ROW_COUNTER" value="<?php
echo $ind;
?>
">
<input type="button" value="<?php
echo GetMessage("C2IT_MORE");
?>
" OnClick="ClonePriceSections()">
</td>
</tr>
<script type="text/javascript">
arCatalogGroups = [];
catalogGroupsInd = 0;
</script>
<?php
if (CBXFeatures::IsFeatureEnabled('CatMultiPrice')) {
$dbCatalogGroups = CCatalogGroup::GetList(array("SORT" => "ASC", "NAME" => "ASC", "ID" => "ASC"), array("!BASE" => "Y"));
while ($arCatalogGroup = $dbCatalogGroups->Fetch()) {
?>
<script type="text/javascript">
arCatalogGroups[catalogGroupsInd] = <?php
echo $arCatalogGroup["ID"];
?>
;
catalogGroupsInd++;
</script>
<tr>
<td valign="top" align="right">
<?php
echo GetMessage("C2IT_PRICE_TYPE");
?>
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:31,代码来源:product_edit.php
示例11: array
$strUseStoreControl = '';
$strSaveWithoutPrice = '';
$boolCatalogRead = false;
$boolCatalogPrice = false;
$boolCatalogPurchasInfo = false;
$boolCatalogSet = false;
$arProductTypeList = array();
$showCatalogWithOffers = false;
if ($bCatalog)
{
$strUseStoreControl = COption::GetOptionString("catalog", "default_use_store_control");
$strSaveWithoutPrice = COption::GetOptionString('catalog','save_product_without_price','N');
$boolCatalogRead = $USER->CanDoOperation('catalog_read');
$boolCatalogPrice = $USER->CanDoOperation('catalog_price');
$boolCatalogPurchasInfo = $USER->CanDoOperation('catalog_purchas_info');
$boolCatalogSet = CBXFeatures::IsFeatureEnabled('CatCompleteSet');
$arCatalog = CCatalogSKU::GetInfoByIBlock($arIBlock["ID"]);
if (empty($arCatalog))
{
$bCatalog = false;
}
else
{
if (CCatalogSKU::TYPE_PRODUCT == $arCatalog['CATALOG_TYPE'] || CCatalogSKU::TYPE_FULL == $arCatalog['CATALOG_TYPE'])
{
if (CIBlockRights::UserHasRightTo($arCatalog['IBLOCK_ID'], $arCatalog['IBLOCK_ID'], "iblock_admin_display"))
{
$boolSKU = true;
$strSKUName = GetMessage('IBLIST_A_OFFERS');
}
}
开发者ID:nycmic,项目名称:bittest,代码行数:31,代码来源:iblock_list_admin.php
示例12: array
if ($arResult["IBLOCK"]["BIZPROC"] == "Y" && $arParams["CAN_EDIT_BIZPROC"]) {
$arToolbar[] = array("TEXT" => GetMessage("CT_BLL_TOOLBAR_BIZPROC"), "TITLE" => GetMessage("CT_BLL_TOOLBAR_BIZPROC_TITLE"), "LINK" => $arResult["BIZPROC_WORKFLOW_ADMIN_URL"], "ICON" => "btn-list-bizproc");
}
if ($arParams["IBLOCK_TYPE_ID"] == COption::GetOptionString("lists", "livefeed_iblock_type_id")) {
$text = GetMessage("CT_BLL_TOOLBAR_PROCESS");
$title = GetMessage("CT_BLL_TOOLBAR_PROCESS_TITLE");
} else {
$text = GetMessage("CT_BLL_TOOLBAR_LIST");
$title = GetMessage("CT_BLL_TOOLBAR_LIST_TITLE");
}
$arToolbar[] = array("TEXT" => $text, "TITLE" => $title, "LINK" => $arResult["LIST_EDIT_URL"], "ICON" => "btn-edit-list");
}
if ($arResult["CAN_READ"]) {
$arToolbar[] = array("TEXT" => GetMessage("CT_BLL_EXPORT_EXCEL"), "TITLE" => GetMessage("CT_BLL_EXPORT_EXCEL_TITLE"), "LINK" => CHTTP::urlAddParams(strpos($APPLICATION->GetCurPageParam(), "?") == false ? $arResult["EXPORT_EXCEL_URL"] : $arResult["EXPORT_EXCEL_URL"] . substr($APPLICATION->GetCurPageParam(), strpos($APPLICATION->GetCurPageParam(), "?")), array("ncc" => "y")), "ICON" => "btn-list-excel");
}
if (IsModuleInstalled('intranet') && CBXFeatures::IsFeatureEnabled('intranet_sharepoint')) {
if ($arIcons = $APPLICATION->IncludeComponent('bitrix:sharepoint.link', '', array('IBLOCK_ID' => $arParams['IBLOCK_ID'], 'OUTPUT' => 'N'), null, array('HIDE_ICONS' => 'Y'))) {
if (count($arIcons['LINKS']) > 0) {
$arMenu = array();
foreach ($arIcons['LINKS'] as $link) {
$arMenu[] = array('TEXT' => $link['TEXT'], 'ONCLICK' => $link['ONCLICK'], 'ICONCLASS' => $link['ICON']);
}
$arToolbar[] = array('TEXT' => 'SharePoint', 'ICON' => 'bx-sharepoint', 'MENU' => $arMenu);
}
}
}
if (count($arToolbar)) {
$APPLICATION->IncludeComponent("bitrix:main.interface.toolbar", "", array("BUTTONS" => $arToolbar), $component, array("HIDE_ICONS" => "Y"));
}
$arActions = array();
if (!empty($arResult["ELEMENTS_CAN_DELETE"])) {
开发者ID:Satariall,项目名称:izurit,代码行数:31,代码来源:template.php
示例13: array
$asset->addString('<link rel="stylesheet" type="text/css" media="print" href="' . SITE_TEMPLATE_PATH . '/print.css" />', false, \Bitrix\Main\Page\AssetLocation::AFTER_CSS);
$asset->addString('<link rel="alternate stylesheet" type="text/css" media="screen,projection" href="' . SITE_TEMPLATE_PATH . '/print.css" title="print" />', false, \Bitrix\Main\Page\AssetLocation::AFTER_CSS);
$asset->addString('<link rel="stylesheet" type="text/css" href="' . SITE_TEMPLATE_PATH . '/colors.css"/>', false, \Bitrix\Main\Page\AssetLocation::AFTER_CSS);
$asset->addJs(SITE_TEMPLATE_PATH . '/script.js');
?>
<title><?php
$APPLICATION->ShowTitle();
?>
</title>
</head>
<body class="<?php
$APPLICATION->ShowProperty("BodyClass");
?>
">
<?php
if (IsModuleInstalled("im") && CBXFeatures::IsFeatureEnabled('WebMessenger')) {
$APPLICATION->IncludeComponent("bitrix:im.messenger", "", array("PATH_TO_SONET_EXTMAIL" => SITE_DIR . "company/personal/mail/"));
}
?>
<div id="page-wrapper">
<div id="panel"><?php
$APPLICATION->ShowPanel();
?>
</div>
<div id="page-inner">
<div id="site-selector">
<div id="site-selector-inner">
<div id="site-selector-menus">
开发者ID:mrdeadmouse,项目名称:u136006,代码行数:30,代码来源:header.php
示例14: IncludeModuleLangFile
<?php
require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_before.php";
require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/sale/include.php";
require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/sale/prolog.php";
IncludeModuleLangFile(__FILE__);
$saleModulePermissions = $APPLICATION->GetGroupRight("sale");
if ($saleModulePermissions == "D") {
$APPLICATION->AuthForm(GetMessage("BUYER_PE_ACCESS_DENIED"));
}
if (!CBXFeatures::IsFeatureEnabled('SaleAccounts')) {
require $DOCUMENT_ROOT . "/bitrix/modules/main/include/prolog_admin_after.php";
ShowError(GetMessage("SALE_FEATURE_NOT_ALLOW"));
require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/epilog_admin.php";
die;
}
ClearVars();
$ID = IntVal($_REQUEST["id"]);
$arErrors = array();
if ($arProfile = CSaleOrderUserProps::GetByID($ID)) {
$USER_ID = IntVal($arProfile["USER_ID"]);
$PERSON_TYPE = IntVal($arProfile["PERSON_TYPE_ID"]);
$profileName = $arProfile["NAME"];
} else {
$arErrors[] = GetMessage("BUYER_PE_NO_PROFILE");
}
/*****************************************************************************/
/**************************** SAVE PROFILE ***********************************/
/*****************************************************************************/
if ($REQUEST_METHOD == "POST" && $saleModulePermissions >= "U" && check_bitrix_sessid() && !empty($arProfile)) {
$CODE_PROFILE_NAME = trim($_REQUEST["CODE_PROFILE_NAME"]);
开发者ID:k-kalashnikov,项目名称:geekcon_new,代码行数:31,代码来源:buyers_profile_edit.php
示例15: GetUserGroups
static function GetUserGroups($userID = 0, $bGetFolders = true)
{
static $oCache = null;
static $CACHE_PATH = "/webdav/sonet_user_groups/";
if (!CBXFeatures::IsFeatureEnabled("Workgroups")) {
return array();
}
$userID = intval($userID);
if (intval($userID) <= 0) {
$userID = $GLOBALS['USER']->GetID();
}
//$currentUserGroups = CWebDavBase::CustomDataCache($CACHE_PATH, $userID);
//if (!$currentUserGroups)
//{
$currentUserGroups = array();
$db_res = CSocNetUserToGroup::GetList(array("GROUP_NAME" => "ASC"), array("USER_ID" => $userID), false, false, array("GROUP_ID", "GROUP_NAME", "GROUP_ACTIVE", "GROUP_CLOSED", "ROLE"));
while ($res = $db_res->GetNext()) {
if ($res['GROUP_ACTIVE'] == 'Y' && $res['GROUP_CLOSED'] == 'N' && $res['ROLE'] != SONET_ROLES_BAN && $res['ROLE'] != SONET_ROLES_REQUEST) {
$currentUserGroups[$res["GROUP_ID"]] = $res;
}
}
$arGroupID = array_keys($currentUserGroups);
if (is_array($arGroupID) && sizeof($arGroupID) > 0) {
$arFeatures = CSocNetFeatures::IsActiveFeature(SONET_ENTITY_GROUP, $arGroupID, 'files');
foreach ($arFeatures as $groupID => $enabled) {
if (!$enabled) {
unset($currentUserGroups[$groupID]);
}
}
}
if ($bGetFolders) {
$groupIBlock = CWebDavIblock::LibOptions('group_files', false, SITE_ID);
if ($groupIBlock && isset($groupIBlock['id']) && intval($grou
|
请发表评论