Source for file Dataset.php

Documentation is available at Dataset.php

  1. <?php
  2. // ----------------------------------------------------------------------------------
  3. // Class: Dataset
  4. // ----------------------------------------------------------------------------------
  5.  
  6.  
  7.  
  8. /**
  9. * Dataset implementation.
  10. * Superclass of datasetMem and datasetDb which contains shared functionality.
  11. *
  12. * <BR><BR>History:<UL>
  13. * <LI>05-02-2005 : First version of this class.</LI>
  14. *
  15. * @version V0.9
  16. * @author Daniel Westphal (http://www.d-westphal.de)
  17. * @author Chris Bizer <chris@bizer.de>
  18. *
  19. * @package dataset
  20. * @access public
  21. ***/
  22.  
  23. class Dataset
  24. {
  25. /**
  26. * Load a Dataset from File
  27. *
  28. * @param string
  29. * @access public
  30. */
  31. function loadFromFile($file)
  32. {
  33. $parser= new TriXParser(&$this);
  34. $parser->parseFile($file);
  35. }
  36. /**
  37. * Load a Datset from a string
  38. *
  39. * @param string
  40. * @access public
  41. */
  42. function loadFromString($string)
  43. {
  44. $parser= new TriXParser(&$this);
  45. $parser->parseString($string);
  46. }
  47. /**
  48. * Serialize the Dataset to File
  49. *
  50. * @param string
  51. * @access public
  52. */
  53. function serializeToFile($fileName)
  54. {
  55. $serializer= new TriXSerializer(&$this);
  56. $serializer->serializeToFile($fileName);
  57. }
  58. /**
  59. * Serialize the Dataset to string
  60. *
  61. * @return string
  62. * @access public
  63. */
  64. function serializeToString()
  65. {
  66. $serializer= new TriXSerializer(&$this);
  67. return $serializer->serializeToString();
  68. }
  69. }
  70. ?>

Documentation generated on Thu, 7 Jul 2005 13:41:09 +0200 by phpDocumentor 1.3.0RC3