You are here

public function LTIToolProviderOutcomesResourceEntityController::create in LTI Tool Provider 7

Overrides LTIToolProviderOutcomesResourceEntityControllerInterface::create

See also

LTIToolProviderOutcomesResourceEntityControllerInterface::create

File

lti_tool_provider_outcomes/LTIToolProviderOutcomesResourceEntityController.class.php, line 41
Entity for outcome resource. Contains all related entity functions. Entity views are found here

Class

LTIToolProviderOutcomesResourceEntityController

Code

public function create() {
  $entity = new stdClass();
  $entity->lti_tool_provider_outcomes_resource_id = 0;
  $entity->lti_tool_provider_outcomes_resource_consumer_id = 0;
  $entity->lti_tool_provider_outcomes_resource_resource_link_title = '';
  $entity->lti_tool_provider_outcomes_resource_resource_link_id = '';
  $entity->lti_tool_provider_outcomes_resource_context_id = '';
  $entity->lti_tool_provider_outcomes_resource_resultvalue_sourcedids = '';
  $entity->lti_tool_provider_outcomes_resource_score_datatype = '';
  return $entity;
}