public static function find($type, $authenticator, $domain, $username)
	{
		$hzad = Domain::find_or_create($type, $authenticator, $domain);

		if (!is_object($hzad))
		{
			return false;
		}

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

		$row = self::all()
			->whereEquals('auth_domain_id', $hzad->get('id'))
			->whereEquals('username', $username)
			->row();

		if (!$row || !$row->get('id'))
		{
			return false;
		}

		return $row;
	}
public static function find($type, $authenticator, $domain, $username)
	{
		$hzad = Domain::find_or_create($type, $authenticator, $domain);

		if (!is_object($hzad))
		{
			return false;
		}

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

		$row = self::all()
			->whereEquals('auth_domain_id', $hzad->get('id'))
			->whereEquals('username', $username)
			->row();

		if (!$row || !$row->get('id'))
		{
			return false;
		}

		return $row;
	}
public static function find ( $ type , $ authenticator , $ domain , $ username ) { $ hzad = Domain :: find_or_create ( $ type , $ authenticator , $ domain ) ; if ( ! is_object ( $ hzad ) ) { return false ; } if ( empty ( $ username ) ) { return false ; } $ row = self :: all ( ) -> whereEquals ( 'auth_domain_id' , $ hzad -> get ( 'id' ) ) -> whereEquals ( 'username' , $ username ) -> row ( ) ; if ( ! $ row || ! $ row -> get ( 'id' ) ) { return false ; } return $ row ; }
Find existing auth_link entry, return false if none exists

@param   string  $type
@param   string  $authenticator
@param   string  $domain
@param   string  $username
@return  mixed   object on success and false on failure
Find existing auth_link entry return false if none exists