src/Utility/FileUpload.php
private function getFileFields() : array
    {
        $config = new ModuleConfig(ConfigType::MIGRATION(), $this->table->getAlias());
        $config = json_encode($config->parse());
        if (false === $config) {
            return [];
        }

        $fields = json_decode($config, true);

        if (empty($fields)) {
            return [];
        }

        $fields = array_filter($fields, function ($params) {
            return in_array($params['type'], self::FIELD_TYPES);
        });

        return array_keys($fields);
    }
private function getFileFields() : array
    {
        $config = new ModuleConfig(ConfigType::MIGRATION(), $this->table->getAlias());
        $config = json_encode($config->parse());
        if (false === $config) {
            return [];
        }

        $fields = json_decode($config, true);

        if (empty($fields)) {
            return [];
        }

        $fields = array_filter($fields, function ($params) {
            return in_array($params['type'], self::FIELD_TYPES);
        });

        return array_keys($fields);
    }
private function getFileFields ( ) : array { $ config = new ModuleConfig ( ConfigType :: MIGRATION ( ) , $ this -> table -> getAlias ( ) ) ; $ config = json_encode ( $ config -> parse ( ) ) ; if ( false === $ config ) { return [ ] ; } $ fields = json_decode ( $ config , true ) ; if ( empty ( $ fields ) ) { return [ ] ; } $ fields = array_filter ( $ fields , function ( $ params ) { return in_array ( $ params [ 'type' ] , self :: FIELD_TYPES ) ; } ) ; return array_keys ( $ fields ) ; }
File-type fields getter.

@return mixed[]
File - type fields getter .