public function getColumnByName($name)
    {
        foreach ($this->columns as $column) {
            if (strcmp($column->name, $name) === 0) {
                return $column;
            }
        }
        return null;
    }
public function getColumnByName($name)
    {
        foreach ($this->columns as $column) {
            if (strcmp($column->name, $name) === 0) {
                return $column;
            }
        }
        return null;
    }
public function getColumnByName ( $ name ) { foreach ( $ this -> columns as $ column ) { if ( strcmp ( $ column -> name , $ name ) === 0 ) { return $ column ; } } return null ; }
Helper function to get a column by its name

@param string $name

@return CDataColumn|null
Helper function to get a column by its name