XOOPS  2.6.0
Xoops\Form\Password Class Reference
Inheritance diagram for Xoops\Form\Password:
Inheritance graph

Public Member Functions

 __construct ($caption, $name, $size, $maxlength, $value= '', $autoComplete=false, $placeholder= '')
 
 getMaxlength ()
 
 getPlaceholder ()
 
 getSize ()
 
 render ()
 
- Public Member Functions inherited from Xoops\Form\Element
 getAccessKey ()
 
 getAccessString ($str)
 
 getCaption ()
 
 getClass ()
 
 getDatalist ()
 
 getDescription ($encode=false)
 
 getExtra ($encode=false)
 
 getMaxcols ()
 
 getName ()
 
 getPattern ()
 
 getPatternDescription ()
 
 getTitle ()
 
 getValue ($encode=false)
 
 isDatalist ()
 
 isHidden ()
 
 isRequired ()
 
 render ()
 
 renderAttributeString ()
 
 renderValidationJS ()
 
 setAccessKey ($key)
 
 setCaption ($caption)
 
 setClass ($class)
 
 setDatalist ($datalist)
 
 setDescription ($description)
 
 setExtra ($extra, $replace=false)
 
 setHidden ()
 
 setName ($name)
 
 setPattern ($pattern, $pattern_description= '')
 
 setRequired ($bool=true)
 
 setTitle ($title)
 
 setValue ($value)
 
- Public Member Functions inherited from Xoops\Html\Attributes
 addAttribute ($name, $value)
 
 getAttribute ($name)
 
 hasAttribute ($name)
 
 renderAttributeString ()
 
 setAttribute ($name, $value=null)
 
 setAttributes ($values)
 
 unsetAttribute ($name)
 

Additional Inherited Members

- Public Attributes inherited from Xoops\Form\Element
 $customValidationCode = array()
 
- Protected Attributes inherited from Xoops\Form\Element
 $value = ''
 
- Protected Attributes inherited from Xoops\Html\Attributes
 $attributes = array()
 

Detailed Description

Definition at line 26 of file Password.php.

Constructor & Destructor Documentation

Xoops\Form\Password::__construct (   $caption,
  $name,
  $size,
  $maxlength,
  $value = '',
  $autoComplete = false,
  $placeholder = '' 
)

__construct

Parameters
string$captionCaption
string$namename attribute
integer$sizeSize of the field
integer$maxlengthMaximum length of the text
string$valueInitial value of the field - Warning: readable in cleartext in the page!
boolean$autoCompleteTo enable autoComplete or browser cache
string$placeholderplaceholder for this element.

Definition at line 69 of file Password.php.

References Xoops\Form\Element\$caption, $name, Xoops\Form\Element\$value, Xoops\Html\Attributes\setAttribute(), Xoops\Form\Element\setCaption(), and Xoops\Form\Element\setValue().

Here is the call graph for this function:

Member Function Documentation

Xoops\Form\Password::getMaxlength ( )

Get the max length

Returns
int

Definition at line 105 of file Password.php.

References Xoops\Html\Attributes\getAttribute().

Here is the call graph for this function:

Xoops\Form\Password::getPlaceholder ( )

Get placeholder for this element

Returns
string

Definition at line 115 of file Password.php.

References Xoops\Html\Attributes\setAttribute().

Here is the call graph for this function:

Xoops\Form\Password::getSize ( )

Get the field size

Returns
int

Definition at line 95 of file Password.php.

References Xoops\Html\Attributes\getAttribute().

Referenced by Xoops\Form\Password\render().

Here is the call graph for this function:

Here is the caller graph for this function:


The documentation for this class was generated from the following file: