PHP Class Swiftriver\Core\DAL\Repositories\APIKeyRepository

Author: mg[at]swiftly[dot]org
Exibir arquivo Open project: ushahidi/Swiftriver-2011

Public Methods

Method Description
AddRegisteredAPIKey ( string $key ) : boolean Adds a new API key to the list of registered API Keys Returns true on sucess
IsRegisterdCoreAPIKey ( string $key ) : boolean Checks that the provided Key is registed against this install of the Core Returns true on sucess
RemoveRegisteredAPIKey ( string $key ) : boolean Removes a registered API key Returns true on sucess
__construct ( string $dataContext = null ) The constructor for this repository Accepts the fully qulaified type of the IAPIKeyDataContext implemting data context for this repository

Method Details

AddRegisteredAPIKey() public method

Adds a new API key to the list of registered API Keys Returns true on sucess
public AddRegisteredAPIKey ( string $key ) : boolean
$key string
return boolean

IsRegisterdCoreAPIKey() public method

Checks that the provided Key is registed against this install of the Core Returns true on sucess
public IsRegisterdCoreAPIKey ( string $key ) : boolean
$key string
return boolean

RemoveRegisteredAPIKey() public method

Removes a registered API key Returns true on sucess
public RemoveRegisteredAPIKey ( string $key ) : boolean
$key string
return boolean

__construct() public method

The constructor for this repository Accepts the fully qulaified type of the IAPIKeyDataContext implemting data context for this repository
public __construct ( string $dataContext = null )
$dataContext string