Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
Класс Icon

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

static processing (Block $block)
 
static processingLanding (int $landingId)
 
static view (Block $block)
 

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

const CONTENT_ICON_FILE_NAME = 'content.css'
 
const RULE_ICON_FILE_NAME = 'style.css'
 
const ICON_FONT_FILE_NAME = 'font.woff'
 
const ICON_FONT_FILE_NAME_2 = 'font.woff2'
 

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

static getIconsPath (string $vendorName)
 
static getIconsContentByVendor (string $vendorName)
 
static getIconContentByClass (string $className, string $vendorName)
 
static saveAssets (Block $block)
 
static updateIconsBeforeView ($iconData)
 
static updateIconsBeforeSave (string $vendor, string $class)
 

Защищенные данные

const VENDOR_UPDATES
 
const ICON_UPDATES
 

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

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

Методы

◆ getIconContentByClass()

static getIconContentByClass ( string $className,
string $vendorName )
staticprotected

Returns icon css content.

Аргументы
string$classNameClass name.
string$vendorNameVendor folder code.
Возвращает
string|null

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

◆ getIconsContentByVendor()

static getIconsContentByVendor ( string $vendorName)
staticprotected

Parses icon file and returns content for each icon class.

Аргументы
string$vendorNameVendor folder code.
Возвращает
array

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

◆ getIconsPath()

static getIconsPath ( string $vendorName)
staticprotected

Tries to resolve and returns icon file path.

Аргументы
string$vendorNameVendor folder code.
Возвращает
string|null

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

◆ processing()

static processing ( Block $block)
static

Processing icons in the block content.

Аргументы
Block$blockBlock instance.
Возвращает
void

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

◆ processingLanding()

static processingLanding ( int $landingId)
static

Processing entire landing.

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

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

◆ saveAssets()

static saveAssets ( Block $block)
staticprotected

Tries to find any icons and save them assets to the block.

Аргументы
Block$blockBock instance.
Возвращает
void

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

◆ updateIconsBeforeSave()

static updateIconsBeforeSave ( string $vendor,
string $class )
staticprotected

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

◆ updateIconsBeforeView()

static updateIconsBeforeView ( $iconData)
staticprotected

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

◆ view()

static view ( Block $block)
static

Shows icons styles on the block output.

Аргументы
Block$blockBlock instance.
Возвращает
void

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

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

◆ CONTENT_ICON_FILE_NAME

const CONTENT_ICON_FILE_NAME = 'content.css'

File name with icon content.

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

◆ ICON_FONT_FILE_NAME

const ICON_FONT_FILE_NAME = 'font.woff'

File names of two types of fonts

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

◆ ICON_FONT_FILE_NAME_2

const ICON_FONT_FILE_NAME_2 = 'font.woff2'

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

◆ ICON_UPDATES

const ICON_UPDATES
protected

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

◆ RULE_ICON_FILE_NAME

const RULE_ICON_FILE_NAME = 'style.css'

File name with icon css rules.

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

◆ VENDOR_UPDATES

const VENDOR_UPDATES
protected
Инициализатор
= [
'fa' => 'far',
]

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