19 public function __construct(
$identifier,$modelInstance=
null,$fieldsOrder,$fieldsDefinition,$fields=[],$captions=[],$separators=[]) {
20 if(!isset($modelInstance)){
24 $this->
_initForm($fieldsOrder, $fieldsDefinition,$fields,$captions,$separators);
29 protected function _initForm($fieldsOrder,$fieldsDefinition,$fields=[],$captions=[],$separators=[]){
30 $this->_fieldsOrder=$fieldsOrder;
39 if(\is_string($fieldName)){
40 $index=\array_search($fieldName, $this->_fieldsOrder);
44 protected function _fieldAs($elementCallback,&$index,$attributes=NULL,$prefix=
null){
46 return parent::_fieldAs($elementCallback, $index,$attributes,$prefix);
51 parent::removeField($fieldName);
52 \array_splice($this->_fieldsOrder,$this->
_getIndex($fieldName),1);
57 return parent::compile($js,$view);