/** * constructor * * @param User_group $user User_group that's missing a profile */ public function __construct(User_group $group) { $this->group = $group; // TRANS: Exception text shown when no profile can be found for a group. // TRANS: %1$s is a group nickname, $2$d is a group profile_id (number). $message = sprintf(_('Group "%1$s" (%2$d) has no profile record.'), $group->nickname, $group->getID()); parent::__construct($group->profile_id, $message); }
function pushGroup(User_group $group) { common_debug("OSTATUS [{$this->notice->getID()}]: pushing group '{$group->getNickname()}' profile_id={$group->profile_id}"); // For a local group, ping the PuSH hub to update its feed. // Updates may come from either a local or a remote user. $feed = common_local_url('ApiTimelineGroup', array('id' => $group->getID(), 'format' => 'atom')); $this->pushFeed($feed, array($this, 'groupFeedForNotice'), $group->getID()); }