public static function getSObjectFields(SObject $sob) {
			if (!isset($sob->fields))
				return null;

			$fields = $sob->fields;

			if (is_object($fields))
				$fields = get_object_vars($fields);

			return $fields;
		}