1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
Класс ButtonAttributes
Граф наследования:ButtonAttributes:
Arrayable

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

 __construct (array $attributes=[])
 setAttributes (array $attributes)
 getAttribute ($name, $defaultValue=null)
 addDataAttribute ($name, $value=null)
 getDataAttribute ($name, $defaultValue=null)
 getDataAttributes ()
 addJsonOption ($key, $value)
 removeJsonOption ($key)
 setJsonOptions (array $options)
 getJsonOptions ()
 addClass ($className)
 hasClass ($className)
 setClassList (array $classList)
 removeClass ($className)
 getIterator ()
 offsetExists ($offset)
offsetGet ($offset)
 offsetSet ($offset, $value)
 offsetUnset ($offset)
 count ()
 toString ()
 __toString ()
 toArray ()

Поля данных

const JSON_OPTIONS_DATA_ATTR = 'data-json-options'

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

static convertClassesToString ($classes)
static convertStylesToString ($styles)
static addDataPrefix ($name)
static hasDataPrefix ($name)
static deleteDataPrefix ($name)
static convertDataAttributesToAttributes (array $dataAttributes)
static splitDataAttributesAndAnother (array $attributes)

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

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

Конструктор(ы)

◆ __construct()

__construct ( array $attributes = [])

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

Методы

◆ __toString()

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

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

◆ addClass()

addClass ( $className)
Аргументы
string$className
Возвращает
$this

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

◆ addDataAttribute()

addDataAttribute ( $name,
$value = null )
Аргументы
string$name
mixed | null$value
Возвращает
$this

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

◆ addDataPrefix()

addDataPrefix ( $name)
staticprotected

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

◆ addJsonOption()

addJsonOption ( $key,
$value )

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

◆ convertClassesToString()

convertClassesToString ( $classes)
staticprotected

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

◆ convertDataAttributesToAttributes()

convertDataAttributesToAttributes ( array $dataAttributes)
staticprotected

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

◆ convertStylesToString()

convertStylesToString ( $styles)
staticprotected

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

◆ count()

count ( )

Count elements of an object int The custom count as an integer.

The return value is cast to an integer.

Начиная с
5.1.0

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

◆ deleteDataPrefix()

deleteDataPrefix ( $name)
staticprotected

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

◆ getAttribute()

getAttribute ( $name,
$defaultValue = null )
Аргументы
string$name
mixed | null$defaultValue
Возвращает
mixed|null

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

◆ getDataAttribute()

getDataAttribute ( $name,
$defaultValue = null )
Аргументы
string$name
mixed | null$defaultValue
Возвращает
mixed|null

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

◆ getDataAttributes()

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

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

◆ getIterator()

getIterator ( )

Retrieve an external iterator An instance of an object implementing Iterator or Traversable 5.0.0

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

◆ getJsonOptions()

getJsonOptions ( )

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

◆ hasClass()

hasClass ( $className)
Аргументы
string$className
Возвращает
bool

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

◆ hasDataPrefix()

hasDataPrefix ( $name)
staticprotected

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

◆ offsetExists()

offsetExists ( $offset)

Whether a offset exists mixed $offset An offset to check for.

Возвращает
boolean true on success or false on failure.

The return value will be casted to boolean if non-boolean was returned.

Начиная с
5.0.0

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

◆ offsetGet()

& offsetGet ( $offset)

Offset to retrieve mixed $offset The offset to retrieve.

Возвращает
mixed Can return all value types.
Начиная с
5.0.0

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

◆ offsetSet()

offsetSet ( $offset,
$value )

Offset to set mixed $offset The offset to assign the value to.

Аргументы
mixed$value

The value to set.

Возвращает
void
Начиная с
5.0.0

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

◆ offsetUnset()

offsetUnset ( $offset)

Offset to unset mixed $offset The offset to unset.

Возвращает
void
Начиная с
5.0.0

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

◆ removeClass()

removeClass ( $className)
Аргументы
string$className
Возвращает
$this

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

◆ removeJsonOption()

removeJsonOption ( $key)

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

◆ setAttributes()

setAttributes ( array $attributes)

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

◆ setClassList()

setClassList ( array $classList)

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

◆ setJsonOptions()

setJsonOptions ( array $options)

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

◆ splitDataAttributesAndAnother()

splitDataAttributesAndAnother ( array $attributes)
staticprotected

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

◆ toArray()

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

Замещает Arrayable.

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

◆ toString()

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

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

Поля

◆ JSON_OPTIONS_DATA_ATTR

const JSON_OPTIONS_DATA_ATTR = 'data-json-options'

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


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