public function update_timestamp() {
$timestamp = $this->_get_generated_timestamp();
// Check if object has an 'updated' field
if (in_array($this->updated_field, $this->fields))
{
// Update updated datetime
$this->{$this->updated_field} = $timestamp;
}
}