public static function getInstance($type, $authenticator, $domain)
	{
		$query = self::all()
			->whereEquals('type', $type)
			->whereEquals('authenticator', $authenticator);
		if ($domain)
		{
			$query->whereEquals('domain', $domain);
		}
		$row = $query->row();

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

		return $row;
	}
public static function getInstance($type, $authenticator, $domain)
	{
		$query = self::all()
			->whereEquals('type', $type)
			->whereEquals('authenticator', $authenticator);
		if ($domain)
		{
			$query->whereEquals('domain', $domain);
		}
		$row = $query->row();

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

		return $row;
	}
public static function getInstance ( $ type , $ authenticator , $ domain ) { $ query = self :: all ( ) -> whereEquals ( 'type' , $ type ) -> whereEquals ( 'authenticator' , $ authenticator ) ; if ( $ domain ) { $ query -> whereEquals ( 'domain' , $ domain ) ; } $ row = $ query -> row ( ) ; if ( ! $ row || ! $ row -> get ( 'id' ) ) { return false ; } return $ row ; }
Get a Domain instance

@param   string  $type
@param   string  $authenticator
@param   string  $domain
@return  mixed   Object on success, False on failure
Get a Domain instance