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);
    }
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);
    }
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 ) ; }
Update an existing learning plan template

@param array $template The list of fields for the template.
@return boolean
Update an existing learning plan template