Project

General

Profile

Bug #2766 » plugin.class.patch

krileon, 26 October 2011 16:19

View differences:

administrator/components/com_comprofiler/plugin.class.php
function prepareFieldDataNotSaved( &$field, &$user, &$postdata, $reason ) {
}
/**
* Mutator:
* Prepares field data commit
* Override
*
* @param moscomprofilerFields $field
* @param moscomprofilerUser $user RETURNED populated: touch only variables related to saving this field (also when not validating for showing re-edit)
* @param array $postdata Typically $_POST (but not necessarily), filtering required.
* @param string $reason 'edit' for save user edit, 'register' for save registration
*/
function commitFieldDataSave( &$field, &$user, &$postdata, $reason ) {
}
/**
* Mutator:
* Prepares field data rollback
* Override
*
* @param moscomprofilerFields $field
* @param moscomprofilerUser $user RETURNED populated: touch only variables related to saving this field (also when not validating for showing re-edit)
* @param array $postdata Typically $_POST (but not necessarily), filtering required.
* @param string $reason 'edit' for save user edit, 'register' for save registration
*/
function rollbackFieldDataSave( &$field, &$user, &$postdata, $reason ) {
}
/**
* Validator:
* Validates $value for $field->required and other rules
* Override
(4-4/4)