static function iterate($func)
	{
		$db = \App::get('db');

		$query = "SELECT cn FROM `#__xgroups`;";

		$db->setQuery($query);

		$result = $db->loadColumn();

		if ($result === false)
		{
			return false;
		}

		foreach ($result as $row)
		{
			call_user_func($func, $row);
		}

		return true;
	}
static function iterate($func)
	{
		$db = \App::get('db');

		$query = "SELECT cn FROM `#__xgroups`;";

		$db->setQuery($query);

		$result = $db->loadColumn();

		if ($result === false)
		{
			return false;
		}

		foreach ($result as $row)
		{
			call_user_func($func, $row);
		}

		return true;
	}
static function iterate ( $ func ) { $ db = \ App :: get ( 'db' ) ; $ query = "SELECT cn FROM `#__xgroups`;" ; $ db -> setQuery ( $ query ) ; $ result = $ db -> loadColumn ( ) ; if ( $ result === false ) { return false ; } foreach ( $ result as $ row ) { call_user_func ( $ func , $ row ) ; } return true ; }
Iterate through each group and do something

@param   string  $func
@return  boolean
Iterate through each group and do something