Example #1
0
 /**
  * Import or update sessions from CSV.
  * 
  * @subcommand import-sessions
  * @synopsis <file>
  */
 public function import_sessions($args)
 {
     list($file) = $args;
     ONA_Importer::import_sessions($file, array($this, 'output'));
 }
Example #2
0
function ONA_import_speakers($args)
{
    $import_options = get_option('importer_settings');
    $speaker_file = $import_options['speaker_doc'];
    ONA_Importer::import_speakers($speaker_file, 'ONA_import_callback');
}