protected function setup() {
        if (!$this->_isSetup) {
            $defaultConfig = array(
                'srcBasePath' => Yii::getAlias('@webroot'),
                'dstBasePath' => Yii::$app->czaHelper->folderOrganizer->getEntityUploadPath(true),
                'dstUrlBase' => Yii::$app->czaHelper->folderOrganizer->getEntityUploadPath(),
                'underOwnerEntityPath' => true,
                'createMode' => 0775,
                'cachingPath' => '',
            );
            $this->config = \yii\helpers\ArrayHelper::merge($defaultConfig, $this->config);


            $defaultOptions = array(
                'isTranslation' => false,
                'handleFiles' => true,
                'handleImages' => true,
            );
            $this->options = \yii\helpers\ArrayHelper::merge($defaultOptions, $this->options);
            $this->_isSetup = true;
        }
    }
protected function setup() {
        if (!$this->_isSetup) {
            $defaultConfig = array(
                'srcBasePath' => Yii::getAlias('@webroot'),
                'dstBasePath' => Yii::$app->czaHelper->folderOrganizer->getEntityUploadPath(true),
                'dstUrlBase' => Yii::$app->czaHelper->folderOrganizer->getEntityUploadPath(),
                'underOwnerEntityPath' => true,
                'createMode' => 0775,
                'cachingPath' => '',
            );
            $this->config = \yii\helpers\ArrayHelper::merge($defaultConfig, $this->config);


            $defaultOptions = array(
                'isTranslation' => false,
                'handleFiles' => true,
                'handleImages' => true,
            );
            $this->options = \yii\helpers\ArrayHelper::merge($defaultOptions, $this->options);
            $this->_isSetup = true;
        }
    }
protected function setup ( ) { if ( ! $ this -> _isSetup ) { $ defaultConfig = array ( 'srcBasePath' => Yii :: getAlias ( '@webroot' ) , 'dstBasePath' => Yii :: $ app -> czaHelper -> folderOrganizer -> getEntityUploadPath ( true ) , 'dstUrlBase' => Yii :: $ app -> czaHelper -> folderOrganizer -> getEntityUploadPath ( ) , 'underOwnerEntityPath' => true , 'createMode' => 0775 , 'cachingPath' => '' , ) ; $ this -> config = \ yii \ helpers \ ArrayHelper :: merge ( $ defaultConfig , $ this -> config ) ; $ defaultOptions = array ( 'isTranslation' => false , 'handleFiles' => true , 'handleImages' => true , ) ; $ this -> options = \ yii \ helpers \ ArrayHelper :: merge ( $ defaultOptions , $ this -> options ) ; $ this -> _isSetup = true ; } }
setup config on flying
setup config on flying