/** * Print out the site admins in an iterator * * @param object $siteAdmins * @return string * @access protected * @since 2/18/09 */ protected function printSiteAdminsIterator($siteAdmins) { $admins = array(); while ($siteAdmins->hasNext()) { $admin = $siteAdmins->next(); $adminId = $admin->getAgentId(); $participant_view = new Participation_View(SiteDispatcher::getCurrentRootNode()); if (!in_array($adminId, $admins)) { $admins[] = $participant_view->getParticipant($adminId->getIdString()); } } return $this->printParticipants($admins); }
/** * get creator of action * * @return Participation_Participant * @access public * @since 1/23/09 */ public function getParticipant() { $id = $this->_node->getCreator()->getIdString(); return $this->_view->getParticipant($id); }
/** * get creator of comment * * @return Participation_Participant * @access public * @since 1/26/09 */ public function getParticipant() { return $this->_view->getParticipant($this->_comment->getAuthor()->getId()->getIdString()); }