public static function iterate_profiles($func)
	{
		$db = \App::get('db');
		$db->setQuery("SELECT uidNumber FROM `#__xprofiles`;");

		$result = $db->loadColumn();

		if ($result === false)
		{
			throw new Exception('Error retrieving data from xprofiles table: ' . $db->getErrorMsg(), 500);
			return false;
		}

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

		return true;
	}
public static function iterate_profiles($func)
	{
		$db = \App::get('db');
		$db->setQuery("SELECT uidNumber FROM `#__xprofiles`;");

		$result = $db->loadColumn();

		if ($result === false)
		{
			throw new Exception('Error retrieving data from xprofiles table: ' . $db->getErrorMsg(), 500);
			return false;
		}

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

		return true;
	}
public static function iterate_profiles ( $ func ) { $ db = \ App :: get ( 'db' ) ; $ db -> setQuery ( "SELECT uidNumber FROM `#__xprofiles`;" ) ; $ result = $ db -> loadColumn ( ) ; if ( $ result === false ) { throw new Exception ( 'Error retrieving data from xprofiles table: ' . $ db -> getErrorMsg ( ) , 500 ) ; return false ; } foreach ( $ result as $ row ) { $ func ( $ row ) ; } return true ; }
Run a callback across all profiles

@param   object   $func  Anonymous function
@return  boolean
Run a callback across all profiles