1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
Класс Base
Граф наследования:Base:
Button Container Div Html Image BaseValuable BaseReport BaseWidget

Открытые члены

 getPrefix ()
 setPrefix ($prefix)
 getPostfix ()
 setPostfix ($postfix)
 getAssets ()
 addAssets ($assets)
 getForm ()
 setForm ($form)
 render ()
 printContent ()
 getJsEventListeners ()
 getJsEvents ()
 addJsEventListener (Base $field=null, $eventKey, $jsParams)
 getLabel ()
 setLabel ($label)
 getCompatibleViewTypes ()
 setCompatibleViewTypes ($compatibleViewTypes)
 getId ()
 setId ($id)
 getWeight ()
 setWeight ($weight)
 addClass ($class)
 getClasses ()
 getDataAttribute ($key)
 getDataAttributes ()
 setDataAttributes ($dataAttributes)
 addDataAttribute ($key, $value)
 getRenderedIdAttribute ()
 getKey ()
 setKey ($key)
 getRenderedClassAttributes ()
 getRenderedDataAttributes ()
 getRenderedInlineStyle ()
 isDisplayLabel ()
 setIsDisplayLabel ($isDisplayLabel)
 addInlineStyle ($key, $value)
 getInlineStyle ()
 setInlineStyle ($inlineStyle)
 isDisplay ()
 setDisplay ($display)

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

static getClassName ()

Поля данных

const FIELDS_COMPONENT_NAME = 'bitrix:report.visualconstructor.config.fields'

Защищенные члены

 includeFieldComponent ($templateName, $params=array())

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

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

Методы

◆ addAssets()

addAssets ( $assets)

Attach js, css, or inline assets to field.

Аргументы
array$assetsArray of assets which attach to field.
Возвращает
void

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

◆ addClass()

addClass ( $class)

Add to class list class string.

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

Переопределяется в DivPartHtml.

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

◆ addDataAttribute()

addDataAttribute ( $key,
$value )
Аргументы
string$keyKey for data attribute. ('role').
string$valueValue for data attribute. ('widget').
Возвращает
void

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

◆ addInlineStyle()

addInlineStyle ( $key,
$value )

Add inline style by key and value.

Аргументы
string$keyKey of inline style. ('background-color').
string$valueValue Of inline style. ('red').
Возвращает
void

Переопределяется в DivPartHtml.

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

◆ addJsEventListener()

addJsEventListener ( Base $field = null,
$eventKey,
$jsParams )

Add js event handler to field on some event which fire on $field in first parameter of this function.

Аргументы
self | null$fieldField which fire event.
string$eventKeyEvent key which listen this field.
array$jsParamsJS parameters which pass to handler.
Возвращает
$this

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

◆ getAssets()

getAssets ( )
Возвращает
array

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

◆ getClasses()

getClasses ( )
Возвращает
array

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

◆ getClassName()

getClassName ( )
static
Возвращает
string

Переопределяется в BaseWidget.

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

◆ getCompatibleViewTypes()

getCompatibleViewTypes ( )
Возвращает
array

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

◆ getDataAttribute()

getDataAttribute ( $key)

Get data attribute by key.

Аргументы
string$keyKey for data attribute which will return.
Возвращает
mixed|null

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

◆ getDataAttributes()

getDataAttributes ( )
Возвращает
array

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

◆ getForm()

getForm ( )
Возвращает
Form

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

◆ getId()

getId ( )
Возвращает
string

Переопределяется в BaseValuable.

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

◆ getInlineStyle()

getInlineStyle ( )
Возвращает
array

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

◆ getJsEventListeners()

getJsEventListeners ( )
Возвращает
array

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

◆ getJsEvents()

getJsEvents ( )
Возвращает
array

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

◆ getKey()

getKey ( )
Возвращает
string

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

◆ getLabel()

getLabel ( )
Возвращает
string

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

◆ getPostfix()

getPostfix ( )
Возвращает
Base

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

◆ getPrefix()

getPrefix ( )
Возвращает
Base

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

◆ getRenderedClassAttributes()

getRenderedClassAttributes ( )

Convert class list property collection to string for render as html in field element.

Возвращает
string

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

◆ getRenderedDataAttributes()

getRenderedDataAttributes ( )

Conver data atttribute property collection to string for render as html in field element.

Возвращает
string

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

◆ getRenderedIdAttribute()

getRenderedIdAttribute ( )

Conver id property to string for render as html in element.

Возвращает
string

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

◆ getRenderedInlineStyle()

getRenderedInlineStyle ( )

Convert inline style propery collection to string for render as html.

Возвращает
string

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

◆ getWeight()

getWeight ( )
Возвращает
int

Переопределяется в BaseReport.

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

◆ includeFieldComponent()

includeFieldComponent ( $templateName,
$params = array() )
protected

Include component for field.

Аргументы
string$templateNameTemplate name string.
array$paramsParameters pass to component.
Возвращает
void

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

◆ isDisplay()

isDisplay ( )
Возвращает
bool

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

◆ isDisplayLabel()

isDisplayLabel ( )
Возвращает
bool

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

◆ printContent()

printContent ( )
abstract

Print field html/string ore somthing else printable.

Возвращает
void

Переопределяется в Button, ComplexHtml, Container, Div, Html, Image, CheckBox, ColorPicker, CustomDropDown, DropDown, Hidden, LabelField, PreviewBlock и TimePeriod.

◆ render()

render ( )

Check is displayable this field, if yes collect all assets, And print content.

Возвращает
void

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

◆ setCompatibleViewTypes()

setCompatibleViewTypes ( $compatibleViewTypes)

Setter of compatible widget view types.

Аргументы
array$compatibleViewTypesCompatible widget view type list.
Возвращает
void

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

◆ setDataAttributes()

setDataAttributes ( $dataAttributes)

Set Data attributes by array of pair key => values.

Аргументы
array$dataAttributesArray of pair key=>value.
Возвращает
void

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

◆ setDisplay()

setDisplay ( $display)

Setter for display mode.

Аргументы
bool$displayRender or not this field marker.
Возвращает
void

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

◆ setForm()

setForm ( $form)

Setter for form context.

Аргументы
Form$formForm where render field.
Возвращает
void

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

◆ setId()

setId ( $id)

Setter for id.

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

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

◆ setInlineStyle()

setInlineStyle ( $inlineStyle)

Setter dor inline style.

Аргументы
array$inlineStyleInline style string.
Возвращает
void

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

◆ setIsDisplayLabel()

setIsDisplayLabel ( $isDisplayLabel)

Setter for display mode of label of field.

Аргументы
bool$isDisplayLabelTrue if label must render else false.
Возвращает
void

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

◆ setKey()

setKey ( $key)

Seter for key.

Аргументы
string$keyUnique key for field.
Возвращает
void

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

◆ setLabel()

setLabel ( $label)

Setter for field label.

Аргументы
string$labelString to set as label for field.
Возвращает
void

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

◆ setPostfix()

setPostfix ( $postfix)

Setter for string which render after field content.

Аргументы
string | Base$postfixString for render after content.
Возвращает
void

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

◆ setPrefix()

setPrefix ( $prefix)

Setter for string which render before field content.

Аргументы
string | Base$prefixString for render before content.
Возвращает
void

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

◆ setWeight()

setWeight ( $weight)

Setter for Weight.

Аргументы
int$weightInteger of weightof Field.
Возвращает
void

Переопределяется в BaseReport.

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

Поля

◆ FIELDS_COMPONENT_NAME

const FIELDS_COMPONENT_NAME = 'bitrix:report.visualconstructor.config.fields'

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


Объявления и описания членов класса находятся в файле:
  • C:/bitrix/modules/report/lib/visualconstructor/fields/base.php