Source for file ResLiteral.php

Documentation is available at ResLiteral.php

  1. <?PHP
  2. // ----------------------------------------------------------------------------------
  3. // Class: ResLiteral
  4. // ----------------------------------------------------------------------------------
  5.  
  6.  
  7.  
  8. /**
  9. * An RDF literal.
  10. * The literal supports the xml:lang and rdf:datatype property.
  11. * For XML datatypes see: http://www.w3.org/TR/xmlschema-2/
  12. *
  13. *
  14. * <BR><BR>History:<UL>
  15. * <LI>10-01-2004 : First version of this class.</LI>
  16. *
  17. * @version V0.9.1
  18. * @author Daniel Westphal <mail at d-westphal dot de>
  19. *
  20. * @package resModel
  21. * @access public
  22. ***/
  23.  
  24. class ResLiteral extends Literal
  25. {
  26. /**
  27. * Holds a reference to the associated model
  28. * @var ResModel
  29. * @access private
  30. */
  31. var $model;
  32. /**
  33. * Constructor
  34. * You have to supply a string.
  35. *
  36. * @param string $str label of the literal
  37. * @param string $language optional language identifier
  38. */
  39. function ResLiteral($str,$language = null)
  40. {
  41. parent::Literal($str,$language);
  42.  
  43. }
  44. /**
  45. * Sets the reference to the assocoated model.
  46. *
  47. * @param object model $model
  48. * @access public
  49. */
  50. function setAssociatedModel(& $model)
  51. {
  52. $this->model=& $model;
  53. }
  54. /**
  55. * Get the reference to the assocoated model.
  56. *
  57. * @return object model $model
  58. * @access public
  59. */
  60. function & getAssociatedModel()
  61. {
  62. return $this->model;
  63. }
  64.  
  65. }
  66. ?>

Documentation generated on Fri, 17 Dec 2004 16:17:54 +0100 by phpDocumentor 1.3.0RC3