public static function resolveAllSheetsInDS(array $dataStructArray) {
		if (is_array($dataStructArray['sheets'])) {
			$out = array('sheets' => array());
			foreach ($dataStructArray['sheets'] as $sheetId => $sDat) {
				list($ds, $aS) = self::resolveSheetDefInDS($dataStructArray, $sheetId);
				if ($sheetId == $aS) {
					$out['sheets'][$aS] = $ds;
				}
			}
		} else {
			list($ds) = self::resolveSheetDefInDS($dataStructArray);
			$out = array('sheets' => array('sDEF' => $ds));
		}
		return $out;
	}
public static function resolveAllSheetsInDS(array $dataStructArray) {
		if (is_array($dataStructArray['sheets'])) {
			$out = array('sheets' => array());
			foreach ($dataStructArray['sheets'] as $sheetId => $sDat) {
				list($ds, $aS) = self::resolveSheetDefInDS($dataStructArray, $sheetId);
				if ($sheetId == $aS) {
					$out['sheets'][$aS] = $ds;
				}
			}
		} else {
			list($ds) = self::resolveSheetDefInDS($dataStructArray);
			$out = array('sheets' => array('sDEF' => $ds));
		}
		return $out;
	}
public static function resolveAllSheetsInDS ( array $ dataStructArray ) { if ( is_array ( $ dataStructArray [ 'sheets' ] ) ) { $ out = array ( 'sheets' => array ( ) ) ; foreach ( $ dataStructArray [ 'sheets' ] as $ sheetId => $ sDat ) { list ( $ ds , $ aS ) = self :: resolveSheetDefInDS ( $ dataStructArray , $ sheetId ) ; if ( $ sheetId == $ aS ) { $ out [ 'sheets' ] [ $ aS ] = $ ds ; } } } else { list ( $ ds ) = self :: resolveSheetDefInDS ( $ dataStructArray ) ; $ out = array ( 'sheets' => array ( 'sDEF' => $ ds ) ) ; } return $ out ; }
Resolves ALL sheet definitions in dataStructArray
If no sheet is found, then the default "sDEF" will be created with the dataStructure inside.

@param array $dataStructArray Input data structure, possibly with a sheet-definition and references to external data source files.
@return array Output data structure with all sheets resolved as arrays.
Resolves ALL sheet definitions in dataStructArray If no sheet is found then the default sDEF will be created with the dataStructure inside .