public function getEmails($tbl = 'managers')
	{
		if (!in_array($tbl, array('applicants', 'members', 'managers', 'invitees')))
		{
			return false;
		}

		$db = \App::get('db');

		if (empty($db))
		{
			return false;
		}

		$query = 'SELECT u.email FROM #__users AS u, #__xgroups_' . $tbl . ' AS gm WHERE gm.gidNumber=' . $db->quote($this->gidNumber) . ' AND u.id=gm.uidNumber;';

		$db->setQuery($query);

		$emails = $db->loadColumn();

		return $emails;
	}
public function getEmails($tbl = 'managers')
	{
		if (!in_array($tbl, array('applicants', 'members', 'managers', 'invitees')))
		{
			return false;
		}

		$db = \App::get('db');

		if (empty($db))
		{
			return false;
		}

		$query = 'SELECT u.email FROM #__users AS u, #__xgroups_' . $tbl . ' AS gm WHERE gm.gidNumber=' . $db->quote($this->gidNumber) . ' AND u.id=gm.uidNumber;';

		$db->setQuery($query);

		$emails = $db->loadColumn();

		return $emails;
	}
public function getEmails ( $ tbl = 'managers' ) { if ( ! in_array ( $ tbl , array ( 'applicants' , 'members' , 'managers' , 'invitees' ) ) ) { return false ; } $ db = \ App :: get ( 'db' ) ; if ( empty ( $ db ) ) { return false ; } $ query = 'SELECT u.email FROM #__users AS u, #__xgroups_' . $ tbl . ' AS gm WHERE gm.gidNumber=' . $ db -> quote ( $ this -> gidNumber ) . ' AND u.id=gm.uidNumber;' ; $ db -> setQuery ( $ query ) ; $ emails = $ db -> loadColumn ( ) ; return $ emails ; }
Get emails for users

@param   string  $tbl
@return  array
Get emails for users