public function setFilesField($fieldsOptions)
    {
        if (isset(static::$fileFields)) {
            static::$fileFields = array_merge($this->getDefinedUploadFields(), $fieldsOptions);
        } else {
            $this->filesFields = $fieldsOptions;
        }

        return $this;
    }
public function setFilesField($fieldsOptions)
    {
        if (isset(static::$fileFields)) {
            static::$fileFields = array_merge($this->getDefinedUploadFields(), $fieldsOptions);
        } else {
            $this->filesFields = $fieldsOptions;
        }

        return $this;
    }
public function setFilesField ( $ fieldsOptions ) { if ( isset ( static :: $ fileFields ) ) { static :: $ fileFields = array_merge ( $ this -> getDefinedUploadFields ( ) , $ fieldsOptions ) ; } else { $ this -> filesFields = $ fieldsOptions ; } return $ this ; }
Setter for model file fields

@param $fieldsOptions
@return $this
Setter for model file fields