This is the code documentation for the SproutCMS project

function _importColGuess()

Try to guess the database name for a given CSV heading.
If you can't figure it out, return NULL.
If NULL is returned, the rudimentry almost-exact guesser will be run.


string $ManagedAdminController->_importColGuess ( string $csv_heading );


  1. string $csv_heading
    The exact heading provided in the CSV file.

Return value

  • string
    The database field name to use. Must exactly match the database field name.