Версия: 6.x
burger close
Класс SelectVariableListField
Граф наследования:SelectVariableListField:
AbstractVariableListField

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

 __construct ($name, $column_title, $first_list, $list=null)
 
 getElementHtml ($field_name, $row_index= '%index%', $value=null)
 
- Открытые члены унаследованные от AbstractVariableListField
 __construct ($name, $column_title)
 
 getName ()
 
 getColumnTitle ()
 
 setArrayWrap ($name)
 
 getArrayWrap ()
 
 setAttributes ($key_value)
 
 getAttributes ()
 
 getAttributesInline ()
 
 getElementHtml ($field_name, $row_index= '%index%', $value=null)
 

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

 getValues ()
 
- Защищенные члены унаследованные от AbstractVariableListField
 wrapField ($field_name)
 

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

 $first_list
 
 $list
 
 $values = null
 
- Защищенные данные унаследованные от AbstractVariableListField
 $name
 
 $column_title
 
 $array_wrap
 

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

__construct (   $name,
  $column_title,
  $first_list,
  $list = null 
)

SelectVariableListField constructor.

Аргументы
string$name- атрибут name поля
string$column_title- название колонки
string[]$first_list - изначальный список значений
callable$list- функция для полученя список значений

Методы

getElementHtml (   $field_name,
  $row_index = '%index%',
  $value = null 
)

Возвращает html элемента

Аргументы
string$field_name- имя ORM поля
string$row_index- индекс строки в таблице
mixed$value- значение
Возвращает
string
getValues ( )
protected

Возвращает список возможных значений

Возвращает
string[]

Поля

$first_list
protected
$list
protected
$values = null
protected