private function createListControl($repeater, $fieldOfRepeater)
    {
        $nameFormat = '%s[fields]' . sprintf('[%s][value][%s]', $this->getFieldId(), $repeater->id) . '[%s][value]';
        $idFormat = '%s_' . sprintf('%s_%s_', $this->getFieldId(), $repeater->id) . '_%s_value';

        if ($fieldOfRepeater->count()) {
            foreach ($fieldOfRepeater as $field) {
                $dbData = $this->getFieldDataInDB($field->id, $repeater->id);
                $fieldControl = $this->createFieldControl($field, $repeater->id);
                $fieldControl->setHtmlItemTemplate('%s');
                $fieldControl->setHtmlNameFormat($nameFormat);
                $fieldControl->setHtmlIdFormat($idFormat);

               // $value = $repeater->getFieldValue($field->id);
                $fieldControl->setValue($dbData);

                $controls[$field->id] = $fieldControl;
            }
        }

        return $controls;
    }
private function createListControl($repeater, $fieldOfRepeater)
    {
        $nameFormat = '%s[fields]' . sprintf('[%s][value][%s]', $this->getFieldId(), $repeater->id) . '[%s][value]';
        $idFormat = '%s_' . sprintf('%s_%s_', $this->getFieldId(), $repeater->id) . '_%s_value';

        if ($fieldOfRepeater->count()) {
            foreach ($fieldOfRepeater as $field) {
                $dbData = $this->getFieldDataInDB($field->id, $repeater->id);
                $fieldControl = $this->createFieldControl($field, $repeater->id);
                $fieldControl->setHtmlItemTemplate('%s');
                $fieldControl->setHtmlNameFormat($nameFormat);
                $fieldControl->setHtmlIdFormat($idFormat);

               // $value = $repeater->getFieldValue($field->id);
                $fieldControl->setValue($dbData);

                $controls[$field->id] = $fieldControl;
            }
        }

        return $controls;
    }
private function createListControl ( $ repeater , $ fieldOfRepeater ) { $ nameFormat = '%s[fields]' . sprintf ( '[%s][value][%s]' , $ this -> getFieldId ( ) , $ repeater -> id ) . '[%s][value]' ; $ idFormat = '%s_' . sprintf ( '%s_%s_' , $ this -> getFieldId ( ) , $ repeater -> id ) . '_%s_value' ; if ( $ fieldOfRepeater -> count ( ) ) { foreach ( $ fieldOfRepeater as $ field ) { $ dbData = $ this -> getFieldDataInDB ( $ field -> id , $ repeater -> id ) ; $ fieldControl = $ this -> createFieldControl ( $ field , $ repeater -> id ) ; $ fieldControl -> setHtmlItemTemplate ( '%s' ) ; $ fieldControl -> setHtmlNameFormat ( $ nameFormat ) ; $ fieldControl -> setHtmlIdFormat ( $ idFormat ) ; // $value = $repeater->getFieldValue($field->id); $ fieldControl -> setValue ( $ dbData ) ; $ controls [ $ field -> id ] = $ fieldControl ; } } return $ controls ; }
Set list control of repeater.

@param $repeater

@return mixed
Set list control of repeater .