src/libraries/adapters/DatabaseMySql.php
/**
    * Normalizes data from simpleDb into schema definition
    * TODO this should eventually translate the json field
    *
    * @param SimpleXMLObject $raw A tag from SimpleDb in SimpleXML.
    * @return array
    */
Normalizes data from simpleDb into schema definition
TODO this should eventually translate the json field


Normalizes data from simpleDb into schema definition TODO this should eventually translate the json field
private function normalizeUser($raw)
  {
    $jsonParsed = json_decode($raw['extra'], 1);
    if(!empty($jsonParsed))
    {
      foreach($jsonParsed as $key => $value)
      {
        if(!isset($raw[$key]))
          $raw[$key] = $value;
      }
    }
    unset($raw['extra'], $raw['password']);
    return $raw;
  }
private function normalizeUser ( $ raw ) { $ jsonParsed = json_decode ( $ raw [ 'extra' ] , 1 ) ; if ( ! empty ( $ jsonParsed ) ) { foreach ( $ jsonParsed as $ key => $ value ) { if ( ! isset ( $ raw [ $ key ] ) ) $ raw [ $ key ] = $ value ; } } unset ( $ raw [ 'extra' ] , $ raw [ 'password' ] ) ; return $ raw ; }
Normalizes data from simpleDb into schema definition
 TODO this should eventually translate the json field
Normalizes data from simpleDb into schema definition TODO this should eventually translate the json field
// perform a check to make sure we don't clobber top level elements in $raw. See #853