src/Keboola/Writer/GoodData/Client.php
public function updateTableColumn($writerId, $tableId, $column, array $configuration)
    {
        $allowedConfigurationOptions = ['title', 'type', 'reference', 'schemaReference', 'format', 'dateDimension'];
        foreach ($configuration as $k => $v) {
            if (!in_array($k, $allowedConfigurationOptions)) {
                throw new ClientException("Option '$k' is not allowed, choose from: " . implode(', ', $allowedConfigurationOptions));
            }
        }

        $params = [
            'writerId' => $writerId,
            'tableId' => $tableId,
            'column' => $column
        ];
        $params = array_merge($params, $configuration);
        return $this->getCommand('UpdateTableColumn', $params)->execute();
    }
public function updateTableColumn($writerId, $tableId, $column, array $configuration)
    {
        $allowedConfigurationOptions = ['title', 'type', 'reference', 'schemaReference', 'format', 'dateDimension'];
        foreach ($configuration as $k => $v) {
            if (!in_array($k, $allowedConfigurationOptions)) {
                throw new ClientException("Option '$k' is not allowed, choose from: " . implode(', ', $allowedConfigurationOptions));
            }
        }

        $params = [
            'writerId' => $writerId,
            'tableId' => $tableId,
            'column' => $column
        ];
        $params = array_merge($params, $configuration);
        return $this->getCommand('UpdateTableColumn', $params)->execute();
    }
public function updateTableColumn ( $ writerId , $ tableId , $ column , array $ configuration ) { $ allowedConfigurationOptions = [ 'title' , 'type' , 'reference' , 'schemaReference' , 'format' , 'dateDimension' ] ; foreach ( $ configuration as $ k => $ v ) { if ( ! in_array ( $ k , $ allowedConfigurationOptions ) ) { throw new ClientException ( "Option '$k' is not allowed, choose from: " . implode ( ', ' , $ allowedConfigurationOptions ) ) ; } } $ params = [ 'writerId' => $ writerId , 'tableId' => $ tableId , 'column' => $ column ] ; $ params = array_merge ( $ params , $ configuration ) ; return $ this -> getCommand ( 'UpdateTableColumn' , $ params ) -> execute ( ) ; }
Update table column configuration
@param $writerId
@param $tableId
@param $column
@param array $configuration Array with keys: [title, type, reference, schemaReference, format, dateDimension]
@throws ClientException
@return mixed
Update table column configuration