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

@param Array $raw A tag from SimpleDb in SimpleXML.
@return array
Normalizes data from MySql into schema definition TODO this should eventually translate the json field @param Array $raw A tag from SimpleDb in SimpleXML . @return array
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 MySql into schema definition
 TODO this should eventually translate the json field
Normalizes data from MySql 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