Last change
on this file since 249 was
249,
checked in by hendrikvanantwerpen, 13 years ago
|
This one's for Subversion, because it's so close...
First widget (stripped down sequencer).
Seperated client and server code in two direcotry trees.
|
File size:
1.3 KB
|
Line | |
---|
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: ResLiteral.php 320 2006-11-21 09:38:51Z tgauss $
|
---|
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 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.