Source for file NamedGraphMem.php

Documentation is available at NamedGraphMem.php

  1. <?PHP
  2. // ----------------------------------------------------------------------------------
  3. // Class: NamedGraphMem
  4. // ----------------------------------------------------------------------------------
  5.  
  6. /**
  7. * NamedGraph implementation that extends a {@link MemModel}
  8. * with a name.
  9. *
  10. * <BR><BR>History:<UL>
  11. * <LI>05-02-2005 : First version of this class.</LI>
  12. *
  13. * @version V0.9.3
  14. * @author Daniel Westphal <http://www.d-westphal.de>
  15. *
  16. * @package dataset
  17. * @access public
  18. ***/
  19. class NamedGraphMem extends MemModel
  20. {
  21. /**
  22. * Name of the NamedGraphMem
  23. *
  24. * @var string
  25. * @access private
  26. */
  27. var $graphName;
  28. /**
  29. * Constructor
  30. * You have to supply a graph name. You can supply a URI
  31. *
  32. * @param string
  33. * @param string
  34. * @access public
  35. */
  36. function NamedGraphMem($graphName,$baseURI = null)
  37. {
  38. $this->setBaseURI($baseURI);
  39. $this->indexed = INDEX_TYPE;
  40. $this->setGraphName($graphName);
  41. }
  42. /**
  43. * Sets the graph name.
  44. *
  45. * @param string
  46. * @access public
  47. */
  48. function setGraphName($graphName)
  49. {
  50. $this->graphName=$graphName;
  51. }
  52. /**
  53. * Return the graph name.
  54. *
  55. * @return string
  56. * @access public
  57. */
  58. function getGraphName()
  59. {
  60. return $this->graphName;
  61. }
  62. }
  63. ?>

Documentation generated on Fri, 13 Jan 2006 07:48:43 +0100 by phpDocumentor 1.3.0RC4