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

저자: Daniel LaBarge ([email protected])
파일 보기 프로젝트 열기: esensi/model 0 사용 예제들

공개 메소드들

메소드 설명
addHashable ( string $attribute ) Add an attribute to the hashable array.
checkHash ( string $value, string $hash ) : boolean Return whether a plain value matches a hashed value.
getHashable ( ) : array Get the hashable attributes.
getHasher ( ) : Illuminate\Contracts\Hashing\Hasher Set the Hasher to use for hashing.
getHashing ( ) : boolean Returns whether or not the model will hash attributes before saving.
hash ( string $value ) : string Return a hashed string for the value.
hashAttributes ( ) Hash attributes that should be hashed.
isHashable ( string $attribute ) : boolean Returns whether the attribute is hashable.
isHashed ( string $attribute ) : boolean Returns whether the attribute is hashed.
mergeHashable ( array $attributes ) Merge an array of attributes with the hashable array.
removeHashable ( string $attribute ) Remove an attribute from the hashable array.
saveWithHashing ( ) : boolean Save with hashing even if hashing is disabled.
saveWithoutHashing ( ) : boolean Save without hashing even if hashing is enabled.
setHashable ( array $attributes ) Set the hashable attributes.
setHasher ( Illuminate\Contracts\Hashing\Hasher $hasher ) Set the Hasher to use for hashing.
setHashing ( $value ) Set whether or not the model will hash attributes before saving.

메소드 상세

addHashable() 공개 메소드

Add an attribute to the hashable array.
public addHashable ( string $attribute )
$attribute string to purge

checkHash() 공개 메소드

Return whether a plain value matches a hashed value.
public checkHash ( string $value, string $hash ) : boolean
$value string
$hash string to compare to
리턴 boolean

getHashable() 공개 메소드

Get the hashable attributes.
public getHashable ( ) : array
리턴 array

getHasher() 공개 메소드

Set the Hasher to use for hashing.
public getHasher ( ) : Illuminate\Contracts\Hashing\Hasher
리턴 Illuminate\Contracts\Hashing\Hasher

getHashing() 공개 메소드

Returns whether or not the model will hash attributes before saving.
public getHashing ( ) : boolean
리턴 boolean

hash() 공개 메소드

Return a hashed string for the value.
public hash ( string $value ) : string
$value string
리턴 string

hashAttributes() 공개 메소드

Hash attributes that should be hashed.
public hashAttributes ( )

isHashable() 공개 메소드

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

isHashed() 공개 메소드

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

mergeHashable() 공개 메소드

Merge an array of attributes with the hashable array.
public mergeHashable ( array $attributes )
$attributes array to purge

removeHashable() 공개 메소드

Remove an attribute from the hashable array.
public removeHashable ( string $attribute )
$attribute string to purge

saveWithHashing() 공개 메소드

Save with hashing even if hashing is disabled.
public saveWithHashing ( ) : boolean
리턴 boolean

saveWithoutHashing() 공개 메소드

Save without hashing even if hashing is enabled.
public saveWithoutHashing ( ) : boolean
리턴 boolean

setHashable() 공개 메소드

Set the hashable attributes.
public setHashable ( array $attributes )
$attributes array to hash

setHasher() 공개 메소드

Set the Hasher to use for hashing.
public setHasher ( Illuminate\Contracts\Hashing\Hasher $hasher )
$hasher Illuminate\Contracts\Hashing\Hasher

setHashing() 공개 메소드

Set whether or not the model will hash attributes before saving.
public setHashing ( $value )