getLoadData -> getLoadValue
This commit is contained in:
parent
0be582c42d
commit
d91d4112a5
|
|
@ -101,7 +101,7 @@ abstract class FormWidgetBase extends WidgetBase
|
|||
* supports nesting via HTML array.
|
||||
* @return string
|
||||
*/
|
||||
public function getLoadData()
|
||||
public function getLoadValue()
|
||||
{
|
||||
list($model, $attribute) = $this->getModelArrayAttribute($this->valueFrom);
|
||||
|
||||
|
|
|
|||
|
|
@ -106,7 +106,7 @@ class CodeEditor extends FormWidgetBase
|
|||
$this->vars['stretch'] = $this->formField->stretch;
|
||||
$this->vars['size'] = $this->formField->size;
|
||||
$this->vars['name'] = $this->formField->getName();
|
||||
$this->vars['value'] = $this->getLoadData();
|
||||
$this->vars['value'] = $this->getLoadValue();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@ class ColorPicker extends FormWidgetBase
|
|||
public function prepareVars()
|
||||
{
|
||||
$this->vars['name'] = $this->formField->getName();
|
||||
$this->vars['value'] = $value = $this->getLoadData();
|
||||
$this->vars['value'] = $value = $this->getLoadValue();
|
||||
$this->vars['availableColors'] = $this->availableColors;
|
||||
$this->vars['isCustomColor'] = !in_array($value, $this->availableColors);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -87,7 +87,7 @@ class DataTable extends FormWidgetBase
|
|||
protected function populateTableWidget()
|
||||
{
|
||||
$dataSource = $this->table->getDataSource();
|
||||
$records = $this->getLoadData() ?: [];
|
||||
$records = $this->getLoadValue() ?: [];
|
||||
$dataSource->initRecords((array) $records);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -62,7 +62,7 @@ class DatePicker extends FormWidgetBase
|
|||
$this->vars['timeName'] = self::TIME_PREFIX.$this->formField->getName(false);
|
||||
$this->vars['timeValue'] = null;
|
||||
|
||||
if ($value = $this->getLoadData()) {
|
||||
if ($value = $this->getLoadValue()) {
|
||||
|
||||
/*
|
||||
* Date / Time
|
||||
|
|
|
|||
|
|
@ -143,7 +143,7 @@ class RecordFinder extends FormWidgetBase
|
|||
public function prepareVars()
|
||||
{
|
||||
// This should be a relation and return a Model
|
||||
$this->relationModel = $this->getLoadData();
|
||||
$this->relationModel = $this->getLoadValue();
|
||||
|
||||
$this->vars['value'] = $this->getKeyValue();
|
||||
$this->vars['field'] = $this->formField;
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ class RichEditor extends FormWidgetBase
|
|||
$this->vars['stretch'] = $this->formField->stretch;
|
||||
$this->vars['size'] = $this->formField->size;
|
||||
$this->vars['name'] = $this->formField->getName();
|
||||
$this->vars['value'] = $this->getLoadData();
|
||||
$this->vars['value'] = $this->getLoadValue();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue