3 * @file src/Object/Post.php
5 namespace Friendica\Object;
7 use Friendica\BaseObject;
8 use Friendica\Content\ContactSelector;
9 use Friendica\Core\Addon;
10 use Friendica\Core\Config;
11 use Friendica\Core\Hook;
12 use Friendica\Core\L10n;
13 use Friendica\Core\Logger;
14 use Friendica\Core\PConfig;
15 use Friendica\Core\Protocol;
16 use Friendica\Core\Renderer;
17 use Friendica\Database\DBA;
18 use Friendica\Model\Contact;
19 use Friendica\Model\Item;
20 use Friendica\Model\Term;
21 use Friendica\Util\Crypto;
22 use Friendica\Util\DateTimeFormat;
23 use Friendica\Util\Proxy as ProxyUtils;
24 use Friendica\Util\Strings;
25 use Friendica\Util\Temporal;
30 class Post extends BaseObject
33 private $template = null;
34 private $available_templates = [
35 'wall' => 'wall_thread.tpl',
36 'wall2wall' => 'wallwall_thread.tpl'
38 private $comment_box_template = 'comment_item.tpl';
39 private $toplevel = false;
40 private $writable = false;
44 private $children = [];
45 private $parent = null;
50 private $thread = null;
51 private $redirect_url = null;
52 private $owner_url = '';
53 private $owner_photo = '';
54 private $owner_name = '';
55 private $wall_to_wall = false;
56 private $threaded = false;
57 private $visiting = false;
62 * @param array $data data array
65 public function __construct(array $data)
68 $this->setTemplate('wall');
69 $this->toplevel = $this->getId() == $this->getDataValue('parent');
71 if (!empty($_SESSION['remote']) && is_array($_SESSION['remote'])) {
72 foreach ($_SESSION['remote'] as $visitor) {
73 if ($visitor['cid'] == $this->getDataValue('contact-id')) {
74 $this->visiting = true;
80 $this->writable = $this->getDataValue('writable') || $this->getDataValue('self');
81 $author = ['uid' => 0, 'id' => $this->getDataValue('author-id'),
82 'network' => $this->getDataValue('author-network'),
83 'url' => $this->getDataValue('author-link')];
84 $this->redirect_url = Contact::magicLinkbyContact($author);
85 if (!$this->isToplevel()) {
86 $this->threaded = true;
89 // Prepare the children
90 if (!empty($data['children'])) {
91 foreach ($data['children'] as $item) {
92 // Only add will be displayed
93 if ($item['network'] === Protocol::MAIL && local_user() != $item['uid']) {
95 } elseif (!visible_activity($item)) {
99 // You can always comment on Diaspora and OStatus items
100 if (in_array($item['network'], [Protocol::OSTATUS, Protocol::DIASPORA]) && (local_user() == $item['uid'])) {
101 $item['writable'] = true;
104 $item['pagedrop'] = $data['pagedrop'];
105 $child = new Post($item);
106 $this->addChild($child);
112 * Get data in a form usable by a conversation template
114 * @param array $conv_responses conversation responses
115 * @param integer $thread_level default = 1
117 * @return mixed The data requested on success
119 * @throws \Friendica\Network\HTTPException\InternalServerErrorException
120 * @throws \ImagickException
122 public function getTemplateData(array $conv_responses, $thread_level = 1)
126 $item = $this->getData();
128 // If the time between "created" and "edited" differs we add
129 // a notice that the post was edited.
130 // Note: In some networks reshared items seem to have (sometimes) a difference
131 // between creation time and edit time of a second. Thats why we add the notice
132 // only if the difference is more than 1 second.
133 if (strtotime($item['edited']) - strtotime($item['created']) > 1) {
135 'label' => L10n::t('This entry was edited'),
136 'date' => DateTimeFormat::local($item['edited'], 'r'),
137 'relative' => Temporal::getRelativeDate($item['edited'])
145 $isstarred = "unstarred";
149 $total_children = $this->countDescendants();
151 $conv = $this->getThread();
153 $lock = ((($item['private'] == 1) || (($item['uid'] == local_user()) && (strlen($item['allow_cid']) || strlen($item['allow_gid'])
154 || strlen($item['deny_cid']) || strlen($item['deny_gid']))))
155 ? L10n::t('Private Message')
158 $shareable = in_array($conv->getProfileOwner(), [0, local_user()]) && $item['private'] != 1;
163 if (Strings::compareLink($a->contact['url'], $item['author-link'])) {
164 if ($item["event-id"] != 0) {
165 $edpost = ["events/event/" . $item['event-id'], L10n::t("Edit")];
167 $edpost = ["editpost/" . $item['id'], L10n::t("Edit")];
170 $dropping = in_array($item['uid'], [0, local_user()]);
173 // Editing on items of not subscribed users isn't currently possible
174 // There are some issues on editing that prevent this.
175 // But also it is an issue of the supported protocols that doesn't allow editing at all.
176 if ($item['uid'] == 0) {
180 if (($this->getDataValue('uid') == local_user()) || $this->isVisiting()) {
184 $origin = $item['origin'];
187 /// @todo This shouldn't be done as query here, but better during the data creation.
188 // it is now done here, since during the RC phase we shouldn't make to intense changes.
189 $parent = Item::selectFirst(['origin'], ['id' => $item['parent']]);
190 if (DBA::isResult($parent)) {
191 $origin = $parent['origin'];
195 if ($origin && ($item['id'] != $item['parent']) && ($item['network'] == Protocol::ACTIVITYPUB)) {
196 // ActivityPub doesn't allow removal of remote comments
197 $delete = L10n::t('Delete locally');
199 // Showing the one or the other text, depending upon if we can only hide it or really delete it.
200 $delete = $origin ? L10n::t('Delete globally') : L10n::t('Remove locally');
204 'dropping' => $dropping,
205 'pagedrop' => $item['pagedrop'],
206 'select' => L10n::t('Select'),
214 $filer = (($conv->getProfileOwner() == local_user() && ($item['uid'] != 0)) ? L10n::t("save to folder") : false);
216 $profile_name = $item['author-name'];
217 if (!empty($item['author-link']) && empty($item['author-name'])) {
218 $profile_name = $item['author-link'];
221 $author = ['uid' => 0, 'id' => $item['author-id'],
222 'network' => $item['author-network'], 'url' => $item['author-link']];
224 if (local_user() || remote_user()) {
225 $profile_link = Contact::magicLinkbyContact($author);
227 $profile_link = $item['author-link'];
230 if (strpos($profile_link, 'redir/') === 0) {
231 $sparkle = ' sparkle';
234 $locate = ['location' => $item['location'], 'coord' => $item['coord'], 'html' => ''];
235 Hook::callAll('render_location', $locate);
236 $location = ((strlen($locate['html'])) ? $locate['html'] : render_location_dummy($locate));
238 // process action responses - e.g. like/dislike/attend/agree/whatever
239 $response_verbs = ['like', 'dislike'];
243 if ($item['object-type'] === ACTIVITY_OBJ_EVENT) {
244 $response_verbs[] = 'attendyes';
245 $response_verbs[] = 'attendno';
246 $response_verbs[] = 'attendmaybe';
247 if ($conv->isWritable()) {
249 $attend = [L10n::t('I will attend'), L10n::t('I will not attend'), L10n::t('I might attend')];
253 $responses = get_responses($conv_responses, $response_verbs, $item, $this);
255 foreach ($response_verbs as $value => $verbs) {
256 $responses[$verbs]['output'] = !empty($conv_responses[$verbs][$item['uri']]) ? format_like($conv_responses[$verbs][$item['uri']], $conv_responses[$verbs][$item['uri'] . '-l'], $verbs, $item['uri']) : '';
260 * We should avoid doing this all the time, but it depends on the conversation mode
261 * And the conv mode may change when we change the conv, or it changes its mode
262 * Maybe we should establish a way to be notified about conversation changes
264 $this->checkWallToWall();
266 if ($this->isWallToWall() && ($this->getOwnerUrl() == $this->getRedirectUrl())) {
267 $osparkle = ' sparkle';
272 if ($this->isToplevel()) {
274 $thread = Item::selectFirstThreadForUser(local_user(), ['ignored'], ['iid' => $item['id']]);
275 if (DBA::isResult($thread)) {
277 'do' => L10n::t("ignore thread"),
278 'undo' => L10n::t("unignore thread"),
279 'toggle' => L10n::t("toggle ignore status"),
280 'classdo' => $thread['ignored'] ? "hidden" : "",
281 'classundo' => $thread['ignored'] ? "" : "hidden",
282 'ignored' => L10n::t('ignored'),
286 if ($conv->getProfileOwner() == local_user() && ($item['uid'] != 0)) {
287 $isstarred = (($item['starred']) ? "starred" : "unstarred");
290 'do' => L10n::t("add star"),
291 'undo' => L10n::t("remove star"),
292 'toggle' => L10n::t("toggle star status"),
293 'classdo' => $item['starred'] ? "hidden" : "",
294 'classundo' => $item['starred'] ? "" : "hidden",
295 'starred' => L10n::t('starred'),
299 'add' => L10n::t("add tag"),
308 if ($conv->isWritable()) {
310 'like' => [L10n::t("I like this \x28toggle\x29"), L10n::t("like")],
311 'dislike' => [L10n::t("I don't like this \x28toggle\x29"), L10n::t("dislike")],
314 $buttons['share'] = [L10n::t('Share this'), L10n::t('share')];
318 $comment = $this->getCommentBox($indent);
320 if (strcmp(DateTimeFormat::utc($item['created']), DateTimeFormat::utc('now - 12 hours')) > 0) {
324 localize_item($item);
326 $body = Item::prepareBody($item, true);
328 list($categories, $folders) = get_cats_and_terms($item);
331 $text_e = strip_tags($body);
332 $name_e = $profile_name;
334 if (!empty($item['content-warning']) && PConfig::get(local_user(), 'system', 'disable_cw', false)) {
335 $title_e = ucfirst($item['content-warning']);
337 $title_e = $item['title'];
340 $location_e = $location;
341 $owner_name_e = $this->getOwnerName();
343 // Disable features that aren't available in several networks
344 if (!in_array($item["network"], [Protocol::ACTIVITYPUB, Protocol::DFRN, Protocol::DIASPORA]) && isset($buttons["dislike"])) {
345 unset($buttons["dislike"]);
350 if (($item["network"] == Protocol::FEED) && isset($buttons["like"])) {
351 unset($buttons["like"]);
354 if (($item["network"] == Protocol::MAIL) && isset($buttons["like"])) {
355 unset($buttons["like"]);
358 $tags = Term::populateTagsFromItem($item);
361 'template' => $this->getTemplate(),
362 'type' => implode("", array_slice(explode("/", $item['verb']), -1)),
363 'suppress_tags' => Config::get('system', 'suppress_tags'),
364 'tags' => $tags['tags'],
365 'hashtags' => $tags['hashtags'],
366 'mentions' => $tags['mentions'],
367 'txt_cats' => L10n::t('Categories:'),
368 'txt_folders' => L10n::t('Filed under:'),
369 'has_cats' => ((count($categories)) ? 'true' : ''),
370 'has_folders' => ((count($folders)) ? 'true' : ''),
371 'categories' => $categories,
372 'folders' => $folders,
375 'id' => $this->getId(),
376 'guid' => urlencode($item['guid']),
377 'isevent' => $isevent,
379 'linktitle' => L10n::t('View %s\'s profile @ %s', $profile_name, $item['author-link']),
380 'olinktitle' => L10n::t('View %s\'s profile @ %s', $this->getOwnerName(), $item['owner-link']),
381 'to' => L10n::t('to'),
382 'via' => L10n::t('via'),
383 'wall' => L10n::t('Wall-to-Wall'),
384 'vwall' => L10n::t('via Wall-To-Wall:'),
385 'profile_url' => $profile_link,
386 'item_photo_menu' => item_photo_menu($item),
388 'thumb' => $a->removeBaseURL(ProxyUtils::proxifyUrl($item['author-avatar'], false, ProxyUtils::SIZE_THUMB)),
389 'osparkle' => $osparkle,
390 'sparkle' => $sparkle,
392 'localtime' => DateTimeFormat::local($item['created'], 'r'),
393 'ago' => $item['app'] ? L10n::t('%s from %s', Temporal::getRelativeDate($item['created']), $item['app']) : Temporal::getRelativeDate($item['created']),
394 'app' => $item['app'],
395 'created' => Temporal::getRelativeDate($item['created']),
397 'location' => $location_e,
400 'owner_self' => $item['author-link'] == defaults($_SESSION, 'my_url', null),
401 'owner_url' => $this->getOwnerUrl(),
402 'owner_photo' => $a->removeBaseURL(ProxyUtils::proxifyUrl($item['owner-avatar'], false, ProxyUtils::SIZE_THUMB)),
403 'owner_name' => $owner_name_e,
404 'plink' => Item::getPlink($item),
406 'isstarred' => $isstarred,
413 'like' => $responses['like']['output'],
414 'dislike' => $responses['dislike']['output'],
415 'responses' => $responses,
416 'switchcomment' => L10n::t('Comment'),
417 'comment' => $comment,
418 'previewing' => $conv->isPreview() ? ' preview ' : '',
419 'wait' => L10n::t('Please wait'),
420 'thread_level' => $thread_level,
422 'network' => $item["network"],
423 'network_name' => ContactSelector::networkToName($item['network'], $item['author-link']),
424 'received' => $item['received'],
425 'commented' => $item['commented'],
426 'created_date' => $item['created'],
427 'return' => ($a->cmd) ? bin2hex($a->cmd) : '',
429 'queue_count' => $item['delivery_queue_count'],
430 'queue_done' => $item['delivery_queue_done'],
431 'notifier_pending' => L10n::t('Notifier task is pending'),
432 'delivery_pending' => L10n::t('Delivery to remote servers is pending'),
433 'delivery_underway' => L10n::t('Delivery to remote servers is underway'),
434 'delivery_almost' => L10n::t('Delivery to remote servers is mostly done'),
438 $arr = ['item' => $item, 'output' => $tmp_item];
439 Hook::callAll('display_item', $arr);
441 $result = $arr['output'];
443 $result['children'] = [];
444 $children = $this->getChildren();
445 $nb_children = count($children);
446 if ($nb_children > 0) {
447 foreach ($children as $child) {
448 $result['children'][] = $child->getTemplateData($conv_responses, $thread_level + 1);
451 if (($nb_children > 2) || ($thread_level > 1)) {
452 $result['children'][0]['comment_firstcollapsed'] = true;
453 $result['children'][0]['num_comments'] = L10n::tt('%d comment', '%d comments', $total_children);
454 $result['children'][0]['hidden_comments_num'] = $total_children;
455 $result['children'][0]['hidden_comments_text'] = L10n::tt('comment', 'comments', $total_children);
456 $result['children'][0]['hide_text'] = L10n::t('show more');
457 if ($thread_level > 1) {
458 $result['children'][$nb_children - 1]['comment_lastcollapsed'] = true;
460 $result['children'][$nb_children - 3]['comment_lastcollapsed'] = true;
465 if ($this->isToplevel()) {
466 $result['total_comments_num'] = "$total_children";
467 $result['total_comments_text'] = L10n::tt('comment', 'comments', $total_children);
470 $result['private'] = $item['private'];
471 $result['toplevel'] = ($this->isToplevel() ? 'toplevel_item' : '');
473 if ($this->isThreaded()) {
474 $result['flatten'] = false;
475 $result['threaded'] = true;
477 $result['flatten'] = true;
478 $result['threaded'] = false;
487 public function getId()
489 return $this->getDataValue('id');
495 public function isThreaded()
497 return $this->threaded;
503 * @param Post $item The child item to add
508 public function addChild(Post $item)
510 $item_id = $item->getId();
512 Logger::log('[ERROR] Post::addChild : Item has no ID!!', Logger::DEBUG);
514 } elseif ($this->getChild($item->getId())) {
515 Logger::log('[WARN] Post::addChild : Item already exists (' . $item->getId() . ').', Logger::DEBUG);
519 * Only add what will be displayed
521 if ($item->getDataValue('network') === Protocol::MAIL && local_user() != $item->getDataValue('uid')) {
523 } elseif (activity_match($item->getDataValue('verb'), ACTIVITY_LIKE) || activity_match($item->getDataValue('verb'), ACTIVITY_DISLIKE)) {
527 $item->setParent($this);
528 $this->children[] = $item;
530 return end($this->children);
534 * Get a child by its ID
536 * @param integer $id The child id
540 public function getChild($id)
542 foreach ($this->getChildren() as $child) {
543 if ($child->getId() == $id) {
552 * Get all our children
556 public function getChildren()
558 return $this->children;
564 * @param Post $item The item to set as parent
568 protected function setParent(Post $item)
570 $parent = $this->getParent();
572 $parent->removeChild($this);
575 $this->parent = $item;
576 $this->setThread($item->getThread());
584 protected function removeParent()
586 $this->parent = null;
587 $this->thread = null;
593 * @param Post $item The child to be removed
595 * @return boolean Success or failure
598 public function removeChild(Post $item)
600 $id = $item->getId();
601 foreach ($this->getChildren() as $key => $child) {
602 if ($child->getId() == $id) {
603 $child->removeParent();
604 unset($this->children[$key]);
605 // Reindex the array, in order to make sure there won't be any trouble on loops using count()
606 $this->children = array_values($this->children);
610 Logger::log('[WARN] Item::removeChild : Item is not a child (' . $id . ').', Logger::DEBUG);
619 protected function getParent()
621 return $this->parent;
625 * Set conversation thread
627 * @param Thread $thread
631 public function setThread(Thread $thread = null)
633 $this->thread = $thread;
635 // Set it on our children too
636 foreach ($this->getChildren() as $child) {
637 $child->setThread($thread);
646 public function getThread()
648 return $this->thread;
654 * We shouldn't need this
658 public function getData()
666 * @param string $name key
668 * @return mixed value on success
671 public function getDataValue($name)
673 if (!isset($this->data[$name])) {
674 // Logger::log('[ERROR] Item::getDataValue : Item has no value name "'. $name .'".', Logger::DEBUG);
678 return $this->data[$name];
684 * @param string $name template name
688 private function setTemplate($name)
690 if (empty($this->available_templates[$name])) {
691 Logger::log('[ERROR] Item::setTemplate : Template not available ("' . $name . '").', Logger::DEBUG);
695 $this->template = $this->available_templates[$name];
705 private function getTemplate()
707 return $this->template;
711 * Check if this is a toplevel post
715 private function isToplevel()
717 return $this->toplevel;
721 * Check if this is writable
725 private function isWritable()
727 $conv = $this->getThread();
730 // This will allow us to comment on wall-to-wall items owned by our friends
731 // and community forums even if somebody else wrote the post.
732 // bug #517 - this fixes for conversation owner
733 if ($conv->getMode() == 'profile' && $conv->getProfileOwner() == local_user()) {
737 // this fixes for visitors
738 return ($this->writable || ($this->isVisiting() && $conv->getMode() == 'profile'));
740 return $this->writable;
744 * Count the total of our descendants
748 private function countDescendants()
750 $children = $this->getChildren();
751 $total = count($children);
753 foreach ($children as $child) {
754 $total += $child->countDescendants();
762 * Get the template for the comment box
766 private function getCommentBoxTemplate()
768 return $this->comment_box_template;
772 * Get default text for the comment box
776 private function getDefaultText()
780 $item = Item::selectFirst(['author-addr'], ['id' => $this->getId()]);
781 if (!DBA::isResult($item) || empty($item['author-addr'])) {
786 if ($item['author-addr'] != $a->profile['addr']) {
787 $text = '@' . $item['author-addr'] . ' ';
792 $terms = Term::tagArrayFromItemId($this->getId(), TERM_MENTION);
794 foreach ($terms as $term) {
795 $profile = Contact::getDetailsByURL($term['url']);
796 if (!empty($profile['addr']) && ($profile['contact-type'] != Contact::TYPE_COMMUNITY) &&
797 ($profile['addr'] != $a->profile['addr']) && !strstr($text, $profile['addr'])) {
798 $text .= '@' . $profile['addr'] . ' ';
806 * Get the comment box
808 * @param string $indent Indent value
810 * @return mixed The comment box string (empty if no comment box)
814 private function getCommentBox($indent)
819 $conv = $this->getThread();
821 if (($conv->getMode() === 'network') && $this->isWallToWall()) {
825 if ($conv->isWritable() && $this->isWritable()) {
829 * Hmmm, code depending on the presence of a particular addon?
830 * This should be better if done by a hook
832 if (Addon::isEnabled('qcomment')) {
833 $qc = ((local_user()) ? PConfig::get(local_user(), 'qcomment', 'words') : null);
834 $qcomment = (($qc) ? explode("\n", $qc) : null);
837 // Fetch the user id from the parent when the owner user is empty
838 $uid = $conv->getProfileOwner();
839 $parent_uid = $this->getDataValue('uid');
841 $default_text = $this->getDefaultText();
843 if (!is_null($parent_uid) && ($uid != $parent_uid)) {
847 $template = Renderer::getMarkupTemplate($this->getCommentBoxTemplate());
848 $comment_box = Renderer::replaceMacros($template, [
849 '$return_path' => $a->query_string,
850 '$threaded' => $this->isThreaded(),
852 '$wall' => ($conv->getMode() === 'profile'),
853 '$id' => $this->getId(),
854 '$parent' => $this->getId(),
855 '$qcomment' => $qcomment,
856 '$default' => $default_text,
857 '$profile_uid' => $uid,
858 '$mylink' => $a->removeBaseURL($a->contact['url']),
859 '$mytitle' => L10n::t('This is you'),
860 '$myphoto' => $a->removeBaseURL($a->contact['thumb']),
861 '$comment' => L10n::t('Comment'),
862 '$submit' => L10n::t('Submit'),
863 '$edbold' => L10n::t('Bold'),
864 '$editalic' => L10n::t('Italic'),
865 '$eduline' => L10n::t('Underline'),
866 '$edquote' => L10n::t('Quote'),
867 '$edcode' => L10n::t('Code'),
868 '$edimg' => L10n::t('Image'),
869 '$edurl' => L10n::t('Link'),
870 '$edattach' => L10n::t('Link or Media'),
871 '$prompttext' => L10n::t('Please enter a image/video/audio/webpage URL:'),
872 '$preview' => L10n::t('Preview'),
873 '$indent' => $indent,
874 '$sourceapp' => L10n::t($a->sourcename),
875 '$ww' => $conv->getMode() === 'network' ? $ww : '',
876 '$rand_num' => Crypto::randomDigits(12)
886 private function getRedirectUrl()
888 return $this->redirect_url;
892 * Check if we are a wall to wall item and set the relevant properties
897 protected function checkWallToWall()
900 $conv = $this->getThread();
901 $this->wall_to_wall = false;
903 if ($this->isToplevel()) {
904 if ($conv->getMode() !== 'profile') {
905 if ($this->getDataValue('wall') && !$this->getDataValue('self')) {
906 // On the network page, I am the owner. On the display page it will be the profile owner.
907 // This will have been stored in $a->page_contact by our calling page.
908 // Put this person as the wall owner of the wall-to-wall notice.
910 $this->owner_url = Contact::magicLink($a->page_contact['url']);
911 $this->owner_photo = $a->page_contact['thumb'];
912 $this->owner_name = $a->page_contact['name'];
913 $this->wall_to_wall = true;
914 } elseif ($this->getDataValue('owner-link')) {
915 $owner_linkmatch = (($this->getDataValue('owner-link')) && Strings::compareLink($this->getDataValue('owner-link'), $this->getDataValue('author-link')));
916 $alias_linkmatch = (($this->getDataValue('alias')) && Strings::compareLink($this->getDataValue('alias'), $this->getDataValue('author-link')));
917 $owner_namematch = (($this->getDataValue('owner-name')) && $this->getDataValue('owner-name') == $this->getDataValue('author-name'));
919 if (!$owner_linkmatch && !$alias_linkmatch && !$owner_namematch) {
920 // The author url doesn't match the owner (typically the contact)
921 // and also doesn't match the contact alias.
922 // The name match is a hack to catch several weird cases where URLs are
923 // all over the park. It can be tricked, but this prevents you from
924 // seeing "Bob Smith to Bob Smith via Wall-to-wall" and you know darn
925 // well that it's the same Bob Smith.
926 // But it could be somebody else with the same name. It just isn't highly likely.
929 $this->owner_photo = $this->getDataValue('owner-avatar');
930 $this->owner_name = $this->getDataValue('owner-name');
931 $this->wall_to_wall = true;
933 $owner = ['uid' => 0, 'id' => $this->getDataValue('owner-id'),
934 'network' => $this->getDataValue('owner-network'),
935 'url' => $this->getDataValue('owner-link')];
936 $this->owner_url = Contact::magicLinkbyContact($owner);
942 if (!$this->wall_to_wall) {
943 $this->setTemplate('wall');
944 $this->owner_url = '';
945 $this->owner_photo = '';
946 $this->owner_name = '';
953 private function isWallToWall()
955 return $this->wall_to_wall;
961 private function getOwnerUrl()
963 return $this->owner_url;
969 private function getOwnerName()
971 return $this->owner_name;
977 private function isVisiting()
979 return $this->visiting;