KWeb  6.4
KWebAttribute_Password Class Reference

Podstawowa klasa do implementowania atrybutow. More...

Inheritance diagram for KWebAttribute_Password:
KWebAttribute KWebAttribute_Interface

Public Member Functions

 __construct ($id, $title, $saltId, $opt=array())
 getType ()
 Zwraca nazwę typu .
 onFormPosted (KWebAttribute_Table_Form $form)
 Called from KWebAttribute_Table_Form::setPostedData Attribute can change the data on the form, but should not yet convert or validate it...
 convertData ($value, $format, $conversion)
 storePostedFormData (KWebAttribute_Table_Form $form, $value)
 Stores attribute's data in the object...
 setPassword (KWebObject_Attributable $object, $pass)

Data Fields

 $passConfirm = false
 $saltId

Detailed Description

Podstawowa klasa do implementowania atrybutow.


Constructor & Destructor Documentation

KWebAttribute_Password::__construct ( id,
title,
saltId,
opt = array() 
)

Member Function Documentation

KWebAttribute_Password::convertData ( value,
format,
conversion 
)
Parameters:
$conversiontrue (CONVERT_TO) - dane mają być pokazane W formularzu, false (CONVERT_FROM) - dane pochodzą Z formularza

Reimplemented from KWebAttribute.

KWebAttribute_Password::getType ( )

Zwraca nazwę typu .

Reimplemented from KWebAttribute.

KWebAttribute_Password::onFormPosted ( KWebAttribute_Table_Form form)

Called from KWebAttribute_Table_Form::setPostedData Attribute can change the data on the form, but should not yet convert or validate it...

In case of error, an Exception should be thrown

Returns:
FALSE to skip this attribute from form processing, TRUE to include it in conversion->validation phase

Reimplemented from KWebAttribute.

KWebAttribute_Password::setPassword ( KWebObject_Attributable object,
pass 
)
KWebAttribute_Password::storePostedFormData ( KWebAttribute_Table_Form form,
value 
)

Stores attribute's data in the object...

Data is already validated and converted to FORMAT_INTERNAL. This function is called for EVERY attribute with an id, even those, that were not posted.

You should check if it is posted ($form->isAttributedPosted()), and act accordingly.

Data is in FORMAT_INTERNAL

Reimplemented from KWebAttribute.


Field Documentation

KWebAttribute_Password::$passConfirm = false
KWebAttribute_Password::$saltId

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