~fabiocbalbuquerque/sahana-agasti/web-services

« back to all changes in this revision

Viewing changes to apps/frontend/lib/util/agImportHelper.class.php

Sync with trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
45
45
  abstract protected function addDynamicColumns(array $importHeaders);
46
46
 
47
47
  /**
48
 
   * This class's constructor.
 
48
   * Method to initialize this class
49
49
   * @param string $tempTable The name of the temporary import table to use
50
50
   * @param string $logEventLevel An optional parameter dictating the event level logging to be used
51
51
   */
52
 
  public function __construct($tempTable, $logEventLevel = NULL)
 
52
  protected function __init($tempTable, $logEventLevel)
53
53
  {
54
 
    parent::__construct($logEventLevel);
55
 
 
56
54
    $this->eh = new agEventHandler($logEventLevel);
57
55
 
58
56
    // get our error threshold
514
512
   * @param string $sheetName The name of the sheet being validated.
515
513
   * @return boolean A boolean indicating un/successful validation of column headers.
516
514
   */
517
 
  private function validateColumnHeaders(array $importFileHeaders, $sheetName)
 
515
  protected function validateColumnHeaders(array $importFileHeaders, $sheetName)
518
516
  {
519
517
    // Check if import file header is empty
520
518
    if (empty($importFileHeaders)) {