original_string: public static function update_template($template) {
  
          $params = self::validate_parameters(self::update_template_parameters(), array('template' => $template));
          $params = $params['template'];
          $template = api::read_template($params['id']);
          self::validate_context($template->get_context());
  
          $params = (object) $params;
  
          return api::update_template($params);
      }
code: public static function update_template($template) {
  
          $params = self::validate_parameters(self::update_template_parameters(), array('template' => $template));
          $params = $params['template'];
          $template = api::read_template($params['id']);
          self::validate_context($template->get_context());
  
          $params = (object) $params;
  
          return api::update_template($params);
      }
code_tokens: public static function update_template ( $ template ) { $ params = self :: validate_parameters ( self :: update_template_parameters ( ) , array ( 'template' => $ template ) ) ; $ params = $ params [ 'template' ] ; $ template = api :: read_template ( $ params [ 'id' ] ) ; self :: validate_context ( $ template -> get_context ( ) ) ; $ params = ( object ) $ params ; return api :: update_template ( $ params ) ; }
docstring: Update an existing learning plan template
  
  @param array $template The list of fields for the template.
  @return boolean
docstring_tokens: Update an existing learning plan template