dosamigos\fileupload\FileUploadUI::init PHP Method

init() public method

public init ( )
    public function init()
    {
        parent::init();
        $this->fieldOptions['multiple'] = true;
        $this->fieldOptions['id'] = ArrayHelper::getValue($this->options, 'id');
        $this->options['id'] .= '-fileupload';
        $this->options['data-upload-template-id'] = $this->uploadTemplateId ?: 'template-upload';
        $this->options['data-download-template-id'] = $this->downloadTemplateId ?: 'template-download';
    }

Usage Example

コード例 #1
0
ファイル: FileUpload.php プロジェクト: albertborsos/yii2-lib
 public function init()
 {
     parent::init();
     $this->formView = '@vendor/albertborsos/yii2-lib/views/fileupload/form';
     $this->fieldOptions['id'] = ArrayHelper::getValue($this->options, 'id');
     $this->options['id'] .= '-form';
     $this->options['enctype'] = 'multipart/form-data';
     $this->options['uploadTemplateId'] = $this->uploadTemplateId ?: '#template-upload';
     $this->options['downloadTemplateId'] = $this->downloadTemplateId ?: '#template-download';
 }
All Usage Examples Of dosamigos\fileupload\FileUploadUI::init