PHP Class OptomPortalConnection

Afficher le fichier Open project: openeyes/openeyes Class Usage Examples

Protected Properties

Свойство Type Description
$client Zend_Http_Client
$config
$required_config_keys array For validating the configuration keys

Méthodes publiques

Méthode Description
__construct ( CApplication $yii = null ) OptomPortalConnection constructor.
createNewSignatureImage ( $imageData, $fileId ) : ProtectedFile Creates a new ProtectedFile for the new signature image
signatureSearch ( $start_date = null, $uniqueId = null ) : mixed Search the API for signatures.

Méthodes protégées

Méthode Description
initClient ( ) : Zend_Http_Client Init HTTP client.
login ( ) Login to the API, set the auth header.
setConfig ( ) Set portal config.

Method Details

__construct() public méthode

OptomPortalConnection constructor.
public __construct ( CApplication $yii = null )
$yii CApplication - for dependency injection/testing

createNewSignatureImage() public méthode

Creates a new ProtectedFile for the new signature image
public createNewSignatureImage ( $imageData, $fileId ) : ProtectedFile
$imageData
Résultat ProtectedFile

initClient() protected méthode

Init HTTP client.
protected initClient ( ) : Zend_Http_Client
Résultat Zend_Http_Client

login() protected méthode

Login to the API, set the auth header.
protected login ( )

setConfig() protected méthode

Set portal config.
protected setConfig ( )

signatureSearch() public méthode

Search the API for signatures.
public signatureSearch ( $start_date = null, $uniqueId = null ) : mixed
Résultat mixed

Property Details

$client protected_oe property

protected Zend_Http_Client $client
Résultat Zend_Http_Client

$config protected_oe property

protected $config

$required_config_keys protected_oe static_oe property

For validating the configuration keys
protected static array $required_config_keys
Résultat array