| author | cavaliet |
| Tue, 15 Nov 2011 12:27:02 +0100 | |
| changeset 33 | 6c87166b819c |
| parent 14 | 673b2766024e |
| child 42 | 0e57c730bb18 |
| permissions | -rwxr-xr-x |
| 2 | 1 |
<?php |
2 |
/* |
|
3 |
* This file is part of the WikiTagBundle package. |
|
4 |
* |
|
5 |
* (c) IRI <http://www.iri.centrepompidou.fr/> |
|
6 |
* |
|
7 |
* For the full copyright and license information, please view the LICENSE |
|
8 |
* file that was distributed with this source code. |
|
9 |
*/ |
|
10 |
||
11 |
namespace IRI\Bundle\WikiTagBundle\Model; |
|
12 |
||
13 |
||
|
14
673b2766024e
Update ORM configuration to allow JOIN between Tag and DocumentTag. TagList template has now the number of documents by tag.
cavaliet
parents:
5
diff
changeset
|
14 |
use Doctrine\Common\Collections\ArrayCollection; |
|
673b2766024e
Update ORM configuration to allow JOIN between Tag and DocumentTag. TagList template has now the number of documents by tag.
cavaliet
parents:
5
diff
changeset
|
15 |
|
| 2 | 16 |
interface TagInterface { |
17 |
||
18 |
/** |
|
19 |
* Get id |
|
20 |
* |
|
21 |
* @return integer |
|
22 |
*/ |
|
23 |
function getId(); |
|
24 |
||
25 |
/** |
|
26 |
* Set label |
|
27 |
* |
|
28 |
* @param string $label |
|
29 |
*/ |
|
30 |
function setLabel($label); |
|
31 |
||
32 |
/** |
|
33 |
* Get label |
|
34 |
* |
|
35 |
* @return string |
|
36 |
*/ |
|
37 |
function getLabel(); |
|
38 |
||
39 |
/** |
|
40 |
* Set normalizedLabel |
|
41 |
* |
|
42 |
* @param string $normalizedLabel |
|
43 |
*/ |
|
44 |
function setNormalizedLabel($normalizedLabel); |
|
45 |
||
46 |
/** |
|
47 |
* Get normalizedLabel |
|
48 |
* |
|
49 |
* @return string |
|
50 |
*/ |
|
51 |
function getNormalizedLabel(); |
|
52 |
||
53 |
/** |
|
54 |
* Set originalLabel |
|
55 |
* |
|
56 |
* @param string $originalLabel |
|
57 |
*/ |
|
58 |
function setOriginalLabel($originalLabel); |
|
59 |
||
60 |
/** |
|
61 |
* Get originalLabel |
|
62 |
* |
|
63 |
* @return string |
|
64 |
*/ |
|
65 |
function getOriginalLabel(); |
|
66 |
||
67 |
/** |
|
68 |
* Set alias |
|
69 |
* |
|
70 |
* @param string $alias |
|
71 |
*/ |
|
72 |
function setAlias($alias); |
|
73 |
||
74 |
/** |
|
75 |
* Get alias |
|
76 |
* |
|
77 |
* @return string |
|
78 |
*/ |
|
79 |
function getAlias(); |
|
80 |
||
81 |
/** |
|
82 |
* Set wikipediaUrl |
|
83 |
* |
|
84 |
* @param string $wikipediaUrl |
|
85 |
*/ |
|
86 |
function setWikipediaUrl($wikipediaUrl); |
|
87 |
||
88 |
/** |
|
89 |
* Get wikipediaUrl |
|
90 |
* |
|
91 |
* @return string |
|
92 |
*/ |
|
93 |
function getWikipediaUrl(); |
|
94 |
||
95 |
/** |
|
96 |
* Set wikipediaPageId |
|
97 |
* |
|
98 |
* @param bigint $wikipediaPageId |
|
99 |
*/ |
|
100 |
function setWikipediaPageId($wikipediaPageId); |
|
101 |
||
102 |
/** |
|
103 |
* Get wikipediaPageId |
|
104 |
* |
|
105 |
* @return bigint |
|
106 |
*/ |
|
107 |
function getWikipediaPageId(); |
|
108 |
||
109 |
/** |
|
110 |
* Set urlStatus |
|
111 |
* |
|
112 |
* @param smallint $urlStatus |
|
113 |
*/ |
|
114 |
function setUrlStatus($urlStatus); |
|
115 |
||
116 |
/** |
|
117 |
* Get urlStatus |
|
118 |
* |
|
119 |
* @return smallint |
|
120 |
*/ |
|
121 |
function getUrlStatus(); |
|
122 |
||
123 |
/** |
|
|
5
45378793512a
Correct tag insert + external id on doc
ymh <ymh.work@gmail.com>
parents:
2
diff
changeset
|
124 |
* Get UrlStatusText |
|
45378793512a
Correct tag insert + external id on doc
ymh <ymh.work@gmail.com>
parents:
2
diff
changeset
|
125 |
* |
|
45378793512a
Correct tag insert + external id on doc
ymh <ymh.work@gmail.com>
parents:
2
diff
changeset
|
126 |
* @return string |
|
45378793512a
Correct tag insert + external id on doc
ymh <ymh.work@gmail.com>
parents:
2
diff
changeset
|
127 |
*/ |
|
45378793512a
Correct tag insert + external id on doc
ymh <ymh.work@gmail.com>
parents:
2
diff
changeset
|
128 |
function getUrlStatusText(); |
|
45378793512a
Correct tag insert + external id on doc
ymh <ymh.work@gmail.com>
parents:
2
diff
changeset
|
129 |
|
|
45378793512a
Correct tag insert + external id on doc
ymh <ymh.work@gmail.com>
parents:
2
diff
changeset
|
130 |
|
|
45378793512a
Correct tag insert + external id on doc
ymh <ymh.work@gmail.com>
parents:
2
diff
changeset
|
131 |
/** |
| 2 | 132 |
* Set dbpediaUri |
133 |
* |
|
134 |
* @param string $dbpediaUri |
|
135 |
*/ |
|
136 |
function setDbpediaUri($dbpediaUri); |
|
137 |
||
138 |
/** |
|
139 |
* Get dbpediaUri |
|
140 |
* |
|
141 |
* @return string |
|
142 |
*/ |
|
143 |
function getDbpediaUri(); |
|
144 |
||
145 |
/** |
|
146 |
* Set popularity |
|
147 |
* |
|
148 |
* @param integer $popularity |
|
149 |
*/ |
|
150 |
function setPopularity($popularity); |
|
151 |
||
152 |
/** |
|
153 |
* Get popularity |
|
154 |
* |
|
155 |
* @return integer |
|
156 |
*/ |
|
157 |
function getPopularity(); |
|
158 |
||
|
5
45378793512a
Correct tag insert + external id on doc
ymh <ymh.work@gmail.com>
parents:
2
diff
changeset
|
159 |
|
|
45378793512a
Correct tag insert + external id on doc
ymh <ymh.work@gmail.com>
parents:
2
diff
changeset
|
160 |
/** |
|
45378793512a
Correct tag insert + external id on doc
ymh <ymh.work@gmail.com>
parents:
2
diff
changeset
|
161 |
* Set category |
|
45378793512a
Correct tag insert + external id on doc
ymh <ymh.work@gmail.com>
parents:
2
diff
changeset
|
162 |
* |
|
45378793512a
Correct tag insert + external id on doc
ymh <ymh.work@gmail.com>
parents:
2
diff
changeset
|
163 |
* @param object $category |
|
45378793512a
Correct tag insert + external id on doc
ymh <ymh.work@gmail.com>
parents:
2
diff
changeset
|
164 |
*/ |
|
45378793512a
Correct tag insert + external id on doc
ymh <ymh.work@gmail.com>
parents:
2
diff
changeset
|
165 |
function setCategory($category); |
|
45378793512a
Correct tag insert + external id on doc
ymh <ymh.work@gmail.com>
parents:
2
diff
changeset
|
166 |
|
|
45378793512a
Correct tag insert + external id on doc
ymh <ymh.work@gmail.com>
parents:
2
diff
changeset
|
167 |
/** |
|
45378793512a
Correct tag insert + external id on doc
ymh <ymh.work@gmail.com>
parents:
2
diff
changeset
|
168 |
* Get category |
|
45378793512a
Correct tag insert + external id on doc
ymh <ymh.work@gmail.com>
parents:
2
diff
changeset
|
169 |
* |
|
45378793512a
Correct tag insert + external id on doc
ymh <ymh.work@gmail.com>
parents:
2
diff
changeset
|
170 |
* @return object |
|
45378793512a
Correct tag insert + external id on doc
ymh <ymh.work@gmail.com>
parents:
2
diff
changeset
|
171 |
*/ |
|
45378793512a
Correct tag insert + external id on doc
ymh <ymh.work@gmail.com>
parents:
2
diff
changeset
|
172 |
function getCategory(); |
|
45378793512a
Correct tag insert + external id on doc
ymh <ymh.work@gmail.com>
parents:
2
diff
changeset
|
173 |
|
|
14
673b2766024e
Update ORM configuration to allow JOIN between Tag and DocumentTag. TagList template has now the number of documents by tag.
cavaliet
parents:
5
diff
changeset
|
174 |
/** |
|
673b2766024e
Update ORM configuration to allow JOIN between Tag and DocumentTag. TagList template has now the number of documents by tag.
cavaliet
parents:
5
diff
changeset
|
175 |
* Get Documents |
|
673b2766024e
Update ORM configuration to allow JOIN between Tag and DocumentTag. TagList template has now the number of documents by tag.
cavaliet
parents:
5
diff
changeset
|
176 |
* |
|
673b2766024e
Update ORM configuration to allow JOIN between Tag and DocumentTag. TagList template has now the number of documents by tag.
cavaliet
parents:
5
diff
changeset
|
177 |
* @return ArrayCollection |
|
673b2766024e
Update ORM configuration to allow JOIN between Tag and DocumentTag. TagList template has now the number of documents by tag.
cavaliet
parents:
5
diff
changeset
|
178 |
*/ |
|
673b2766024e
Update ORM configuration to allow JOIN between Tag and DocumentTag. TagList template has now the number of documents by tag.
cavaliet
parents:
5
diff
changeset
|
179 |
function getDocuments(); |
|
673b2766024e
Update ORM configuration to allow JOIN between Tag and DocumentTag. TagList template has now the number of documents by tag.
cavaliet
parents:
5
diff
changeset
|
180 |
|
|
673b2766024e
Update ORM configuration to allow JOIN between Tag and DocumentTag. TagList template has now the number of documents by tag.
cavaliet
parents:
5
diff
changeset
|
181 |
/** |
|
673b2766024e
Update ORM configuration to allow JOIN between Tag and DocumentTag. TagList template has now the number of documents by tag.
cavaliet
parents:
5
diff
changeset
|
182 |
* Nullify category |
|
673b2766024e
Update ORM configuration to allow JOIN between Tag and DocumentTag. TagList template has now the number of documents by tag.
cavaliet
parents:
5
diff
changeset
|
183 |
* |
|
673b2766024e
Update ORM configuration to allow JOIN between Tag and DocumentTag. TagList template has now the number of documents by tag.
cavaliet
parents:
5
diff
changeset
|
184 |
*/ |
|
673b2766024e
Update ORM configuration to allow JOIN between Tag and DocumentTag. TagList template has now the number of documents by tag.
cavaliet
parents:
5
diff
changeset
|
185 |
function nullCategory(); |
|
673b2766024e
Update ORM configuration to allow JOIN between Tag and DocumentTag. TagList template has now the number of documents by tag.
cavaliet
parents:
5
diff
changeset
|
186 |
|
| 2 | 187 |
|
188 |
} |