function saveSettings() { list($table, $field, $id) = explode('-', $_POST['id']); $value = strval($_POST['value']); $updated = updateJEditableField($table, $field, $value, $id); }
function renameProject() { $projectId = intval($_POST['id']); $name = trim(strval($_POST['value'])); updateJEditableField('projects', 'name', $name, $projectId); }
function updateCard() { $cardId = intval($_POST['id']); $body = trim(strip_tags(stripcslashes(strval($_POST['value'])))); updateJEditableField('cards', 'body', $body, $cardId); }