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. * @version  $Id: fsource_resModel__resModelResLiteral.php.html 443 2007-06-01 16:25:38Z cax $
  12. * @author Daniel Westphal <mail at d-westphal dot de>
  13.  
  14. *
  15. * @package resModel
  16. * @access    public
  17. ***/
  18.  
  19. class ResLiteral extends Literal 
  20. {
  21.     /**
  22.     * Holds a reference to the associated model
  23.     * @var        ResModel 
  24.     * @access    private
  25.     */
  26.     var $model;
  27.     
  28.     
  29.     /**
  30.     * Constructor
  31.     * You have to supply a string.
  32.     *
  33.     * @param    string    $str        label of the literal
  34.     * @param     string $language    optional language identifier
  35.     */    
  36.     function ResLiteral($str,$language = null)
  37.     {
  38.         parent::Literal($str,$language);
  39.  
  40.     }
  41.     
  42.     /**
  43.     * Sets the reference to the assocoated model.
  44.     *
  45.     * @param    object model    $model 
  46.     * @access public
  47.     */
  48.     function setAssociatedModel(& $model)
  49.     {
  50.         $this->model=& $model;
  51.     }
  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, 1 Jun 2007 16:51:30 +0200 by phpDocumentor 1.3.2