~fabiocbalbuquerque/sahana-agasti/web-services

« back to all changes in this revision

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

  • Committer: Shirley Chan
  • Date: 2011-04-22 22:00:03 UTC
  • mto: (1.26.1 push-trunk) (7.1.1 mayon)
  • mto: This revision was merged to the branch mainline in revision 7.
  • Revision ID: shirley.chan@mail.cuny.edu-20110422220003-tknohsmfw5pa1q4t
Schema update on search related tables.

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
            // array( [order] => array(componentName => component name, helperName => Name of the helper object, throwOnError => boolean, methodName => method name) )
32
32
            $importComponents = array(),
33
33
 
34
 
           //array( [importRowId] => array( _rawData => array(fetched data), primaryKeys => array(keyName => keyValue, success => boolean) )
 
34
           //array( [importRowId] => array( _rawData => array(fetched data), primaryKeys => array(keyName => keyValue), success => boolean) 
35
35
            $importData = array();
36
36
 
37
37
  public function __construct()
70
70
    foreach ($this->importComponents as $index => $componentData)
71
71
    {
72
72
      // start an inner transaction / savepoint per component
73
 
      $conn->beginTransaction($componentData['componentName']) ;
 
73
      $conn->beginTransaction($componentData['component']) ;
74
74
 
75
75
      try
76
76
      {
77
77
        // Calling method to set data.
78
78
        $componentData['method']($componentData['throwOnError']);
79
 
        $conn->commit($conn->beginTransaction($componentData['componentName']));
 
79
        $conn->commit($conn->beginTransaction($componentData['component']));
80
80
      }
81
81
      catch(Exception $e)
82
82
      {