protected static function parseColumn(array $rawColumn, DataTablesWrapperInterface $wrapper) {

        if (false === static::isValidRawColumn($rawColumn)) {
            return null;
        }

        $dtColumn = $wrapper->getColumn($rawColumn[DataTablesColumnInterface::DATATABLES_PARAMETER_DATA]);
        if (null === $dtColumn) {
            return null;
        }
        if ($dtColumn->getName() !== $rawColumn[DataTablesColumnInterface::DATATABLES_PARAMETER_NAME]) {
            return null;
        }
        if (false === $dtColumn->getSearchable()) {
            $dtColumn->setSearch(static::parseSearch([])); // Set a default search.
            return $dtColumn;
        }

        $dtColumn->setSearch(static::parseSearch($rawColumn[DataTablesColumnInterface::DATATABLES_PARAMETER_SEARCH]));

        return $dtColumn;
    }
protected static function parseColumn(array $rawColumn, DataTablesWrapperInterface $wrapper) {

        if (false === static::isValidRawColumn($rawColumn)) {
            return null;
        }

        $dtColumn = $wrapper->getColumn($rawColumn[DataTablesColumnInterface::DATATABLES_PARAMETER_DATA]);
        if (null === $dtColumn) {
            return null;
        }
        if ($dtColumn->getName() !== $rawColumn[DataTablesColumnInterface::DATATABLES_PARAMETER_NAME]) {
            return null;
        }
        if (false === $dtColumn->getSearchable()) {
            $dtColumn->setSearch(static::parseSearch([])); // Set a default search.
            return $dtColumn;
        }

        $dtColumn->setSearch(static::parseSearch($rawColumn[DataTablesColumnInterface::DATATABLES_PARAMETER_SEARCH]));

        return $dtColumn;
    }
protected static function parseColumn ( array $ rawColumn , DataTablesWrapperInterface $ wrapper ) { if ( false === static :: isValidRawColumn ( $ rawColumn ) ) { return null ; } $ dtColumn = $ wrapper -> getColumn ( $ rawColumn [ DataTablesColumnInterface :: DATATABLES_PARAMETER_DATA ] ) ; if ( null === $ dtColumn ) { return null ; } if ( $ dtColumn -> getName ( ) !== $ rawColumn [ DataTablesColumnInterface :: DATATABLES_PARAMETER_NAME ] ) { return null ; } if ( false === $ dtColumn -> getSearchable ( ) ) { $ dtColumn -> setSearch ( static :: parseSearch ( [ ] ) ) ; // Set a default search. return $ dtColumn ; } $ dtColumn -> setSearch ( static :: parseSearch ( $ rawColumn [ DataTablesColumnInterface :: DATATABLES_PARAMETER_SEARCH ] ) ) ; return $ dtColumn ; }
Parse a raw column.

@param array $rawColumn The raw column.
@param DataTablesWrapperInterface $wrapper The wrapper.
@return DataTablesColumnInterface Returns the column.
Parse a raw column .