| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- <?php
- /* * ********************************************************************
- * KerioEmail product developed. (May 7, 2018)
- * *
- *
- * CREATED BY THURDATA -> http://thurdata.com
- * CONTACT -> contact@thurdata.com
- *
- *
- * This software is furnished under a license and may be used and copied
- * only in accordance with the terms of such license and with the
- * inclusion of the above copyright notice. This software or any other
- * copies thereof may not be provided or otherwise made available to any
- * other person. No title to and ownership of the software is hereby
- * transferred.
- *
- *
- * ******************************************************************** */
- namespace ThurData\Servers\KerioEmail\Core\UI\Widget\Others;
- use \ThurData\Servers\KerioEmail\Core\UI\Builder\BaseContainer;
- /**
- * Description of PasswordHiddenButton
- *
- * @autor ThurData <info@thurdata.ch>
- */
- class PasswordToggleButton extends BaseContainer
- {
- protected $iconOn = 'lu-zmdi lu-zmdi-eye';
- protected $iconOff = 'lu-zmdi lu-zmdi-eye-off';
- private $password;
- protected $vueComponent = true;
- protected $defaultVueComponentName = 'mg-passtoogle';
- public function getIconOn()
- {
- return $this->iconOn;
- }
- public function getIconOff()
- {
- return $this->iconOff;
- }
- public function setIconOn($iconOn)
- {
- $this->iconOn = $iconOn;
- return $this;
- }
- public function setIconOff($iconOff)
- {
- $this->iconOff = $iconOff;
- return $this;
- }
- public function getPassword()
- {
- return $this->password;
- }
- public function setPassword($password)
- {
- $this->password = $password;
- return $this;
- }
- public function getPasswordHidden(){
- return str_repeat('*', strlen($this->getPassword()));
- }
- }
|