public function createEntryByInstance(Doctrine_Record $communityMember, SimpleXMLElement $entry = null) { $member = $communityMember->getMember(); $entry = parent::createEntryByInstance($communityMember, $entry); sfContext::getInstance()->getConfiguration()->loadHelpers(array('Url', 'opUtil')); $entry->setTitle($member->getName()); $content = $entry->getElements()->addChild('content'); $content->addAttribute('type', 'xhtml'); $profiles = $content->addChild('div'); $profiles->addAttribute('xmlns', 'http://www.w3.org/1999/xhtml'); foreach ($member->getProfiles() as $profile) { $value = (string) $profile; $child = $profiles->addChild('div', $value); $child->addAttribute('id', $profile->getName()); } $entry->setLink(url_for('@feeds_member_retrieve_resource_normal?model=community&id=' . $member->getId()), 'self', 'application/atom+xml'); $entry->setLink(app_url_for('pc_frontend', 'member/profile?id=' . $member->getId(), true), 'alternate', 'text/html'); $entry->setLink(app_url_for('mobile_frontend', 'member/profile?id=' . $member->getId(), true), 'alternate'); return $entry; }