‪TYPO3CMS  ‪main
TYPO3\CMS\Backend\Form\Element\PasswordElement Class Reference
Inheritance diagram for TYPO3\CMS\Backend\Form\Element\PasswordElement:
TYPO3\CMS\Backend\Form\Element\AbstractFormElement TYPO3\CMS\Backend\Form\AbstractNode TYPO3\CMS\Backend\Form\NodeInterface

Public Member Functions

array render ()
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Backend\Form\Element\AbstractFormElement
 injectNodeFactory (NodeFactory $nodeFactory)
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Backend\Form\AbstractNode
 setData (array $data)
 

Protected Member Functions

 getObfuscatedSecretValue (?string $value)
 
- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Backend\Form\Element\AbstractFormElement
array renderFieldInformation ()
 
array renderFieldControl ()
 
array renderFieldWizard ()
 
 renderLabel (string $for)
 
 wrapWithFieldsetAndLegend (string $innerHTML)
 
 hasNullCheckboxButNoPlaceholder ()
 
 hasNullCheckboxWithPlaceholder ()
 
string formatValue ($format, $itemValue, $formatOptions=[])
 
int formMaxWidth ($size=48)
 
 resolveJavaScriptEvaluation (array $resultArray, string $name, ?object $evalObject)
 
string checkBoxParams (string $itemName, int $formElementValue, int $checkbox, int $checkboxesCount, array $fieldChangeFuncs=[], bool $invert=false)
 
 calculateColumnMarkup (int $cols)
 
 appendValueToLabelInDebugMode (string|int $label, string|int $value)
 
 getLanguageService ()
 
 getBackendUser ()
 
- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Backend\Form\AbstractNode
 initializeResultArray ()
 
array mergeChildReturnIntoExistingResult (array $existing, array $childReturn, bool $mergeHtml=true)
 
 getValidationDataAsJsonString (array $config)
 

Protected Attributes

array $defaultFieldInformation
 
- ‪Protected Attributes inherited from ‪TYPO3\CMS\Backend\Form\Element\AbstractFormElement
int $defaultInputWidth = 30
 
int $minimumInputWidth = 10
 
int $maxInputWidth = 50
 
NodeFactory $nodeFactory
 
- ‪Protected Attributes inherited from ‪TYPO3\CMS\Backend\Form\AbstractNode
array $data = []
 
array $defaultFieldInformation = array( )
 
array $defaultFieldControl = array( )
 
array $defaultFieldWizard = array( )
 

Private Member Functions

 renderPasswordPolicyRequirements (PasswordPolicyValidator $passwordPolicyValidator, string $fieldId)
 

Detailed Description

General type=password element.

Definition at line 30 of file PasswordElement.php.

Member Function Documentation

◆ getObfuscatedSecretValue()

TYPO3\CMS\Backend\Form\Element\PasswordElement::getObfuscatedSecretValue ( ?string  $value)
protected

Obfuscated a (hashed) password secret with a static string.

Todo:
  • ‪server-side password obfuscation value is ********* (9 chars)
  • ‪client-side password obfuscation value is ******** (8 chars)

Definition at line 277 of file PasswordElement.php.

Referenced by TYPO3\CMS\Backend\Form\Element\PasswordElement\render().

◆ render()

array TYPO3\CMS\Backend\Form\Element\PasswordElement::render ( )

This will render a single-line password form field, possibly with various control/validation features

Returns
‪array As defined in initializeResultArray() of AbstractNode

Reimplemented from TYPO3\CMS\Backend\Form\AbstractNode.

Definition at line 47 of file PasswordElement.php.

References TYPO3\CMS\Core\Page\JavaScriptModuleInstruction\create(), TYPO3\CMS\Core\Utility\GeneralUtility\fixed_lgd_cs(), TYPO3\CMS\Core\Utility\MathUtility\forceIntegerInRange(), TYPO3\CMS\Backend\Form\Element\AbstractFormElement\formMaxWidth(), TYPO3\CMS\Backend\Form\Element\AbstractFormElement\getLanguageService(), TYPO3\CMS\Backend\Form\Element\PasswordElement\getObfuscatedSecretValue(), TYPO3\CMS\Core\Utility\StringUtility\getUniqueId(), TYPO3\CMS\Backend\Form\AbstractNode\getValidationDataAsJsonString(), TYPO3\CMS\Backend\Form\Element\AbstractFormElement\hasNullCheckboxButNoPlaceholder(), TYPO3\CMS\Backend\Form\Element\AbstractFormElement\hasNullCheckboxWithPlaceholder(), TYPO3\CMS\Backend\Form\AbstractNode\initializeResultArray(), TYPO3\CMS\Backend\Form\AbstractNode\mergeChildReturnIntoExistingResult(), TYPO3\CMS\Core\PasswordPolicy\NEW_USER_PASSWORD, TYPO3\CMS\Backend\Form\Element\AbstractFormElement\renderFieldControl(), TYPO3\CMS\Backend\Form\Element\AbstractFormElement\renderFieldInformation(), TYPO3\CMS\Backend\Form\Element\AbstractFormElement\renderFieldWizard(), TYPO3\CMS\Backend\Form\Element\AbstractFormElement\renderLabel(), and TYPO3\CMS\Backend\Form\Element\PasswordElement\renderPasswordPolicyRequirements().

◆ renderPasswordPolicyRequirements()

TYPO3\CMS\Backend\Form\Element\PasswordElement::renderPasswordPolicyRequirements ( PasswordPolicyValidator  $passwordPolicyValidator,
string  $fieldId 
)
private

Member Data Documentation

◆ $defaultFieldInformation

array TYPO3\CMS\Backend\Form\Element\PasswordElement::$defaultFieldInformation
protected
Initial value:
= array(
'tcaDescription' => [
'renderType' => 'tcaDescription',
],
)

Default field information enabled for this element.

Definition at line 36 of file PasswordElement.php.