mirror of
https://github.com/nextcloud/server.git
synced 2025-02-07 18:09:45 +00:00
55 lines
991 B
JavaScript
55 lines
991 B
JavaScript
/**
|
|
* SPDX-FileCopyrightText: 2015 ownCloud, Inc.
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
*/
|
|
|
|
OCA = OCA || {};
|
|
OCA.LDAP = {};
|
|
OCA.LDAP.Wizard = {};
|
|
|
|
(function(){
|
|
|
|
/**
|
|
* @classdesc minimalistic controller that basically makes the view render
|
|
*
|
|
* @constructor
|
|
*/
|
|
var WizardController = function() {};
|
|
|
|
WizardController.prototype = {
|
|
/**
|
|
* initializes the instance. Always call it after creating the instance.
|
|
*/
|
|
init: function() {
|
|
this.view = false;
|
|
this.configModel = false;
|
|
},
|
|
|
|
/**
|
|
* sets the model instance
|
|
*
|
|
* @param {OCA.LDAP.Wizard.ConfigModel} [model]
|
|
*/
|
|
setModel: function(model) {
|
|
this.configModel = model;
|
|
},
|
|
|
|
/**
|
|
* sets the view instance
|
|
*
|
|
* @param {OCA.LDAP.Wizard.WizardView} [view]
|
|
*/
|
|
setView: function(view) {
|
|
this.view = view;
|
|
},
|
|
|
|
/**
|
|
* makes the view render i.e. ready to be used
|
|
*/
|
|
run: function() {
|
|
this.view.render();
|
|
}
|
|
};
|
|
|
|
OCA.LDAP.Wizard.Controller = WizardController;
|
|
})();
|