public function updateFields($table, $fields, $allow_delete_parts = false, $return_schema = false)
    {
        $fields = static::validateAsArray(
            $fields,
            ',',
            true,
            'The request contains no valid table field names or properties.'
        );

        $out = [];
        foreach ($fields as $field) {
            $name = (is_array($field)) ? array_get($field, 'name') : $field;
            $this->validateSchemaAccess($table, Verbs::PUT);
            $out[] = $this->updateField($table, $name, $field, $allow_delete_parts, $return_schema);
        }

        return $out;
    }
public function updateFields($table, $fields, $allow_delete_parts = false, $return_schema = false)
    {
        $fields = static::validateAsArray(
            $fields,
            ',',
            true,
            'The request contains no valid table field names or properties.'
        );

        $out = [];
        foreach ($fields as $field) {
            $name = (is_array($field)) ? array_get($field, 'name') : $field;
            $this->validateSchemaAccess($table, Verbs::PUT);
            $out[] = $this->updateField($table, $name, $field, $allow_delete_parts, $return_schema);
        }

        return $out;
    }
public function updateFields ( $ table , $ fields , $ allow_delete_parts = false , $ return_schema = false ) { $ fields = static :: validateAsArray ( $ fields , ',' , true , 'The request contains no valid table field names or properties.' ) ; $ out = [ ] ; foreach ( $ fields as $ field ) { $ name = ( is_array ( $ field ) ) ? array_get ( $ field , 'name' ) : $ field ; $ this -> validateSchemaAccess ( $ table , Verbs :: PUT ) ; $ out [ ] = $ this -> updateField ( $ table , $ name , $ field , $ allow_delete_parts , $ return_schema ) ; } return $ out ; }
Update multiple table fields

@param string $table
@param array  $fields
@param bool   $allow_delete_parts
@param bool   $return_schema Return a refreshed copy of the schema from the database

@throws \Exception
@return array
Update multiple table fields