getter.php 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. /**
  3. * tools/getter.php file
  4. *
  5. * @package Nanodicom
  6. * @category Tools
  7. * @author Nano Documet <nanodocumet@gmail.com>
  8. * @version 1.3.1
  9. * @copyright (c) 2010-2011
  10. * @license http://www.opensource.org/licenses/mit-license.php MIT-license
  11. */
  12. /**
  13. * Dicom_Getter class.
  14. *
  15. * Extends Nanodicom. Simplifies the access to fields by element name.
  16. * @package Nanodicom
  17. * @category Tools
  18. * @author Nano Documet <nanodocumet@gmail.com>
  19. * @version 1.3.1
  20. * @copyright (c) 2010-2011
  21. * @license http://www.opensource.org/licenses/mit-license.php MIT-license
  22. */
  23. class Dicom_Getter extends Nanodicom {
  24. /**
  25. * Parses the object.
  26. *
  27. * If the list of elements has a tag name, dictionaries will be loaded. For performance
  28. * is better to pass only arrays of the form:
  29. * array(group, element) where group and element are numbers (hex or decimal equivalents or any other base).
  30. * @param mixed array for a list of elements tags to read. parsing stops when all found. Or TRUE to force
  31. * load dictionaries when parsing. This tool force the reading of dictionaries
  32. * @param boolean a flag to test if dicom file has DCM header only.
  33. * @return this
  34. */
  35. public function parse($vr_reading_list = TRUE, $check_dicom_preamble = FALSE)
  36. {
  37. return parent::parse($vr_reading_list, $check_dicom_preamble);
  38. }
  39. } // End Dicom_Getter