This class parses the signatures or swipe cards or both and returns the coordinates of signature or info on the cards.
package |
Application |
---|
__construct(\com\scriptel\STNSignatureProtocolsignatureProtocol = false, \com\scriptel\STNCardSwipeProtocolcardProtocol = false) : mixed
\com\scriptel\STNSignatureProtocol
Protocol for the device you're trying to decode signatures for.
\com\scriptel\STNCardSwipeProtocol
Protocol for the device you're trying to decode card swipes for.
mixed
addListener(\com\scriptel\EasyScriptEventListenercr) : mixed
\com\scriptel\EasyScriptEventListener
mixed
clearBuffers() : mixed
mixed
getEventListeners() : \com\scriptel\EasyScriptEventListener[]
\com\scriptel\EasyScriptEventListener[]
interruptedSignature(stringchr) : mixed
string
Current character in the stream.
mixed
parse(stringsig) : \com\scriptel\Signature
Throws |
|
---|
string
The signature or card swipe data that would be decoded.
\com\scriptel\Signature
| CardSwipe
parseCard(stringchr) : \com\scriptel\EasyScriptCardState
string
Current character in the stream.
\com\scriptel\EasyScriptCardState
parseCardSwipe(stringswipe) : \com\scriptel\CardSwipe
Throws |
|
---|
string
ScripTouch magnetic strip data.
\com\scriptel\CardSwipe
Parsed card swipe.
parseCharacter(stringchr) : mixed
This listener will be called when specific events are generated by decoding the stream.
Throws |
|
---|
string
Next character in the stream to parse.
mixed
removeListener(\com\scriptel\EasyScriptEventListenercr) : mixed
\com\scriptel\EasyScriptEventListener
mixed
signatureCompressedState(stringchr) : mixed
var |
EasyScriptEventListener |
---|---|
string
Current character in the stream.
mixed
tranistionFromSignatureSentinelToProtocolVersion(stringchr) : mixed
Throws |
|
---|
string
Current character in the stream.
mixed
transitionFromCardSentinelToData(\com\scriptel\EasyScriptCardStatestate) : mixed
\com\scriptel\EasyScriptCardState
Final state of the card.
mixed
transitionFromFirmwareVersionToSignature(stringchr) : mixed
var |
EasyScriptEventListener |
---|---|
Throws |
|
string
Current character in the stream.
mixed
transitionFromModelToFirmwareVersion(stringchr) : mixed
string
Current character in the stream.
mixed
transitionFromProtocolVersionToModel(stringchr) : mixed
string
Current character in the stream.
mixed
transitionFromUnknownToSentinel(stringchr) : mixed
string
Current character in the stream.
mixed
LIBRARY_VERSION
LIBRARY_BUILD_DATE
signatureProtocol :
var |
SignatureProtocol. |
---|
cardProtocol : \com\scriptel\CardSwipeProtocol
cardState :
var |
EasyScriptCardState. |
---|
signatureBuffer : string
var |
---|
string
cardBuffer : string
var |
---|
string
decoder : \com\scriptel\EasyScriptDecoder
eventListeners : \com\scriptel\EasyScriptEventListener[]
currentPosition : int
var |
---|
int
currentState : \com\scriptel\EasyScriptStreamingState