XOOPS 2.5.6  Final
 All Classes Namespaces Files Functions Variables Pages
XoopsFormPassword Class Reference
Inheritance diagram for XoopsFormPassword:
Inheritance graph

Public Member Functions

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

Public Attributes

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

Detailed Description

Password Field

Definition at line 26 of file formpassword.php.

Member Function Documentation

XoopsFormPassword::getMaxlength ( )

Get the max length

Returns
int

Definition at line 97 of file formpassword.php.

XoopsFormPassword::getSize ( )

Get the field size

Returns
int

Definition at line 87 of file formpassword.php.

XoopsFormPassword::getValue (   $encode = false)

Get the "value" attribute

Parameters
bool$encodeTo sanitizer the text?
Returns
string

Definition at line 108 of file formpassword.php.

XoopsFormPassword::render ( )

Prepare HTML for output

Returns
string HTML

Definition at line 128 of file formpassword.php.

XoopsFormPassword::setValue (   $value)

Set the initial value

$value string

Definition at line 118 of file formpassword.php.

XoopsFormPassword::XoopsFormPassword (   $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

Definition at line 72 of file formpassword.php.

Member Data Documentation

XoopsFormPassword::$_maxlength

Definition at line 42 of file formpassword.php.

XoopsFormPassword::$_size

Definition at line 34 of file formpassword.php.

XoopsFormPassword::$_value

Definition at line 50 of file formpassword.php.

XoopsFormPassword::$autoComplete = false

Definition at line 59 of file formpassword.php.


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