/**
* @param SchemaProperty $schema_property
* @param int $userId
* @param Connection $con
*
* @returns array Affected statements
*/
public static function updateElementsFromForm(SchemaProperty $schema_property, $userId, $con = null)
{
$language = myActionTools::getEditLanguage();
$fields = Schema::getProfileFields();
//add parent_uri to fields
$fields[] = "parent_uri";
$affected = [];
//iterate through the fields
foreach ($fields as $key => $value) {
//lookup each field in the array
//if it's a match compare the values
if ($key) {
//if the new value is empty and the old value is not, delete the old value
if ($key) {
} else {
if ($key) {
}
}
} else {
}
}
return $affected;
}