\Verifier_Service

Summary

Methods
Properties
Constants
createVerification()
findVerifications()
getVerification()
validateVerification()
clearVerifications()
getEngine()
engines()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

createVerification()

createVerification(\User_Account  $user, \Pluf_Model  $subject) : \User_Verification

Creates a new verification.

Parameters

\User_Account $user

the account who is owner of the verification

\Pluf_Model $subject

the model which should be verified

Returns

\User_Verification

findVerifications()

findVerifications(\Pluf_Model|string  $subject, integer  $subjectId = null) 

Returns list of verifications to verify given subject

Parameters

\Pluf_Model|string $subject
integer $subjectId

getVerification()

getVerification(\User_Account  $account, \Pluf_Model  $subject, string  $code) : \User_Verification

Returns the verification with given code which is created to verify the given subject.

Parameters

\User_Account $account

the account which is the owner of the verification

\Pluf_Model $subject

the model to verify

string $code

the code of the verification

Returns

\User_Verification

validateVerification()

validateVerification(\User_Verification  $verification, string  $code) : boolean

Checks if given code and verification is acceptable

Parameters

\User_Verification $verification
string $code

Returns

boolean

clearVerifications()

clearVerifications(\Pluf_Model|string  $subject, integer  $subjectId = null) : boolean

Clears verifications created to verify the given subject

Parameters

\Pluf_Model|string $subject
integer $subjectId

Returns

boolean —

true if the process is successful.

getEngine()

getEngine(string  $type) : \Verifier_Engine

Find engine

Parameters

string $type

Returns

\Verifier_Engine

engine

engines()

engines() : array

Returns the list of supported verification engines.

Returns

array —

the list of the supported verification engines.