1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
Класс 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 isAjaxRequest ()
static getHttpHost ()
static getUrlFromFile ($file)
static getPreviewHost ()
static getPreviewWebhook ()
static isB24 ()
static isB24Cloud ()
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()

availableOnlyForZone ( string $zone)
static

Check if something is available in current country.

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

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

◆ checkFeature()

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

Checks that the feature is enabled.

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

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

◆ checkMultiFeature()

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

Returns true, if all of features array is enabled.

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

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

◆ checkRepositoryVersion()

checkRepositoryVersion ( )
static

Clear cache, if repository version and current is different.

Возвращает
void

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

◆ clearCache()

clearCache ( )
static

In cloud version clear cache when tariff change

Возвращает
void

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

◆ clearCacheForLanding()

clearCacheForLanding ( int $lid)
static

Clear cache in cloud only for one site by landing ID

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

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

◆ clearCacheForSite()

clearCacheForSite ( int $siteId)
static

Clear cache in cloud only for one site

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

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

◆ clearPageView()

clearPageView ( $marker)
static

Clears view by marker code.

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

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

◆ createPublicationPath()

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 строка 261

◆ disableAllFeaturesTmp()

disableAllFeaturesTmp ( )
static

Disable all tmp feature.

Возвращает
void

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

◆ disableFeatureTmp()

disableFeatureTmp ( $feature)
static

Disable some tmp feature.

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

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

◆ enableFeatureTmp()

enableFeatureTmp ( $feature)
static

Enable some feature for moment.

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

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

◆ forceB24disable()

forceB24disable ( $flag)
static

Sets local flag to new state.

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

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

◆ getApplication()

getApplication ( )
static

Get main instance of \CMain.

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

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

◆ getCacheManager()

getCacheManager ( )
static

Get instance of CACHE_MANAGER;

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

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

◆ getCurDir()

getCurDir ( )
static

Returns current dir.

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

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

◆ getDeletedLT()

getDeletedLT ( )
static

Get deleted life time days.

Возвращает
int

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

◆ getDocRoot()

getDocRoot ( )
static

Famous document root.

Возвращает
string

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

◆ getExternalSiteController()

getExternalSiteController ( )
static

Return site controller class, or pseudo.

Возвращает
string

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

◆ getHttpHost()

getHttpHost ( )
static

Get current host.

Возвращает
string

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

◆ getLangISO()

getLangISO ( )
static

Returns language code by ISO 639-1.

Возвращает
string

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

◆ getMainSiteById()

getMainSiteById ( string $siteId)
staticprotected

Returns main site row by id.

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

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

◆ getMainSiteId()

getMainSiteId ( )
static

Gets site id from main module.

Возвращает
string

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

◆ getMarketCollectionId()

getMarketCollectionId ( string $type)
static

Return ID for market collection, by zone

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

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

◆ getOption()

getOption ( $code,
$default = null )
static

Get option from module settings.

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

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

◆ getPageView()

getPageView ( $marker)
static

Get some content from some marker.

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

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

◆ getPreviewHost()

getPreviewHost ( )
static

Get URL of external template preview server. Can be rewrite by LANDING_PREVIEW_URL constant.

Возвращает
string

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

◆ getPreviewWebhook()

getPreviewWebhook ( )
static

Get webhook to the external template preview server. Can be rewrite by LANDING_PREVIEW_WEBHOOK constant.

Возвращает
string

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

◆ getPublicationPath()

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 строка 401

◆ getPublicationPathConst()

getPublicationPathConst ( )
static

Get constantly publication path.

Возвращает
string

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

◆ getRandomString()

getRandomString ( int $length)
static

Returns randomize string.

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

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

◆ getRestPath()

getRestPath ( )
static

Get current REST url for work with cloud.

Возвращает
string

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

◆ getSmnSiteDir()

getSmnSiteDir ( ?string $siteId)
staticprotected

Get main site local dir.

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

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

◆ getTemplateId()

getTemplateId ( $siteId = null)
static

Gets site template id.

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

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

◆ getThemeId()

getThemeId ( )
static

Get current theme id.

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

◆ getThemes()

getThemes ( )
static

Get themes from template dir.

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

◆ getThemesTypo()

getThemesTypo ( )
static

Get themes typo from template dir.

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

◆ getUfManager()

getUfManager ( )
static

Get instance of USER_FIELD_MANAGER.

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

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

◆ getUrlFromFile()

getUrlFromFile ( $file)
static

Get full url of local file.

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

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

◆ getUserFullName()

getUserFullName ( )
static

Get current user full name.

Возвращает
int

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

◆ getUserId()

getUserId ( )
static

Get current user id.

Возвращает
int

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

◆ getUserInstance()

getUserInstance ( )
static

Get main instance of \CUser.

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

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

◆ getVersion()

getVersion ( )
static

Get module version.

Возвращает
string

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

◆ getZone()

getZone ( )
static

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

Возвращает
string

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

◆ initAssets()

initAssets ( $lid = 0)
static

Add assets to page from hooks and themes

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

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

◆ isAdmin()

isAdmin ( )
static

Admin or not.

Возвращает
boolean

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

◆ isAjaxRequest()

isAjaxRequest ( )
static

Check is current hit is ajax

Возвращает
bool

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

◆ isAutoPublicationEnabled()

isAutoPublicationEnabled ( )
static

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

◆ isB24()

isB24 ( )
static

Is B24 portal?

Возвращает
bool

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

◆ isB24Cloud()

isB24Cloud ( )
static

Is b24 portal hosted no cloud (not box)

Возвращает
bool

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

◆ isB24Connector()

isB24Connector ( )
static

Is Site Manager and B24 connector

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

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

◆ isCloudDisable()

isCloudDisable ( )
static

Check if cloud is disabled by settings.

Возвращает
bool

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

◆ isExtendedSMN()

isExtendedSMN ( )
static

Returns true, if SMN is extended for CRM.

Возвращает
bool

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

◆ isFreePublicAllowed()

isFreePublicAllowed ( )
static

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

◆ isHttps()

isHttps ( )
static

Is https?

Возвращает
bool

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

◆ isStoreEnabled()

isStoreEnabled ( )
static

Enable or not shops in this edition.

Возвращает
bool

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

◆ isTemplateIdSystem()

isTemplateIdSystem ( $templateId)
static

Gets true, if this template id is system.

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

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

◆ licenseIsFreeSite()

licenseIsFreeSite ( string $type)
static

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

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

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

◆ licenseIsValid()

licenseIsValid ( )
static

Check if license is expired.

Возвращает
bool

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

◆ onBitrix24LicenseChange()

onBitrix24LicenseChange ( string $licenseType)
static

In cloud version on change highest plans.

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

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

◆ resetToFree()

resetToFree ( )
static

In cloud version reset highest plans to free.

Возвращает
void

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

◆ sanitize()

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 строка 1310

◆ savePicture()

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 строка 590

◆ setOption()

setOption ( $code,
$value )
static

Set option for module settings.

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

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

◆ setPageClass()

setPageClass ( $marker,
$class )
static

Add some class to some marker.

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

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

◆ setPageTitle()

setPageTitle ( $title,
$single = false )
static

Set page title.

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

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

◆ setPageView()

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 строка 470

◆ setTheme()

setTheme ( )
static

Set current selected or default color theme.

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

◆ setThemeId()

setThemeId ( )
static

Set new colored theme id.

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

◆ setThemeTypoId()

setThemeTypoId ( $themeTypoId)
static

Set new colored theme id.

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

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

Поля

◆ $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


Объявления и описания членов класса находятся в файле: