trimmed('photo-title'); $max_len = Notice::maxContent() - 30; if(strlen($title) > $max_len) { return substr($title, 0, $max_len-1) . '…'; #ellipsis ;) } return $title; } function getMentions() { $this->trimmed('mentions'); } function getTags() { $this->trimmed('tags'); } function getGroups() { $this->trimmed('groups'); } function showSocialObjectForm() { require_once dirname(__FILE__) . '/SocialPhotoForm.php'; $form = new SocialPhotoForm($this); $form->show(); } }