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

Documentation generated on Fri, 1 Jun 2007 16:51:30 +0200 by phpDocumentor 1.3.2