grthtrhthjhtyjytjytkergtrhtrjytjerhrfh4:24 29/09/2026bean->status)) { $this->bean->status = $_REQUEST['status']; } switch ($this->bean->status) { case 'draft': $response['data'] = array( 'type' => get_class($this->bean), 'id' => $this->bean->id, 'attributes' => array(), 'relationships' => array(), 'title' => $app_strings['LBL_EMAIL_DRAFT_DELETED'] ); break; case 'save_error': $response['errors'] = array( 'type' => get_class($this->bean), 'id' => $this->bean->id, 'title' => $app_strings['LBL_EMAIL_DRAFT_ERROR_DELETING'] ); break; default: $response['errors'] = array( 'type' => get_class($this->bean), 'id' => $this->bean->id, 'title' => $app_strings['ERR_BAD_RESPONSE_FROM_SERVER'] ); break; } echo json_encode($response); } }