Example #1
0
	public function sendByGroup($groupId,Admin_Models_Message $message)
	{
		$users = new System_Models_UserMapper();
		$arrayUserIds = $users->fetchAllIds($groupId);
		foreach($arrayUserIds as $id)
		{
			$message->setToId($id);
			$this->save($message);
		}
	}