Property | Type | Description | |
---|---|---|---|
$data | stdClass | Data from the API index. | |
$index | string | API index URL. |
Method | Description | |
---|---|---|
__construct ( stdClass $data, string $index ) | Constructor. | |
getAuthenticationData ( string $method ) : mixed | Get method-specific data for the given authentication method. | |
getDescription ( ) : string | Get the description for a site. | |
getIndexURL ( ) : string | Get the index URL for the API. | |
getName ( ) : string | Get the name of a site. | |
getSupportedAuthentication ( ) : array | Get features supported by the site. | |
getSupportedNamespaces ( ) : string[] | Get namespaces supported by the site. | |
getURL ( ) : string | Get the URL for a site. | |
supportsAuthentication ( string $method ) : boolean | Does the site support an authentication method? | |
supportsNamespace ( string $namespace ) : boolean | Does the site support a namespace? |
public __construct ( stdClass $data, string $index ) | ||
$data | stdClass | Data from the API index. |
$index | string | API index URL. |
public getAuthenticationData ( string $method ) : mixed | ||
$method | string | Authentication method to get data for. |
return | mixed | Method-specific data if available, null if not supported. |
public getDescription ( ) : string | ||
return | string |
public getIndexURL ( ) : string | ||
return | string |
public getSupportedAuthentication ( ) : array | ||
return | array | Map of authentication method => method-specific data. |
public getSupportedNamespaces ( ) : string[] | ||
return | string[] | List of namespaces supported by the site. |
public supportsAuthentication ( string $method ) : boolean | ||
$method | string | Authentication method to check. |
return | boolean | True if supported by the site, false otherwise. |
public supportsNamespace ( string $namespace ) : boolean | ||
$namespace | string | Namespace to check. |
return | boolean | True if supported by the site, false otherwise. |