You are here

public function LTIToolProviderMembershipsEntityController::create in LTI Tool Provider 7

Overrides LTIToolProviderMembershipsEntityControllerInterface::create

File

lti_tool_provider_memberships/LTIToolProviderMembershipsEntityController.class.php, line 23
Contains LTIToolProviderMembershipsEntityController.

Class

LTIToolProviderMembershipsEntityController
Memberships Entity controller.

Code

public function create() {
  $entity = new stdClass();
  $entity->lti_tool_provider_memberships_id = 0;
  $entity->lti_tool_provider_memberships_context_id = NULL;
  $entity->lti_tool_provider_memberships_uid = NULL;
  $entity->lti_tool_provider_memberships_user_id = NULL;
  $entity->lti_tool_provider_memberships_role = '';
  $entity->lti_tool_provider_memberships_person_name_full = '';
  $entity->lti_tool_provider_memberships_status = 'Active';
  $entity->date_added = REQUEST_TIME;
  $entity->date_updated = NULL;
  $entity->date_dropped = NULL;
  return $entity;
}