KWeb
6.4
|
Podstawowa klasa do implementowania atrybutow. More...
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 |
Podstawowa klasa do implementowania atrybutow.
KWebAttribute_Password::__construct | ( | $ | id, |
$ | title, | ||
$ | saltId, | ||
$ | opt = array() |
||
) |
KWebAttribute_Password::convertData | ( | $ | value, |
$ | format, | ||
$ | conversion | ||
) |
$conversion | true (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
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.
KWebAttribute_Password::$passConfirm = false |
KWebAttribute_Password::$saltId |