public function getInviteEmails($gid, $email_only = false)
	{
		$final = array();

		$invitees = self::all()
			->whereEquals('gidNumber', $gid)
			->ordered()
			->rows();

		if ($email_only)
		{
			foreach ($invitees as $invitee)
			{
				$final[] = $invitee->get('email');
			}
		}
		else
		{
			$final = $invitees;
		}

		return $final;
	}
public function getInviteEmails($gid, $email_only = false)
	{
		$final = array();

		$invitees = self::all()
			->whereEquals('gidNumber', $gid)
			->ordered()
			->rows();

		if ($email_only)
		{
			foreach ($invitees as $invitee)
			{
				$final[] = $invitee->get('email');
			}
		}
		else
		{
			$final = $invitees;
		}

		return $final;
	}
public function getInviteEmails ( $ gid , $ email_only = false ) { $ final = array ( ) ; $ invitees = self :: all ( ) -> whereEquals ( 'gidNumber' , $ gid ) -> ordered ( ) -> rows ( ) ; if ( $ email_only ) { foreach ( $ invitees as $ invitee ) { $ final [ ] = $ invitee -> get ( 'email' ) ; } } else { $ final = $ invitees ; } return $ final ; }
Get a list of email invites for a group

@param   integer  $gid         Group ID
@param   boolean  $email_only  Resturn only email addresses?
@return  array
Get a list of email invites for a group