API - XOOPS 2.5.11 Beta 2
By monxoops.fr
XoopsFormPassword Class Reference
Inheritance diagram for XoopsFormPassword:
Collaboration diagram for XoopsFormPassword:

Public Member Functions

 __construct ($caption, $name, $size, $maxlength, $value='', $autoComplete=false)
 
 getSize ()
 
 getMaxlength ()
 
 getValue ($encode=false)
 
 setValue ($value)
 
 render ()
 
- Public Member Functions inherited from XoopsFormElement
 __construct ()
 
 isContainer ()
 
 setName ($name)
 
 getName ($encode=true)
 
 setAccessKey ($key)
 
 getAccessKey ()
 
 getAccessString ($str)
 
 setClass ($class)
 
 getClass ()
 
 setCaption ($caption)
 
 getCaption ($encode=false)
 
 getTitle ($encode=true)
 
 setDescription ($description)
 
 getDescription ($encode=false)
 
 setHidden ()
 
 isHidden ()
 
 isRequired ()
 
 setExtra ($extra, $replace=false)
 
 getExtra ($encode=false)
 
 setNocolspan ($nocolspan=true)
 
 getNocolspan ()
 
 getFormType ()
 
 setFormType ($value='')
 
 renderValidationJS ()
 
 render ()
 

Data Fields

 $_size
 
 $_maxlength
 
 $_value
 
 $autoComplete = false
 
- Data Fields inherited from XoopsFormElement
 $customValidationCode = array()
 
 $_name
 
 $_caption
 
 $_accesskey = ''
 
 $_class = array()
 
 $_hidden = false
 
 $_extra = array()
 
 $_required = false
 
 $_description = ''
 
 $_nocolspan = false
 
 $_formtype = ''
 

Detailed Description

Password Field

Constructor & Destructor Documentation

◆ __construct()

__construct (   $caption,
  $name,
  $size,
  $maxlength,
  $value = '',
  $autoComplete = false 
)

Constructor

Parameters
string$captionCaption
string$name"name" attribute
int$sizeSize of the field
int$maxlengthMaximum length of the text
string$valueInitial value of the field. Warning: this is readable in cleartext in the page's source!
bool$autoCompleteTo enable autoComplete or browser cache
Here is the call graph for this function:

Member Function Documentation

◆ getMaxlength()

getMaxlength ( )

Get the max length

Returns
int
Here is the caller graph for this function:

◆ getSize()

getSize ( )

Get the field size

Returns
int
Here is the caller graph for this function:

◆ getValue()

getValue (   $encode = false)

Get the "value" attribute

Parameters
bool$encodeTo sanitizer the text?
Returns
string
Here is the caller graph for this function:

◆ render()

render ( )

Prepare HTML for output

Returns
string HTML

Reimplemented from XoopsFormElement.

Here is the call graph for this function:

◆ setValue()

setValue (   $value)

Set the initial value

@patam $value string

Parameters
$value
Here is the caller graph for this function:

Field Documentation

◆ $_maxlength

$_maxlength

◆ $_size

$_size

◆ $_value

$_value

◆ $autoComplete

$autoComplete = false

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