Source for file ResLiteral.php

Documentation is available at ResLiteral.php

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

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