PHP 인터페이스 Esensi\Model\Contracts\EncryptingModelInterface

저자: Daniel LaBarge ([email protected])
파일 보기 프로젝트 열기: esensi/model

공개 메소드들

메소드 설명
addEncryptable ( string $attribute ) Add an attribute to the encryptable array.
decrypt ( string $value ) : string Return a decrypted string for the value.
encrypt ( string $value ) : string Return an encrypted string for the value.
encryptAttributes ( ) Encrypt attributes that should be encrypted.
getEncryptable ( ) : array Get the encryptable attributes.
getEncrypter ( ) : Illuminate\Encryption\Encrypter Set the Encrypter to use for encryption.
getEncrypting ( ) : boolean Returns whether or not the model will encrypt attributes when setting and decrypt when getting.
isDecrypted ( string $attribute ) : boolean Returns whether the attribute is decrypted.
isEncryptable ( string $attribute ) : boolean Returns whether the attribute is encryptable.
isEncrypted ( string $attribute ) : boolean Returns whether the attribute is encrypted.
mergeEncryptable ( array $attributes ) Merge an array of attributes with the encryptable array.
removeEncryptable ( string $attribute ) Remove an attribute from the encryptable array.
setEncryptable ( array $attributes ) Set the encryptable attributes.
setEncrypter ( Illuminate\Encryption\Encrypter $encrypter ) Set the Encrypter to use for encryption.
setEncrypting ( $value ) Set whether or not the model will encrypt attributes when setting and decrypt when getting.

메소드 상세

addEncryptable() 공개 메소드

Add an attribute to the encryptable array.
public addEncryptable ( string $attribute )
$attribute string to encrypt

decrypt() 공개 메소드

Return a decrypted string for the value.
public decrypt ( string $value ) : string
$value string
리턴 string

encrypt() 공개 메소드

Return an encrypted string for the value.
public encrypt ( string $value ) : string
$value string
리턴 string

encryptAttributes() 공개 메소드

Encrypt attributes that should be encrypted.
public encryptAttributes ( )

getEncryptable() 공개 메소드

Get the encryptable attributes.
public getEncryptable ( ) : array
리턴 array

getEncrypter() 공개 메소드

Set the Encrypter to use for encryption.
public getEncrypter ( ) : Illuminate\Encryption\Encrypter
리턴 Illuminate\Encryption\Encrypter $encrypter

getEncrypting() 공개 메소드

Returns whether or not the model will encrypt attributes when setting and decrypt when getting.
public getEncrypting ( ) : boolean
리턴 boolean

isDecrypted() 공개 메소드

Returns whether the attribute is decrypted.
public isDecrypted ( string $attribute ) : boolean
$attribute string name
리턴 boolean

isEncryptable() 공개 메소드

Returns whether the attribute is encryptable.
public isEncryptable ( string $attribute ) : boolean
$attribute string name
리턴 boolean

isEncrypted() 공개 메소드

Returns whether the attribute is encrypted.
public isEncrypted ( string $attribute ) : boolean
$attribute string name
리턴 boolean

mergeEncryptable() 공개 메소드

Merge an array of attributes with the encryptable array.
public mergeEncryptable ( array $attributes )
$attributes array to encrypt

removeEncryptable() 공개 메소드

Remove an attribute from the encryptable array.
public removeEncryptable ( string $attribute )
$attribute string to encrypt

setEncryptable() 공개 메소드

Set the encryptable attributes.
public setEncryptable ( array $attributes )
$attributes array to encrypt

setEncrypter() 공개 메소드

Set the Encrypter to use for encryption.
public setEncrypter ( Illuminate\Encryption\Encrypter $encrypter )
$encrypter Illuminate\Encryption\Encrypter

setEncrypting() 공개 메소드

Set whether or not the model will encrypt attributes when setting and decrypt when getting.
public setEncrypting ( $value )