public function getLocalizedMessage()
 {
     Main\Localization\Loc::loadMessages(__FILE__);
     $code = $this->getCode();
     $entityTypeID = $this->getTargetEntityTypeID();
     $entityTypeName = \CCrmOwnerType::ResolveName($entityTypeID);
     if ($code === EntityConversionException::NOT_FOUND) {
         return GetMessage("CRM_CONV_EX_{$entityTypeName}_NOT_FOUND");
     } elseif ($code === EntityConversionException::EMPTY_FIELDS) {
         return GetMessage("CRM_CONV_EX_{$entityTypeName}_EMPTY_FIELDS");
     } elseif ($code === EntityConversionException::HAS_WORKFLOWS) {
         return GetMessage("CRM_CONV_EX_{$entityTypeName}_HAS_WORKFLOWS");
     } elseif ($code === EntityConversionException::AUTOCREATION_DISABLED) {
         return GetMessage("CRM_CONV_EX_{$entityTypeName}_AUTOCREATION_DISABLED");
     } elseif ($code === EntityConversionException::INVALID_FIELDS) {
         return GetMessage("CRM_CONV_EX_{$entityTypeName}_INVALID_FIELDS") . preg_replace('/<br\\s*\\/?>/i', "\r\n", $this->extMessage);
     } elseif ($code === EntityConversionException::CREATE_DENIED) {
         return GetMessage("CRM_CONV_EX_{$entityTypeName}_CREATE_DENIED");
     } elseif ($code === EntityConversionException::CREATE_FAILED) {
         return GetMessage("CRM_CONV_EX_{$entityTypeName}_CREATE_FAILED") . preg_replace('/<br\\s*\\/?>/i', "\r\n", $this->extMessage);
     } elseif ($code === EntityConversionException::READ_DENIED) {
         return GetMessage("CRM_CONV_EX_{$entityTypeName}_READ_DENIED");
     } elseif ($code === EntityConversionException::UPDATE_DENIED) {
         return GetMessage("CRM_CONV_EX_{$entityTypeName}_UPDATE_DENIED");
     } elseif ($code === EntityConversionException::NOT_SUPPORTED) {
         return GetMessage('CRM_CONV_EX_ENTITY_NOT_SUPPORTED', array('#ENTITY_TYPE_NAME#' => \CCrmOwnerType::GetDescription($entityTypeID)));
     }
     return $this->getMessage();
 }
Example #2
0
 protected static function includeModuleFile()
 {
     if (self::$messagesLoaded) {
         return;
     }
     Main\Localization\Loc::loadMessages(__FILE__);
     self::$messagesLoaded = true;
 }
 /**
  * @return array Array of strings
  */
 public static function getAllDescriptions()
 {
     if (!self::$allDescriptions[LANGUAGE_ID]) {
         Main\Localization\Loc::loadMessages(__FILE__);
         self::$allDescriptions[LANGUAGE_ID] = array(self::DEAL_CONTACT_COMPANY => GetMessage('CRM_LEAD_CONV_DEAL_CONTACT_COMPANY'), self::DEAL_CONTACT => GetMessage('CRM_LEAD_CONV_DEAL_CONTACT'), self::DEAL_COMPANY => GetMessage('CRM_LEAD_CONV_DEAL_COMPANY'), self::DEAL => GetMessage('CRM_LEAD_CONV_DEAL'), self::CONTACT_COMPANY => GetMessage('CRM_LEAD_CONV_CONTACT_COMPANY'), self::CONTACT => GetMessage('CRM_LEAD_CONV_CONTACT'), self::COMPANY => GetMessage('CRM_LEAD_CONV_COMPANY'));
     }
     return self::$allDescriptions[LANGUAGE_ID];
 }
 /**
  * @return array Array of strings
  */
 public static function getAllDescriptions()
 {
     if (!self::$allDescriptions[LANGUAGE_ID]) {
         Main\Localization\Loc::loadMessages(__FILE__);
         self::$allDescriptions[LANGUAGE_ID] = array(self::DEAL => GetMessage('CRM_QUOTE_CONV_DEAL'), self::INVOICE => GetMessage('CRM_QUOTE_CONV_INVOICE'));
     }
     return self::$allDescriptions[LANGUAGE_ID];
 }
 public function getEditFormLegend()
 {
     Main\Localization\Loc::loadMessages(__FILE__);
     $exceptionCode = $this->exception !== null ? (int) $this->exception->getCode() : 0;
     if ($exceptionCode === EntityConversionException::AUTOCREATION_DISABLED || $exceptionCode === EntityConversionException::HAS_WORKFLOWS) {
         return GetMessage("CRM_ENTITY_CONV_WIZ_CUSTOM_FORM_LEGEND", array('#TEXT#' => $this->exception->getLocalizedMessage()));
     }
     return GetMessage("CRM_ENTITY_CONV_WIZ_FORM_LEGEND");
 }
Example #6
0
 /**
  * Инициализация модуля
  */
 public function customprojectmodule()
 {
     Loc::loadMessages(__FILE__);
     $moduleVersion = array();
     include realpath(__DIR__) . '/version.php';
     $this->MODULE_VERSION = $moduleVersion['VERSION'];
     $this->MODULE_VERSION_DATE = $moduleVersion['VERSION_DATE'];
     $this->MODULE_NAME = Loc::getMessage('MODULE_NAME');
     $this->MODULE_DESCRIPTION = Loc::getMessage('MODULE_DESCRIPTION');
 }
Example #7
0
 /**
  * Converter constructor.
  * 
  * @param int $iblockId ID of info block.
  * 
  * @throws ArgumentTypeException
  * @throws LoaderException
  */
 public function __construct($iblockId)
 {
     $this->iblockId = intval($iblockId);
     if ($this->iblockId <= 0) {
         throw new ArgumentTypeException('iblockId', 'int');
     }
     if (!Loader::includeModule('iblock')) {
         throw new LoaderException('Module "iblock" in not install');
     }
     Loc::loadMessages(__FILE__);
 }
Example #8
0
 public static function getFolderName($typeID)
 {
     Loc::loadMessages(__FILE__);
     if ($typeID === self::EmailAttachment) {
         return Loc::getMessage('CRM_STORAGE_EMAIL');
     } elseif ($typeID === self::CallRecord) {
         return Loc::getMessage('CRM_STORAGE_CALL_RECORD');
     } elseif ($typeID === self::Rest) {
         return Loc::getMessage('CRM_STORAGE_APPLICATION');
     }
     return '';
 }
Example #9
0
 /**
  * Validation string ID of the user group. If string ID not valid (empty string or string ID alredy used)
  * will be throw Bitrix exception.
  *
  * @param string $stringId
  * @param int $groupId Group ID by string ID
  *
  * @return bool
  */
 protected static function validateStringId($stringId, $groupId = null)
 {
     global $APPLICATION;
     if (is_null($stringId)) {
         // if code of group is not updated
         return true;
     }
     try {
         $stringId = trim($stringId);
         if (strlen($stringId) <= 0) {
             throw new \Exception('EMPTY_STRING_ID');
         }
         $rsSimilarGroup = GroupTable::query()->setFilter(['STRING_ID' => $stringId, '!ID' => $groupId])->setSelect(['ID'])->exec();
         if ($rsSimilarGroup->getSelectedRowsCount() > 0) {
             throw new \Exception('STRING_ID_ALREDY_USED');
         }
         return true;
     } catch (\Exception $e) {
         Loc::loadMessages(__FILE__);
         $APPLICATION->ThrowException(Loc::getMessage('BEX_TOOLS_GROUP_' . $e->getMessage()));
         return false;
     }
 }
Example #10
0
 /**
  * Validation code of the info block. If code not valid (empty string or code alredy used) will be throw
  * Bitrix exception.
  *
  * @param string $type
  * @param string $code
  * @param null $iblockId
  *
  * @return bool
  */
 protected static function validateCode($type, $code, $iblockId = null)
 {
     global $APPLICATION;
     if (is_null($code)) {
         // if code of info block is not updated
         return true;
     }
     try {
         $type = trim($type);
         $code = trim($code);
         if (strlen($code) <= 0) {
             throw new \Exception('EMPTY_CODE');
         }
         $rsSimilarIblock = IblockTable::query()->setFilter(['IBLOCK_TYPE_ID' => $type, 'CODE' => $code, '!ID' => $iblockId])->setSelect(['ID'])->exec();
         if ($rsSimilarIblock->getSelectedRowsCount() > 0) {
             throw new \Exception('CODE_ALREDY_USED');
         }
         return true;
     } catch (\Exception $e) {
         Loc::loadMessages(__FILE__);
         $APPLICATION->ThrowException(Loc::getMessage('BEX_TOOLS_IBLOCK_' . $e->getMessage()));
         return false;
     }
 }
Example #11
0
<?php

namespace Hawkart\Megatv;

use Bitrix\Main\Entity;
use Bitrix\Main\Localization;
Localization\Loc::loadMessages(__FILE__);
class SourceTable extends Entity\DataManager
{
    /**
     * Returns DB table name for entity
     *
     * @return string
     */
    public static function getTableName()
    {
        return 'hw_source';
    }
    /**
     * Returns entity map definition
     *
     * @return array
     */
    public static function getMap()
    {
        return array('ID' => array('data_type' => 'integer', 'primary' => true, 'autocomplete' => true), 'UF_LINK' => array('data_type' => 'string', 'required' => true));
    }
    /**
     * Clear table
     */
    public static function deleteAll()
Example #12
0
 public function __construct($component = null)
 {
     parent::__construct($component);
     Localization\Loc::loadMessages(__FILE__);
 }
 * @global CUserTypeManager $USER_FIELD_MANAGER
 * @global CCacheManager $CACHE_MANAGER
 */

define('ADMIN_MODULE_NAME', 'seo');

use Bitrix\Main;
use Bitrix\Main\Text\Converter;
use Bitrix\Main\Localization\Loc;
use Bitrix\Seo\AdvSession;
use Bitrix\Seo\Engine;
use Bitrix\Seo\Adv;

Loc::loadMessages(dirname(__FILE__).'/../../main/tools.php');
Loc::loadMessages(dirname(__FILE__).'/seo_search.php');
Loc::loadMessages(dirname(__FILE__).'/seo_adv.php');

if (!$USER->CanDoOperation('seo_tools'))
{
	$APPLICATION->AuthForm(Loc::getMessage("ACCESS_DENIED"));
}

if(!Main\Loader::includeModule('seo'))
{
	require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_after.php");
	ShowError(Loc::getMessage("SEO_ERROR_NO_MODULE"));
	require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/epilog_admin.php");
}

if(!Main\Loader::includeModule('socialservices'))
{
Example #14
0
 protected function loadModules()
 {
     Main\Loader::includeModule("catalog");
     Main\Loader::includeModule("search");
     Main\Loader::includeModule("fileman");
     Loc::loadMessages(__FILE__);
 }
Example #15
0
<?php

require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_before.php";
require_once $_SERVER["DOCUMENT_ROOT"] . BX_ROOT . "/modules/main/prolog.php";
if (!$USER->CanDoOperation('seo_tools') || !check_bitrix_sessid()) {
    die(GetMessage("ACCESS_DENIED"));
}
use Bitrix\Seo\Engine;
use Bitrix\Main\Text\Converter;
use Bitrix\Main\Localization\Loc;
use Bitrix\Main\IO\Path;
\Bitrix\Main\Loader::includeModule('seo');
\Bitrix\Main\Loader::includeModule('socialservices');
CUtil::JSPostUnescape();
Loc::loadMessages(dirname(__FILE__) . '/../include.php');
$engine = new Engine\Yandex();
if (isset($_REQUEST['action'])) {
    $res = array();
    $arDomain = null;
    if (isset($_REQUEST['domain']) && strlen($_REQUEST['domain']) > 0) {
        $bFound = false;
        $arDomains = \CSeoUtils::getDomainsList();
        foreach ($arDomains as $arDomain) {
            if ($arDomain['DOMAIN'] == $_REQUEST['domain'] && rtrim($arDomain['SITE_DIR'], '/') == rtrim($_REQUEST['dir'], '/')) {
                $bFound = true;
                break;
            }
        }
        if (!$bFound) {
            $res = array('error' => 'Unknown site!');
        }
Example #16
0
 public function onIncludeComponentLang()
 {
     Loc::loadMessages(__FILE__);
 }
Example #17
0
<?php

use Bitrix\Main\Localization\Loc;
Loc::loadMessages(__FILE__);
CJSCore::Init(array('jquery'));
global $APPLICATION, $right, $Apply, $REQUEST_METHOD, $RestoreDefaults;
$moduleId = 'customprojectmodule';
$right = $APPLICATION->GetGroupRight($moduleId);
if ($right >= 'R') {
    Loc::loadMessages($_SERVER['DOCUMENT_ROOT'] . BX_ROOT . '/modules/main/options.php');
    $generalOptions = array();
    $allOptions = array($generalOptions);
    $tabs = array(array('DIV' => 'edit5', 'TAB' => Loc::getMessage('MODULE_RIGHTS_TAB'), 'ICON' => '', 'TITLE' => Loc::getMessage('MODULE_RIGHTS_TAB_TITLE')));
    $tabControl = new CAdminTabControl('tabControl', $tabs);
    CModule::IncludeModule($moduleId);
    if ($REQUEST_METHOD == 'POST' && strlen($Update . $Apply . $RestoreDefaults) > 0 && $right == 'W' && check_bitrix_sessid()) {
        if (strlen($RestoreDefaults) > 0) {
            COption::RemoveOption($moduleId);
        } else {
            foreach ($allOptions as $optionsSection) {
                foreach ($optionsSection as $option) {
                    $name = $option['ID'];
                    $value = trim($_REQUEST[$name]);
                    if ($option['TYPE'] == 'checkbox' && $value != 'Y') {
                        $value = 'N';
                    }
                    COption::SetOptionString($moduleId, $name, $value, $option['MESSAGE']);
                }
            }
        }
        ob_start();
 public function __construct(array $settings = array())
 {
     Loc::loadMessages(__FILE__);
     Loader::includeModule('iblock');
     parent::__construct($settings);
 }
Example #19
0
 public function __construct($component = null)
 {
     parent::__construct($component);
     CPageOption::SetOptionString("main", "nav_page_in_session", "N");
     $this->dateFormat = CSite::GetDateFormat("FULL", SITE_ID);
     Localization\Loc::loadMessages(__FILE__);
 }
 /**
  * @inheritdoc
  */
 public function __construct($iblockId)
 {
     parent::__construct($iblockId);
     Loc::loadMessages(__FILE__);
 }
Example #21
0
<?php

/**
 * Bitrix Framework
 * @package bitrix
 * @subpackage seo
 * @copyright 2001-2013 Bitrix
 */
namespace Bitrix\Seo;

use Bitrix\Main;
use Bitrix\Main\Entity;
use Bitrix\Main\Localization\Loc;
Loc::loadMessages('/bitrix/modules/seo/admin/sitemap_edit.php');
// Table with settings
class SitemapTable extends Entity\DataManager
{
    const SETTINGS_DEFAULT_FILE_MASK = '*.php,*.html';
    const ACTIVE = 'Y';
    const INACTIVE = 'N';
    public static function getFilePath()
    {
        return __FILE__;
    }
    public static function getTableName()
    {
        return 'b_seo_sitemap';
    }
    public static function getMap()
    {
        $fieldsMap = array('ID' => array('data_type' => 'integer', 'primary' => true, 'autocomplete' => true), 'TIMESTAMP_X' => array('data_type' => 'datetime'), 'SITE_ID' => array('data_type' => 'string', 'required' => true), 'ACTIVE' => array('data_type' => 'boolean', 'values' => array(self::INACTIVE, self::ACTIVE)), 'NAME' => array('data_type' => 'string', 'required' => true, 'title' => Loc::getMessage('SITEMAP_NAME')), 'DATE_RUN' => array('data_type' => 'datetime'), 'SETTINGS' => array('data_type' => 'text'));
Example #22
0
<?php

require_once $_SERVER['DOCUMENT_ROOT'] . "/bitrix/modules/main/include/prolog_admin_before.php";
define('ADMIN_MODULE_NAME', 'seo');
use Bitrix\Main;
use Bitrix\Main\Text\Converter;
use Bitrix\Main\Localization\Loc;
use Bitrix\Seo\RobotsFile;
use Bitrix\Seo\SitemapTable;
use Bitrix\Seo\SitemapEntityTable;
use Bitrix\Seo\SitemapIblockTable;
use Bitrix\Seo\SitemapForumTable;
use Bitrix\Seo\SitemapRuntimeTable;
Loc::loadMessages(dirname(__FILE__) . '/../../main/tools.php');
Loc::loadMessages(dirname(__FILE__) . '/seo_sitemap.php');
if (!$USER->CanDoOperation('seo_tools')) {
    $APPLICATION->AuthForm(Loc::getMessage("ACCESS_DENIED"));
}
if (!Main\Loader::includeModule('seo')) {
    require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_after.php";
    ShowError(Loc::getMessage("SEO_ERROR_NO_MODULE"));
    require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/epilog_admin.php";
}
$bIBlock = Main\Loader::includeModule('iblock');
$bForum = Main\Loader::includeModule('forum');
$ID = intval($_REQUEST['ID']);
$SITE_ID = trim($_REQUEST['site_id']);
$bDefaultHttps = false;
if ($ID > 0) {
    $dbSitemap = SitemapTable::getById($ID);
    $arSitemap = $dbSitemap->fetch();
Example #23
0
<?php

require_once $_SERVER['DOCUMENT_ROOT'] . "/bitrix/modules/main/include/prolog_admin_before.php";
define('ADMIN_MODULE_NAME', 'seo');
use Bitrix\Main;
use Bitrix\Main\Text\Converter;
use Bitrix\Main\Localization\Loc;
use Bitrix\Seo\Engine;
Loc::loadMessages(dirname(__FILE__) . '/../../main/tools.php');
Loc::loadMessages(dirname(__FILE__) . '/seo_search.php');
if (!$USER->CanDoOperation('seo_tools')) {
    $APPLICATION->AuthForm(Loc::getMessage("ACCESS_DENIED"));
}
if (!Main\Loader::includeModule('seo')) {
    require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_after.php";
    ShowError(Loc::getMessage("SEO_ERROR_NO_MODULE"));
    require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/epilog_admin.php";
}
if (!Main\Loader::includeModule('socialservices')) {
    require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_after.php";
    ShowError(Loc::getMessage("SEO_ERROR_NO_MODULE_SOCSERV"));
    require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/epilog_admin.php";
}
$strError = "";
$engine = new Engine\Google();
if ($_SERVER['REQUEST_METHOD'] == 'POST' && isset($_REQUEST['CODE']) && check_bitrix_sessid()) {
    try {
        $engine->getAuth($_REQUEST['CODE']);
        LocalRedirect($APPLICATION->GetCurPageParam('oauth=yes', array('CODE', 'oauth')));
    } catch (Exception $e) {
        $strError = Loc::getMessage('SEO_ERROR_GET_ACCESS', array("#ERROR_TEXT#" => $e->getMessage()));
 /**
  * {@inheritdoc}
  */
 public function __construct(array $settings = array())
 {
     Loc::loadMessages(__FILE__);
     parent::__construct($settings);
 }
 function IncludeLangFile($relativePath = "", $lang = false, $return = false)
 {
     $arLangMessages = array();
     if ($this->__folder != '') {
         if ($relativePath == "") {
             $relativePath = bx_basename($this->__file);
         }
         $absPath = $_SERVER["DOCUMENT_ROOT"] . $this->__folder . "/" . $relativePath;
         if ($lang === false && $return === false) {
             \Bitrix\Main\Localization\Loc::loadMessages($absPath);
         } else {
             if ($lang === false) {
                 $lang = $this->getLanguageId();
             }
             $arLangMessages = \Bitrix\Main\Localization\Loc::loadLanguageFile($absPath, $lang);
         }
     }
     return $arLangMessages;
 }
Example #26
0
', TITLE:'<?php 
                        echo CUtil::JSEscape($arVal["PARAMS_FULL"][$key]["TITLE"]);
                        ?>
:'}<?php 
                    }
                    ?>

		]
<?php 
                }
                ?>
	}
<?php 
            }
        }
        \Bitrix\Main\Localization\Loc::loadMessages(dirname(__FILE__) . '/../form_validator_props.php');
        ?>
	</script>
	<script>
var _global_BX_UTF = <?php 
        if (defined('BX_UTF') && BX_UTF === true) {
            ?>
true<?php 
        } else {
            ?>
false<?php 
        }
        ?>
;
	</script>
	<script src="/bitrix/js/form/form_validators.js?<?php 
 * This file is part of the Studio Fact package.
 *
 * (c) Kulichkin Denis (onEXHovia) <*****@*****.**>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */
require_once getenv('DOCUMENT_ROOT') . '/bitrix/modules/main/include/prolog_admin_before.php';
use Bitrix\Main\Application;
use Bitrix\Main\Entity;
use Bitrix\Main\Loader;
use Bitrix\Main\Localization\Loc;
use Citfact\UserVars;
use Citfact\UserVars\Model;
Loc::loadMessages(__FILE__);
Loc::loadMessages(__DIR__ . '/user_vars.php');
global $APPLICATION;
$application = Application::getInstance();
$applicationOld =& $APPLICATION;
$APPLICATION->setTitle(Loc::getMessage('USER_VARS_TITLE'));
if (!Loader::includeModule('citfact.uservars')) {
    $applicationOld->authForm(Loc::getMessage('ACCESS_DENIED'));
}
$request = $application->getContext()->getRequest();
$includePath = array('prolog' => '/bitrix/modules/main/include/prolog_admin_after.php', 'prolog_js' => '/bitrix/modules/main/include/prolog_admin_js.php', 'epilog' => '/bitrix/modules/main/include/epilog_admin.php', 'epilog_js' => '/bitrix/modules/main/include/epilog_admin_js.php');
$contextMenu[] = array('TEXT' => Loc::getMessage('USER_VARS_BACK_GROUP'), 'TITLE' => Loc::getMessage('USER_VARS_BACK_GROUP'), 'LINK' => 'user_vars.php?lang=' . LANGUAGE_ID, 'ICON' => 'btn_list');
$tabsStructur = array(array('DIV' => 'group', 'ICON' => 'main_user_edit', 'TAB' => Loc::GetMessage('USER_VARS_GROUP_NAME'), 'TITLE' => Loc::GetMessage('USER_VARS_GROUP_NAME')));
$submitTypeSave = $request->getPost('save') ? true : false;
$submitTypeApply = $request->getPost('apply') ? true : false;
$isOldGroup = false;
$isNewGroup = true;
<?php

/**
 * @global \CMain $APPLICATION
 */
\Bitrix\Main\Localization\Loc::loadMessages(__FILE__);
if (!\Bitrix\Main\Loader::IncludeModule("iblock")) {
    $APPLICATION->ThrowException(GetMessage('RR_ERROR_IBLOCK_NOT_INSTALLED'));
    return false;
}
/** PSR-0 autoloader */
spl_autoload_register(function ($className) {
    $className = ltrim($className, '\\');
    if (!($className = preg_replace('/^RetailRocket\\\\/', '', $className))) {
        return false;
    }
    $fileName = '';
    if ($lastNsPos = strrpos($className, '\\')) {
        $namespace = substr($className, 0, $lastNsPos);
        $className = substr($className, $lastNsPos + 1);
        $fileName = str_replace('\\', DIRECTORY_SEPARATOR, $namespace) . DIRECTORY_SEPARATOR;
    }
    $fileName .= str_replace('_', DIRECTORY_SEPARATOR, $className) . '.php';
    $fileName = __DIR__ . '/lib/' . $fileName;
    if (is_readable($fileName)) {
        require_once $fileName;
        return true;
    }
    return false;
});
Example #29
0
<?php

use Bitrix\Lists\Internals\Error\Error;
use Bitrix\Main\Localization\Loc;
use Bitrix\Main\Loader;
use Bitrix\Lists\Internals\Controller;
define('STOP_STATISTICS', true);
define('BX_SECURITY_SHOW_MESSAGE', true);
require_once $_SERVER['DOCUMENT_ROOT'] . '/bitrix/modules/main/include/prolog_before.php';
if (!Loader::IncludeModule('lists') || !\Bitrix\Main\Application::getInstance()->getContext()->getRequest()->getQuery('action')) {
    return;
}
Loc::loadMessages(__FILE__);
class LiveFeedAjaxController extends Controller
{
    /** @var  array */
    protected $lists = array();
    protected $formOprions = array();
    /** @var  string */
    protected $iblockTypeId = 'bitrix_processes';
    protected $listPerm;
    protected $formId;
    protected $randomString;
    protected $iblockDescription;
    protected $iblockCode;
    /** @var  int */
    protected $socnetGroupId = 0;
    protected $iblockId;
    protected function listOfActions()
    {
        return array('getList' => array('method' => array('POST')), 'setDelegateResponsible' => array('method' => array('POST')), 'setResponsible' => array('method' => array('POST')), 'getBizprocTemplateId' => array('method' => array('POST')), 'createSettingsDropdown' => array('method' => array('POST')), 'checkPermissions' => array('method' => array('POST')), 'isConstantsTuned' => array('method' => array('POST')), 'checkDelegateResponsible' => array('method' => array('POST')), 'checkDataElementCreation' => array('method' => array('POST')), 'getListAdmin' => array('method' => array('POST')), 'notifyAdmin' => array('method' => array('POST')));
Example #30
0
 /**
  * Function includes language files from within the component directory.
  *
  * <p>For example: $this->includeComponentLang("ajax.php") will include "lang/en/ajax.php" file. </p>
  * <p>Note: component must be inited by initComponent method.</p>
  * @param string $relativePath
  * @param string|bool $lang
  * @return void
  *
  */
 public final function includeComponentLang($relativePath = "", $lang = false)
 {
     if (!$this->__bInited) {
         return null;
     }
     if ($relativePath == "") {
         $relativePath = "component.php";
     }
     $path = $_SERVER["DOCUMENT_ROOT"] . $this->__path . "/" . $relativePath;
     if ($lang === false) {
         \Bitrix\Main\Localization\Loc::loadMessages($path);
     } else {
         \Bitrix\Main\Localization\Loc::loadLanguageFile($path, $lang);
     }
 }