Source API for the «PortePlugins_CryptType» class

Property type representation crypted content.

Public static methods

fromDb

Decrypt a value retrieve from the database and store it into the internal record store.

return
PorteRecord
Current record
$property
string, Model
property
$record
PorteRecord, Record
to work on
$value
string, Value
returned by the sql query
toDb

Encrypt a value stored into the internal record and prepare it for inclusion into the database.

return
array
A two elements indexed array with the database field and the database value
$property
string, Model
property
$record
PorteRecord, Record
to work on
$value
string, Value
to prepare for the sql query
tableUpdate

This method is not yet documented.