Lines Matching refs:this

35         $this->id      = $id;
36 $this->url = $url;
37 $this->subject = $subject;
38 $this->content = $content;
43 $this->created = $created;
48 $this->modified = $modified;
53 $this->creator = $creator;
58 $this->contributors = $contributors;
63 $this->is_creator = true;
69 $this->links = $links;
75 $this->backlinks = $links;
81 $this->previous_version = $rev;
86 $this->next_version = $rev;
91 $this->latest_version = true;
96 $this->content_encoded = $encoded;
101 $this->has_container = $id;
106 $this->has_space = $url;
111 $rdf = '<' . $this->type . " rdf:about=\"" . clean($this->url, true) . "\">\n";
112 if ($this->subject) {
113 $rdf .= " <dc:title>" . clean($this->subject) . "</dc:title>\n";
121 if (count($this->contributors) > 0) {
122 foreach ($this->contributors as $cont_id => $cont_name) {
123 … if (!isset($this->creator['sioc:modifier']) || ($this->creator['sioc:modifier'] != $cont_id)) {
130 if (isset($this->contributors[$this->creator['sioc:modifier']])) {
131 …$creator_name = 'rdfs:label="' . clean($this->contributors[$this->creator['sioc:modifier']]) . '"';
135 if (is_array($this->creator)) {
138 if ($this->creator['sioc:modifier']) {
139 if ($this->is_creator === false) {
141 $exp->siocURL('user', $this->creator['sioc:modifier'])
144 if ($this->is_creator === true) {
146 $exp->siocURL('user', $this->creator['sioc:modifier'])
152 if ($this->created) {
153 $rdf .= " <dcterms:created>" . $this->created . "</dcterms:created>\n";
156 if ($this->modified) {
157 $rdf .= " <dcterms:modified>" . $this->modified . "</dcterms:modified>\n";
160 if ($this->has_space) {
161 … $rdf .= " <sioc:has_space rdf:resource=\"" . clean($this->has_space, true) . "\" />\n";
165 if ($this->has_container) {
167 $exp->siocURL('container', $this->has_container)
172 if ($this->content) {
173 … $rdf .= " <sioc:content><![CDATA[" . pureContent($this->content) . "]]></sioc:content>\n";
176 if ($this->content_encoded) {
177 … $rdf .= " <content:encoded><![CDATA[" . $this->content_encoded . "]]></content:encoded>\n";
195 if (is_array($this->links) && count($this->links) > 0) {
196 foreach ($this->links as $link_id => $link_exists) {
206 if (count($this->backlinks) > 0) {
207 foreach ($this->backlinks as $link_id) {
225 if ($this->previous_version) {
229 … $this->id . $exp->_urlseparator . 'rev' . $exp->_urlequal . $this->previous_version
238 … $this->id . $exp->_urlseparator . 'rev' . $exp->_urlequal . $this->previous_version
245 if ($this->next_version) {
249 … $this->id . $exp->_urlseparator . 'rev' . $exp->_urlequal . $this->next_version
258 … $this->id . $exp->_urlseparator . 'rev' . $exp->_urlequal . $this->next_version
264 if ($this->latest_version) {
266 $exp->siocURL('post', $this->id)
295 $rdf .= "</" . $this->type . ">\n";
324 $this->id = $id;
325 $this->nick = $userid;
326 $this->name = $name;
328 $this->url = $url;
332 $this->email = $email;
333 $this->sha1 = sha1($email);
335 $this->email = "mailto:" . $email;
336 $this->sha1 = sha1("mailto:" . $email);
343 $rdf = "<sioc:UserAccount rdf:about=\"" . clean($this->url, true) . "\">\n";
344 if ($this->nick) {
345 $rdf .= " <sioc:name>" . clean($this->nick) . "</sioc:name>\n";
347 if ($this->email) {
349 $rdf .= " <sioc:email rdf:resource=\"" . $this->email . "\"/>\n";
351 $rdf .= " <sioc:email_sha1>" . $this->sha1 . "</sioc:email_sha1>\n";
353 if ($this->role) {
356 $rdf .= " <sioc:name>" . $this->role . "</sioc:name>\n";
362 if ($this->name) {
363 $rdf .= " <foaf:name>" . clean($this->name) . "</foaf:name>\n";
365 if ($this->email) {
366 $rdf .= " <foaf:mbox_sha1sum>" . $this->sha1 . "</foaf:mbox_sha1sum>\n";
368 if ($this->foaf_url) {
369 $rdf .= " <rdfs:seeAlso rdf:resource=\"" . $this->foaf_url . "\"/>\n";
399 $this->id = $id;
400 $this->url = $url;
405 $this->type = 'sioct:Wiki';
410 $this->posts = $posts;
415 $this->subcontainers = $containers;
420 $this->title = $title;
425 $this->_has_parent = $id;
430 … $rdf = '<' . $this->type . " rdf:about=\"" . normalizeUri(clean($this->url, true)) . "\" >\n";
432 if ($this->title) {
433 $rdf .= " <sioc:name>" . clean($this->title) . "</sioc:name>\n";
436 if ($this->_has_parent) {
438 $exp->siocURL('container', $this->_has_parent)
443 foreach ($this->posts as $article) {
451 foreach ($this->subcontainers as $container) {
458 $rdf .= "</" . $this->type . ">\n";