Bitrix-D7 23.9
 
Указатель Классы Пространства имен Функции Переменные
Загрузка...
Поиск...
Не найдено
Класс Manager

Открытые статические члены

static getApplication ()
 
static getUserInstance ()
 
static getCacheManager ()
 
static getUfManager ()
 
static getUserId ()
 
static getUserFullName ()
 
static isAdmin ()
 
static getOption ($code, $default=null)
 
static setOption ($code, $value)
 
static getDocRoot ()
 
static getCurDir ()
 
static setPageTitle ($title, $single=false)
 
static getPublicationPathConst ()
 
static getPublicationPath ($siteCode=null, $siteId=null, $createPubPath=false)
 
static isAutoPublicationEnabled ()
 
static setPageClass ($marker, $class)
 
static setPageView (string $marker, string $content, bool $skipTrim=false)
 
static clearPageView ($marker)
 
static getPageView ($marker)
 
static getTemplateId ($siteId=null)
 
static isTemplateIdSystem ($templateId)
 
static getMainSiteId ()
 
static getRandomString (int $length)
 
static setThemeTypoId ($themeTypoId)
 
static initAssets ($lid=0)
 
static savePicture ($file, $ext=false, $params=array())
 
static enableFeatureTmp ($feature)
 
static disableFeatureTmp ($feature)
 
static disableAllFeaturesTmp ()
 
static checkMultiFeature (array $features, array $params=[])
 
static checkFeature (string $feature, array $params=array())
 
static getZone ()
 
static getLangISO ()
 
static availableOnlyForZone (string $zone)
 
static getMarketCollectionId (string $type)
 
static isHttps ()
 
static getHttpHost ()
 
static getUrlFromFile ($file)
 
static isB24 ()
 
static isB24Connector ()
 
static forceB24disable ($flag)
 
static isExtendedSMN ()
 
static isStoreEnabled ()
 
static getRestPath ()
 
static isCloudDisable ()
 
static getVersion ()
 
static licenseIsValid ()
 
static licenseIsFreeSite (string $type)
 
static isFreePublicAllowed ()
 
static sanitize ($value, &$bad=false, $splitter=' ')
 
static getDeletedLT ()
 
static getExternalSiteController ()
 
static resetToFree ()
 
static onBitrix24LicenseChange (string $licenseType)
 
static clearCache ()
 
static clearCacheForSite (int $siteId)
 
static clearCacheForLanding (int $lid)
 
static checkRepositoryVersion ()
 
static getThemes ()
 
static getThemesTypo ()
 
static setThemeId ()
 
static getThemeId ()
 
static setTheme ()
 

Открытые атрибуты

const USER_AGREEMENT_VERSION = 4
 
const PUBLICATION_PATH = '/pub/site/'
 
const PUBLICATION_PATH_SITEMAN = '/lp/'
 
const BUY_LICENSE_PATH = '/bitrix/tools/landing/ajax.php?redirect=upgrade'
 
const FEATURE_CREATE_SITE = 'create_site'
 
const FEATURE_CREATE_PAGE = 'create_page'
 
const FEATURE_CUSTOM_DOMAIN = 'custom_domain'
 
const FEATURE_ENABLE_ALL_HOOKS = 'enable_all_hooks'
 
const FEATURE_PUBLICATION_SITE = 'publication_site'
 
const FEATURE_PUBLICATION_PAGE = 'publication_page'
 
const FEATURE_PERMISSIONS_AVAILABLE = 'permissions_available'
 
const FEATURE_DYNAMIC_BLOCK = 'dynamic_block'
 
const FEATURE_FREE_DOMAIN = 'free_domain'
 
const FEATURE_ALLOW_EXPORT = 'allow_export'
 
const FEATURE_ALLOW_VIEW_PAGE = 'allow_view_page'
 

Защищенные статические члены

static getMainSiteById (string $siteId)
 
static createPublicationPath (string $basePath, string $siteId=null)
 
static getSmnSiteDir (?string $siteId)
 

Статические защищенные данные

static $forceB24disable = false
 
static $tmpFeatures = []
 

Подробное описание

См. определение в файле manager.php строка 13

Методы

◆ availableOnlyForZone()

static availableOnlyForZone ( string $zone)
static

Check if something is available in current country.

Аргументы
string$zoneZone code.
Возвращает
bool

См. определение в файле manager.php строка 975

◆ checkFeature()

static checkFeature ( string $feature,
array $params = array() )
static

Checks that the feature is enabled.

Аргументы
string$featureFeature code.
array$paramsAdditional params array.
Возвращает
boolean

См. определение в файле manager.php строка 831

◆ checkMultiFeature()

static checkMultiFeature ( array $features,
array $params = [] )
static

Returns true, if all of features array is enabled.

Аргументы
array$featuresFeature name.
array$paramsParams array.
Возвращает
bool

См. определение в файле manager.php строка 802

◆ checkRepositoryVersion()

static checkRepositoryVersion ( )
static

Clear cache, if repository version and current is different.

Возвращает
void

См. определение в файле manager.php строка 1442

◆ clearCache()

static clearCache ( )
static

In cloud version clear cache when tariff change

Возвращает
void

См. определение в файле manager.php строка 1377

◆ clearCacheForLanding()

static clearCacheForLanding ( int $lid)
static

Clear cache in cloud only for one site by landing ID

Аргументы
int$lid

См. определение в файле manager.php строка 1415

◆ clearCacheForSite()

static clearCacheForSite ( int $siteId)
static

Clear cache in cloud only for one site

Аргументы
int$siteId

См. определение в файле manager.php строка 1402

◆ clearPageView()

static clearPageView ( $marker)
static

Clears view by marker code.

Аргументы
string$markerMarker code.
Возвращает
void

См. определение в файле manager.php строка 488

◆ createPublicationPath()

static createPublicationPath ( string $basePath,
string $siteId = null )
staticprotected

Create system dir for publication sites.

Аргументы
string$basePathPublication physical dir.
string | null$siteIdMain site id.
Возвращает
void

См. определение в файле manager.php строка 255

◆ disableAllFeaturesTmp()

static disableAllFeaturesTmp ( )
static

Disable all tmp feature.

Возвращает
void

См. определение в файле manager.php строка 791

◆ disableFeatureTmp()

static disableFeatureTmp ( $feature)
static

Disable some tmp feature.

Аргументы
string$featureFeature code.
Возвращает
void

См. определение в файле manager.php строка 779

◆ enableFeatureTmp()

static enableFeatureTmp ( $feature)
static

Enable some feature for moment.

Аргументы
string$featureFeature code.
Возвращает
void

См. определение в файле manager.php строка 769

◆ forceB24disable()

static forceB24disable ( $flag)
static

Sets local flag to new state.

Аргументы
boolean$flagDisable or not.
Возвращает
void

См. определение в файле manager.php строка 1143

◆ getApplication()

static getApplication ( )
static

Get main instance of \CMain.

Возвращает
\CMain

См. определение в файле manager.php строка 71

◆ getCacheManager()

static getCacheManager ( )
static

Get instance of CACHE_MANAGER;

Возвращает
\CCacheManager

См. определение в файле manager.php строка 89

◆ getCurDir()

static getCurDir ( )
static

Returns current dir.

Возвращает
false|string|null

См. определение в файле manager.php строка 198

◆ getDeletedLT()

static getDeletedLT ( )
static

Get deleted life time days.

Возвращает
int

См. определение в файле manager.php строка 1313

◆ getDocRoot()

static getDocRoot ( )
static

Famous document root.

Возвращает
string

См. определение в файле manager.php строка 180

◆ getExternalSiteController()

static getExternalSiteController ( )
static

Return site controller class, or pseudo.

Возвращает
string

См. определение в файле manager.php строка 1324

◆ getHttpHost()

static getHttpHost ( )
static

Get current host.

Возвращает
string

См. определение в файле manager.php строка 1043

◆ getLangISO()

static getLangISO ( )
static

Returns language code by ISO 639-1.

Возвращает
string

См. определение в файле manager.php строка 955

◆ getMainSiteById()

static getMainSiteById ( string $siteId)
staticprotected

Returns main site row by id.

Аргументы
string$siteIdMain site id.
Возвращает
array|bool

См. определение в файле manager.php строка 237

◆ getMainSiteId()

static getMainSiteId ( )
static

Gets site id from main module.

Возвращает
string

См. определение в файле manager.php строка 541

◆ getMarketCollectionId()

static getMarketCollectionId ( string $type)
static

Return ID for market collection, by zone

Аргументы
string$typename of collection type
Возвращает
int

См. определение в файле manager.php строка 1002

◆ getOption()

static getOption ( $code,
$default = null )
static

Get option from module settings.

Аргументы
string$codeOption code.
mixed$defaultDefault value.
Возвращает
mixed

См. определение в файле manager.php строка 160

◆ getPageView()

static getPageView ( $marker)
static

Get some content from some marker.

Аргументы
string$markerMarker.
Возвращает
string

См. определение в файле manager.php строка 498

◆ getPublicationPath()

static getPublicationPath ( $siteCode = null,
$siteId = null,
$createPubPath = false )
static

Get path for publication sites.

Аргументы
string | int$siteCodeSite id or site code.
string$siteIdMain site id.
bool$createPubPathCreate path for publication.
Возвращает
string

См. определение в файле manager.php строка 396

◆ getPublicationPathConst()

static getPublicationPathConst ( )
static

Get constantly publication path.

Возвращает
string

См. определение в файле manager.php строка 378

◆ getRandomString()

static getRandomString ( int $length)
static

Returns randomize string.

Аргументы
int$lengthString length.
Возвращает
string

См. определение в файле manager.php строка 551

◆ getRestPath()

static getRestPath ( )
static

Get current REST url for work with cloud.

Возвращает
string

См. определение в файле manager.php строка 1180

◆ getSmnSiteDir()

static getSmnSiteDir ( ?string $siteId)
staticprotected

Get main site local dir.

Аргументы
string | null$siteIdMain site LID.
Возвращает
string

См. определение в файле manager.php строка 353

◆ getTemplateId()

static getTemplateId ( $siteId = null)
static

Gets site template id.

Аргументы
string$siteIdSite id (siteman).
Возвращает
string

См. определение в файле manager.php строка 508

◆ getThemeId()

static getThemeId ( )
static

Get current theme id.

См. определение в файле manager.php строка 1474

◆ getThemes()

static getThemes ( )
static

Get themes from template dir.

См. определение в файле manager.php строка 1450

◆ getThemesTypo()

static getThemesTypo ( )
static

Get themes typo from template dir.

См. определение в файле manager.php строка 1458

◆ getUfManager()

static getUfManager ( )
static

Get instance of USER_FIELD_MANAGER.

Возвращает
\CUserTypeManager

См. определение в файле manager.php строка 98

◆ getUrlFromFile()

static getUrlFromFile ( $file)
static

Get full url of local file.

Аргументы
string$fileLocal file name.
Возвращает
string

См. определение в файле manager.php строка 1067

◆ getUserFullName()

static getUserFullName ( )
static

Get current user full name.

Возвращает
int

См. определение в файле manager.php строка 121

◆ getUserId()

static getUserId ( )
static

Get current user id.

Возвращает
int

См. определение в файле manager.php строка 107

◆ getUserInstance()

static getUserInstance ( )
static

Get main instance of \CUser.

Возвращает
\CUser

См. определение в файле manager.php строка 80

◆ getVersion()

static getVersion ( )
static

Get module version.

Возвращает
string

См. определение в файле manager.php строка 1200

◆ getZone()

static getZone ( )
static

Get site zone (ru, ua, en, etc).

Возвращает
string

См. определение в файле manager.php строка 925

◆ initAssets()

static initAssets ( $lid = 0)
static

Add assets to page from hooks and themes

Аргументы
int$lidLanding id.
Возвращает
void

См. определение в файле manager.php строка 572

◆ isAdmin()

static isAdmin ( )
static

Admin or not.

Возвращает
boolean

См. определение в файле manager.php строка 135

◆ isAutoPublicationEnabled()

static isAutoPublicationEnabled ( )
static

См. определение в файле manager.php строка 437

◆ isB24()

static isB24 ( )
static

Is B24 portal?

Возвращает
bool

См. определение в файле manager.php строка 1089

◆ isB24Connector()

static isB24Connector ( )
static

Is Site Manager and B24 connector

Возвращает
bool|null

См. определение в файле manager.php строка 1123

◆ isCloudDisable()

static isCloudDisable ( )
static

Check if cloud is disabled by settings.

Возвращает
bool

См. определение в файле manager.php строка 1189

◆ isExtendedSMN()

static isExtendedSMN ( )
static

Returns true, if SMN is extended for CRM.

Возвращает
bool

См. определение в файле manager.php строка 1152

◆ isFreePublicAllowed()

static isFreePublicAllowed ( )
static

См. определение в файле manager.php строка 1243

◆ isHttps()

static isHttps ( )
static

Is https?

Возвращает
bool

См. определение в файле manager.php строка 1026

◆ isStoreEnabled()

static isStoreEnabled ( )
static

Enable or not shops in this edition.

Возвращает
bool

См. определение в файле manager.php строка 1168

◆ isTemplateIdSystem()

static isTemplateIdSystem ( $templateId)
static

Gets true, if this template id is system.

Аргументы
string$templateIdSite template id.
Возвращает
bool

См. определение в файле manager.php строка 532

◆ licenseIsFreeSite()

static licenseIsFreeSite ( string $type)
static

Is license free and it not a knowledge and not a store

Аргументы
string$typeType of landing
Возвращает
bool

См. определение в файле manager.php строка 1233

◆ licenseIsValid()

static licenseIsValid ( )
static

Check if license is expired.

Возвращает
bool

См. определение в файле manager.php строка 1217

◆ onBitrix24LicenseChange()

static onBitrix24LicenseChange ( string $licenseType)
static

In cloud version on change highest plans.

Аргументы
string$licenseTypeLicense Type.
Возвращает
void

См. определение в файле manager.php строка 1367

◆ resetToFree()

static resetToFree ( )
static

In cloud version reset highest plans to free.

Возвращает
void

См. определение в файле manager.php строка 1354

◆ sanitize()

static sanitize ( $value,
& $bad = false,
$splitter = ' ' )
static

Sanitize bad value.

Аргументы
string$valueBad value.
bool&$badReturn true, if value is bad.
string$splitterSplitter for bad content.
Возвращает
string Good value.

См. определение в файле manager.php строка 1255

◆ savePicture()

static savePicture ( $file,
$ext = false,
$params = array() )
static

Save picture to db.

Аргументы
mixed$fileFile array or path to file.
string$extFile extension (if can't detected by file name).
array$paramsSome file params.
Возвращает
array|false Local file array or false on error.

См. определение в файле manager.php строка 585

◆ setOption()

static setOption ( $code,
$value )
static

Set option for module settings.

Аргументы
string$codeOption code.
string$valueOption value.
Возвращает
void

См. определение в файле manager.php строка 171

◆ setPageClass()

static setPageClass ( $marker,
$class )
static

Add some class to some marker.

Аргументы
string$markerMarker.
string$classClass.
Возвращает
void

См. определение в файле manager.php строка 452

◆ setPageTitle()

static setPageTitle ( $title,
$single = false )
static

Set page title.

Аргументы
string$titlePage title.
bool$singleIf true, then set title only once.
Возвращает
void

См. определение в файле manager.php строка 211

◆ setPageView()

static setPageView ( string $marker,
string $content,
bool $skipTrim = false )
static

Adds content in specific area named by marker.

Аргументы
string$markerMarker name.
string$contentContent.
bool$skipTrimIf true content will not be trimmed.
Возвращает
void

См. определение в файле manager.php строка 465

◆ setTheme()

static setTheme ( )
static

Set current selected or default color theme.

См. определение в файле manager.php строка 1482

◆ setThemeId()

static setThemeId ( )
static

Set new colored theme id.

См. определение в файле manager.php строка 1466

◆ setThemeTypoId()

static setThemeTypoId ( $themeTypoId)
static

Set new colored theme id.

Аргументы
string$themeTypoIdTheme id.
Возвращает
void

См. определение в файле manager.php строка 562

Данные класса

◆ $forceB24disable

$forceB24disable = false
staticprotected

См. определение в файле manager.php строка 52

◆ $tmpFeatures

$tmpFeatures = []
staticprotected

См. определение в файле manager.php строка 58

◆ BUY_LICENSE_PATH

const BUY_LICENSE_PATH = '/bitrix/tools/landing/ajax.php?redirect=upgrade'

Path, where user can buy upgrade.

См. определение в файле manager.php строка 31

◆ FEATURE_ALLOW_EXPORT

const FEATURE_ALLOW_EXPORT = 'allow_export'

См. определение в файле manager.php строка 45

◆ FEATURE_ALLOW_VIEW_PAGE

const FEATURE_ALLOW_VIEW_PAGE = 'allow_view_page'

См. определение в файле manager.php строка 46

◆ FEATURE_CREATE_PAGE

const FEATURE_CREATE_PAGE = 'create_page'

См. определение в файле manager.php строка 37

◆ FEATURE_CREATE_SITE

const FEATURE_CREATE_SITE = 'create_site'

Features codes for backward compatibility.

См. определение в файле manager.php строка 36

◆ FEATURE_CUSTOM_DOMAIN

const FEATURE_CUSTOM_DOMAIN = 'custom_domain'

См. определение в файле manager.php строка 38

◆ FEATURE_DYNAMIC_BLOCK

const FEATURE_DYNAMIC_BLOCK = 'dynamic_block'

См. определение в файле manager.php строка 43

◆ FEATURE_ENABLE_ALL_HOOKS

const FEATURE_ENABLE_ALL_HOOKS = 'enable_all_hooks'

См. определение в файле manager.php строка 39

◆ FEATURE_FREE_DOMAIN

const FEATURE_FREE_DOMAIN = 'free_domain'

См. определение в файле manager.php строка 44

◆ FEATURE_PERMISSIONS_AVAILABLE

const FEATURE_PERMISSIONS_AVAILABLE = 'permissions_available'

См. определение в файле manager.php строка 42

◆ FEATURE_PUBLICATION_PAGE

const FEATURE_PUBLICATION_PAGE = 'publication_page'

См. определение в файле manager.php строка 41

◆ FEATURE_PUBLICATION_SITE

const FEATURE_PUBLICATION_SITE = 'publication_site'

См. определение в файле manager.php строка 40

◆ PUBLICATION_PATH

const PUBLICATION_PATH = '/pub/site/'

Publication default path.

См. также
Manager::getPublicationPathConst()

См. определение в файле manager.php строка 25

◆ PUBLICATION_PATH_SITEMAN

const PUBLICATION_PATH_SITEMAN = '/lp/'

См. определение в файле manager.php строка 26

◆ USER_AGREEMENT_VERSION

const USER_AGREEMENT_VERSION = 4

User agreement actual version.

См. также
Manager::getOption('user_agreement_version')

См. определение в файле manager.php строка 19