Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
__construct ($options) | |
getSha1 () | |
setHash ($options) | |
setSha1 ($options) | |
addHash ($options) | |
addSha1 ($options) | |
isValid ($value, $file=null) | |
![]() | |
__construct ($options) | |
getHash () | |
setHash ($options) | |
addHash ($options) | |
isValid ($value, $file=null) | |
![]() | |
getMessages () | |
getMessageVariables () | |
getMessageTemplates () | |
setMessage ($messageString, $messageKey=null) | |
setMessages (array $messages) | |
__get ($property) | |
getErrors () | |
setObscureValue ($flag) | |
getObscureValue () | |
setTranslator ($translator=null) | |
getTranslator () | |
hasTranslator () | |
setDisableTranslator ($flag) | |
translatorIsDisabled () | |
![]() | |
isValid ($value) | |
Data Fields | |
const | DOES_NOT_MATCH = 'fileSha1DoesNotMatch' |
const | NOT_DETECTED = 'fileSha1NotDetected' |
const | NOT_FOUND = 'fileSha1NotFound' |
![]() | |
const | DOES_NOT_MATCH = 'fileHashDoesNotMatch' |
const | NOT_DETECTED = 'fileHashHashNotDetected' |
const | NOT_FOUND = 'fileHashNotFound' |
Protected Attributes | |
$_messageTemplates | |
$_hash | |
![]() | |
$_messageTemplates | |
$_hash | |
![]() | |
$_value | |
$_messageVariables = array() | |
$_messageTemplates = array() | |
$_messages = array() | |
$_obscureValue = false | |
$_errors = array() | |
$_translator | |
$_translatorDisabled = false | |
Additional Inherited Members | |
![]() | |
static | setDefaultTranslator ($translator=null) |
static | getDefaultTranslator () |
static | hasDefaultTranslator () |
static | getMessageLength () |
static | setMessageLength ($length=-1) |
![]() | |
_throw ($file, $errorType) | |
![]() | |
_createMessage ($messageKey, $value) | |
_implodeRecursive (array $pieces) | |
_error ($messageKey, $value=null) | |
_setValue ($value) | |
![]() | |
static | $_defaultTranslator |
static | $_messageLength = -1 |
__construct | ( | $options | ) |
Sets validator options
$hash is the hash we accept for the file $file
string | array | $options |
Zend_Validate_Exception |
Definition at line 69 of file Sha1.php.
addHash | ( | $options | ) |
Adds the sha1 hash for one or multiple files
string | array | $options |
addSha1 | ( | $options | ) |
Adds the sha1 hash for one or multiple files
string | array | $options |
Definition at line 145 of file Sha1.php.
isValid | ( | $value, | |
$file = null |
|||
) |
Defined by Zend_Validate_Interface
Returns true if and only if the given file confirms the set hash
string | $value | Filename to check for hash |
array | $file | File data from Zend_File_Transfer |
Definition at line 160 of file Sha1.php.
setHash | ( | $options | ) |
Sets the sha1 hash for one or multiple files
string | array | $options |
setSha1 | ( | $options | ) |
Sets the sha1 hash for one or multiple files
string | array | $options |
Definition at line 116 of file Sha1.php.
|
protected |
const DOES_NOT_MATCH = 'fileSha1DoesNotMatch' |