From 70aabdee119dcbbff6eea4e508b0fe51f0528022 Mon Sep 17 00:00:00 2001 From: elena Date: Fri, 24 Jul 2015 16:05:20 +0200 Subject: [PATCH] catalog draft --- js/app/views/CatalogUI.js | 492 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- js/app/views/TimeTableUI.js | 95 ++++++++++++++++++++++++++++++++++++++++++++++++----------------------------------------------- php/classes/AmdaAction.php | 8 +++++--- php/config.php | 112 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++-------------------------------------------------------- 4 files changed, 359 insertions(+), 348 deletions(-) diff --git a/js/app/views/CatalogUI.js b/js/app/views/CatalogUI.js index 85bd656..216bf55 100644 --- a/js/app/views/CatalogUI.js +++ b/js/app/views/CatalogUI.js @@ -13,13 +13,15 @@ Ext.define('amdaUI.CatalogUI', { isCatalog : true, - constructor: function(config) { - this.init(config); + constructor: function(config) + { + this.init(config); this.callParent(arguments);; - if (this.object) this.loadObject(); + if (this.object) this.loadObject(); }, - setObject : function (object) { + setObject : function (object) + { // set object this.object = object; @@ -30,21 +32,21 @@ Ext.define('amdaUI.CatalogUI', { /** * set params description into this.object */ - setParamInfo : function(parameters) { - - var params = []; - Ext.Array.each(parameters, function(item, index) { - params[index] = item; - }, this); - - this.object.set('parameters', params); - + setParamInfo : function(parameters) + { + var params = []; + Ext.Array.each(parameters, function(item, index) { + params[index] = item; + }, this); + + this.object.set('parameters', params); }, /** * update this.object from form */ - updateObject : function(){ + updateObject : function() + { // get the basic form var basicForm = this.formPanel.getForm(); var updateStatus = true; @@ -69,7 +71,8 @@ Ext.define('amdaUI.CatalogUI', { }, - updateCount : function() { + updateCount : function() + { this.object.set('nbIntervals',this.TTGrid.getStore().getTotalCount()); this.formPanel.getForm().findField('nbIntervals').setValue(this.object.get('nbIntervals')); }, @@ -77,258 +80,263 @@ Ext.define('amdaUI.CatalogUI', { /** * load object catalog into this view */ - loadObject : function(){ - // load object into form - this.formPanel.getForm().loadRecord(this.object); - - this.status = null; + loadObject : function() + { + // load object into form + this.formPanel.getForm().loadRecord(this.object); - var me = this; - - var onAfterInit = function(result, e) { - - if (!result || !result.success) - { - if (result.message) - myDesktopApp.errorMsg(result.message); - else - myDesktopApp.errorMsg('Unknown error during catalog cache initialisation'); - return; - } - - - var fields = [], columns = [], i = 2, width, index; - - fields[0] = Ext.create('Ext.data.Field',{ name : 'start' }); - fields[1] = Ext.create('Ext.data.Field',{ name : 'stop' }); - - columns[0] = Ext.create('Ext.grid.column.RowNumberer'); - - columns[1] = Ext.create('Ext.grid.column.Column', { text: 'Start Time', sortable : false, dataIndex: 'start', - width : 120, menuDisabled: true }); - columns[2] = Ext.create('Ext.grid.column.Column', { text: 'Stop Time', sortable : false, dataIndex: 'stop', - width : 120, menuDisabled: true }); - - Ext.Array.each(result.parameters, function(obj) { - index = 'param'+i.toString(); - fields[i] = Ext.create('Ext.data.Field',{ name : index }); - width = 50. * parseInt(obj.size); - columns[i+1] = Ext.create('Ext.grid.column.Column', { text: obj.name, sortable : false, dataIndex: index, - width : width, menuDisabled: true }); - i++; - }); - - - var store = Ext.create('Ext.data.Store', { - fields: fields, - autoDestroy: false, - pageSize : 200, - buffered : true, - purgePageCount: 0, - remoteSort: true, - proxy: { - type: 'direct', - api : - { - read : AmdaAction.readTTCacheIntervals - }, - // remplir automatiquement tt, sharedtt , catalog, shared catalog - extraParams : {'typeTT' : 'catalog'}, - reader: - { - type: 'json', - root: 'intervals', - totalProperty : 'totalCount' - } - }, - listeners: { - scope : me, - load: function(store,records) { - // myDesktopApp.EventManager.fireEvent('refresh'); - me.TTGrid.getView().refresh(); - me.TTGrid.getSelectionModel().refresh(); - me.updateCount(); - //Statistical plugin - // this.fireEvent("refresh"); - } - } - }); - - me.TTGrid.reconfigure(store, columns); - -// -// me.TTGrid.getSelectionModel().deselectAll(); -// -// // clear filters -// me.TTGrid.getStore().clearFilter(true); -// -// //clear sort -// me.TTGrid.getStore().sorters.clear(); -// //me.TTGrid.getStore().sorters = new Ext.util.MixedCollection(); -// - //set cache token to the Catalog object - me.object.set('cacheToken', result.token); - me.setParamInfo(result.parameters); - - me.TTGrid.getStore().load(); + this.status = null; + + var me = this; - me.status = result.status; + var onAfterInit = function(result, e) + { + if (!result || !result.success) + { + if (result.message) + myDesktopApp.errorMsg(result.message); + else + myDesktopApp.errorMsg('Unknown error during catalog cache initialisation'); + return; + } + + var fields = [], columns = [], i = 3, width, index; + + var fieldsConfig = [{ name : 'start' },{ name : 'stop' },{ name: 'cacheId', type : 'int'}, + { name: 'isNew', type : 'boolean', defaultValue: false }, + { name: 'isModified', type : 'boolean', defaultValue: false} + ]; + + for (var j = 0; j < 5; j++) fields[j] = Ext.create('Ext.data.Field', fieldsConfig[j]); + + columns[0] = Ext.create('Ext.grid.column.RowNumberer'); - }; + columns[1] = Ext.create('Ext.grid.column.Column', { text: 'Start Time', sortable : false, dataIndex: 'start', + width : 120, menuDisabled: true }); + columns[2] = Ext.create('Ext.grid.column.Column', { text: 'Stop Time', sortable : false, dataIndex: 'stop', + width : 120, menuDisabled: true }); + + Ext.Array.each(result.parameters, function(obj) + { + index = 'param'+(i-1).toString(); + fields[i+2] = Ext.create('Ext.data.Field',{ name : index }); + width = 50. * parseInt(obj.size); + columns[i] = Ext.create('Ext.grid.column.Column', { text: obj.name, sortable : false, dataIndex: index, + width : width, menuDisabled: true }); + i++; + }); + + + + var store = Ext.create('Ext.data.Store', { + fields: fields, + autoDestroy: false, + pageSize : 200, + buffered : true, + purgePageCount: 0, + remoteSort: true, + proxy: { + type: 'direct', + api : + { + read : AmdaAction.readTTCacheIntervals + }, + // remplir automatiquement tt, sharedtt , catalog, shared catalog + extraParams : {'typeTT' : 'catalog'}, + reader: + { + type: 'json', + root: 'intervals', + totalProperty : 'totalCount' + } + }, + listeners: { + scope : me, + load: function(store,records) { + // myDesktopApp.EventManager.fireEvent('refresh'); + me.TTGrid.getView().refresh(); + me.TTGrid.getSelectionModel().refresh(); + me.updateCount(); + //Statistical plugin + // this.fireEvent("refresh"); + } + } + }); + + me.TTGrid.reconfigure(store, columns); + + me.TTGrid.getSelectionModel().deselectAll(); + // + // // clear filters + // me.TTGrid.getStore().clearFilter(true); + // + // //clear sort + // me.TTGrid.getStore().sorters.clear(); + // //me.TTGrid.getStore().sorters = new Ext.util.MixedCollection(); + // + //set cache token to the Catalog object + me.object.set('cacheToken', result.token); + me.setParamInfo(result.parameters); + + me.TTGrid.getStore().load(); + + me.status = result.status; + }; - if (this.object.get('fromPlugin')) - { - if (this.object.get('objFormat') && this.object.get('objFormat') != '') - { - //From uploaded file - //AmdaAction.initTTCacheFromUploadedFile(this.object.get('objName'), this.object.get('objFormat'), onAfterInit); - } - else - { - //From tmp object (ie Search result) - AmdaAction.initTTCacheFromTmpObject(this.object.get('folderId'), this.object.get('objName'), this.isCatalog, onAfterInit); - } - } - else - { - var typeTT = myDesktopApp.getLoadedModule(myDesktopApp.dynamicModules.catalog.id).linkedNode.data.nodeType; - if (this.object.get('id') == '') - { - //Init empty cache - AmdaAction.initTTCache(this.isCatalog, onAfterInit); - } - else - { - //From existing TT file - AmdaAction.initTTCacheFromTT(this.object.get('id'), 'catalog', onAfterInit); - } - } + if (this.object.get('fromPlugin')) + { + if (this.object.get('objFormat') && this.object.get('objFormat') != '') + { + //From uploaded file + //AmdaAction.initTTCacheFromUploadedFile(this.object.get('objName'), this.object.get('objFormat'), onAfterInit); + } + else + { + //From tmp object (ie Search result) + AmdaAction.initTTCacheFromTmpObject(this.object.get('folderId'), this.object.get('objName'), this.isCatalog, onAfterInit); + } + } + else + { + var typeTT = myDesktopApp.getLoadedModule(myDesktopApp.dynamicModules.catalog.id).linkedNode.data.nodeType; + if (this.object.get('id') == '') + { + //Init empty cache + AmdaAction.initTTCache(this.isCatalog, onAfterInit); + } + else + { + //From existing TT file + AmdaAction.initTTCacheFromTT(this.object.get('id'), 'catalog', onAfterInit); + } + } }, + checkIntervalsStatusForSave : function(onStatusOk) { - onStatusOk(); + onStatusOk(); }, /* * save method called by Save button */ - saveProcess : function(toRename){ - var module = myDesktopApp.getLoadedModule(myDesktopApp.dynamicModules.catalog.id); + saveProcess : function(toRename) + { + var module = myDesktopApp.getLoadedModule(myDesktopApp.dynamicModules.catalog.id); // if the name has been modified this is a creation - if (this.fclose()) { - - if (this.object.isModified('name') || this.object.get('fromPlugin')) { - - // if object already has an id : it's a 'rename' of an existing - if (this.object.get('id')){ - // the context Node is the parent node of current edited one - var contextNode = module.linkedNode.parentNode; - // link a new node to the TimeTableModule - module.createLinkedNode(); - // set the contextNode - module.linkedNode.set('contextNode',contextNode); - // create a new object linked - module.createObject(this.object.getJsonValues()); - - var obj = module.linkedNode.get('object'); - // synchronisation of objects - this.object = obj; - if (toRename) module.linkedNode.toRename = true; - } - module.linkedNode.create({callback : function() {module.linkedNode.update();}, scope : this}); - } else { - //update - module.linkedNode.update(); - } - } + if (this.fclose()) + { + if (this.object.isModified('name') || this.object.get('fromPlugin')) { + // if object already has an id : it's a 'rename' of an existing + if (this.object.get('id')){ + // the context Node is the parent node of current edited one + var contextNode = module.linkedNode.parentNode; + // link a new node to the TimeTableModule + module.createLinkedNode(); + // set the contextNode + module.linkedNode.set('contextNode',contextNode); + // create a new object linked + module.createObject(this.object.getJsonValues()); + + var obj = module.linkedNode.get('object'); + // synchronisation of objects + this.object = obj; + if (toRename) module.linkedNode.toRename = true; + } + module.linkedNode.create({callback : function() {module.linkedNode.update();}, scope : this}); + } else { + //update + module.linkedNode.update(); + } + } }, /** * Check if changes were made before closing window * @return true if changes */ - fclose : function() { + fclose : function() + { if (this.status == null) return false; var isDirty = this.formPanel.getForm().isDirty() || (this.status.isModified) || (this.status.nbModified > 0) || (this.status.nbNew > 0); - return isDirty; + return isDirty; }, - init : function (config) { + init : function (config) + { + this.object = config.object; - this.object = config.object; - - this.fieldName = new Ext.form.field.Text({ - fieldLabel: 'Name', - allowBlank : false, - stripCharsRe: /(^\s+|\s+$)/g, - emptyText: 'Please no spaces!', - name: 'name', - validateOnChange: false, - validateOnBlur: false, - validFlag: false, - validator : function() { - return this.validFlag; - } - }); + this.fieldName = new Ext.form.field.Text({ + fieldLabel: 'Name', + allowBlank : false, + stripCharsRe: /(^\s+|\s+$)/g, + emptyText: 'Please no spaces!', + name: 'name', + validateOnChange: false, + validateOnBlur: false, + validFlag: false, + validator : function() { + return this.validFlag; + } + }); - this.TTGrid = Ext.create('Ext.grid.Panel', { -// title: 'Catalog', - height: 530, - columns: [ - { text: '', dataIndex: '' } - - ], - frame: true, - dockedItems: [{ - xtype: 'toolbar', - items: [{ - iconCls: 'icon-add', - scope: this, - handler: function(){ -// cellEditing.cancelEdit(); -// -// var selection = this.TTGrid.getView().getSelectionModel().getSelection()[0]; -// var row = 0; -// if (selection) -// row = store.indexOf(selection) + 1; -// this.TTGrid.getSelectionModel().deselectAll(); -// -// var me = this; -// AmdaAction.addTTCacheInterval({'index' : row}, function (result, e) { -// this.status = result.status; -// this.TTGrid.getStore().reload({ -// callback : function(records, options, success) { -// me.TTGrid.getView().bufferedRenderer.scrollTo(row, false, function() { -// me.TTGrid.getView().select(row); -// cellEditing.startEditByPosition({row: row, column: 1}); -// }, me); -// } -// }); -// }, this); - } - }, { - iconCls: 'icon-delete', - disabled: true, - itemId: 'delete', - scope: this, - handler: function(){ -// var selection = this.TTGrid.getView().getSelectionModel().getSelection()[0]; -// if (selection) { -// var rowId = selection.get('cacheId'); -// this.TTGrid.getSelectionModel().deselectAll(); -// AmdaAction.removeTTCacheIntervalFromId(rowId, function (result, e) { -// this.status = result.status; -// this.TTGrid.getStore().reload(); -// }, this); -// } - } - }] - }] - }); + this.TTGrid = Ext.create('Ext.grid.Panel', { + height: 530, + columns: [ ], + frame: true, + dockedItems: [{ + xtype: 'toolbar', + items: [{ + iconCls: 'icon-add', + scope: this, + handler: function(){ + alert('NOT IMPLEMENTED YET'); + // cellEditing.cancelEdit(); + // + // var selection = this.TTGrid.getView().getSelectionModel().getSelection()[0]; + // var row = 0; + // if (selection) + // row = store.indexOf(selection) + 1; + // this.TTGrid.getSelectionModel().deselectAll(); + // + // var me = this; + // AmdaAction.addTTCacheInterval({'index' : row}, function (result, e) { + // this.status = result.status; + // this.TTGrid.getStore().reload({ + // callback : function(records, options, success) { + // me.TTGrid.getView().bufferedRenderer.scrollTo(row, false, function() { + // me.TTGrid.getView().select(row); + // cellEditing.startEditByPosition({row: row, column: 1}); + // }, me); + // } + // }); + // }, this); + } + },{ + iconCls: 'icon-delete', + disabled: true, + itemId: 'delete', + scope: this, + handler: function(){ + var selection = this.TTGrid.getView().getSelectionModel().getSelection()[0]; + if (selection) + { + var rowId = selection.get('cacheId'); + console.log(selection); + this.TTGrid.getSelectionModel().deselectAll(); + AmdaAction.removeTTCacheIntervalFromId(rowId, this.isCatalog, function (result, e) { + this.status = result.status; + this.TTGrid.getStore().reload(); + }, this); + } + } + }] + }] + }); this.formPanel = Ext.create('Ext.form.Panel', { region : 'center', @@ -456,10 +464,10 @@ Ext.define('amdaUI.CatalogUI', { ] } ] - }); + }); this.TTGrid.getSelectionModel().on('selectionchange', function(selModel,selections){ - this.TTGrid.down('#delete').setDisabled(selections.length === 0); + this.TTGrid.down('#delete').setDisabled(selections.length === 0); }, this); var myConf = { @@ -474,7 +482,7 @@ Ext.define('amdaUI.CatalogUI', { height: 100, autoHide: false, bodyStyle: 'padding:5px', - iconCls: 'icon-information', + iconCls: 'icon-information', loader: { autoLoad: true, url: helpDir+'downloadHOWTO' @@ -483,7 +491,7 @@ Ext.define('amdaUI.CatalogUI', { ] }; - Ext.apply (this, Ext.apply(arguments, myConf)); + Ext.apply (this, Ext.apply(arguments, myConf)); } }); diff --git a/js/app/views/TimeTableUI.js b/js/app/views/TimeTableUI.js index 536e150..bc84622 100755 --- a/js/app/views/TimeTableUI.js +++ b/js/app/views/TimeTableUI.js @@ -2,14 +2,10 @@ * Project  : AMDA-NG * Name : TimeTableUI.js * @class amdaUI.TimeTableUI - * @extends Ext.container.Container + * @extends Ext.container.Container * @brief Time Table Module UI definition (View) * @author Myriam * @version $Id: TimeTableUI.js 2075 2014-02-11 11:30:14Z elena $ - ******************************************************************************** - * FT Id : Date : Name - Description - ******************************************************************************* - * 08/06/2011: Myriam - Migration extjs4 */ Ext.define('amdaUI.TimeTableUI', { @@ -17,20 +13,19 @@ Ext.define('amdaUI.TimeTableUI', { alias: 'widget.panelTimeTable', requires: [ - 'Ext.ux.grid.FiltersFeature', - 'Ext.ux.grid.filter.DateFilter', - 'Ext.ux.grid.filter.NumericFilter', - 'amdaUI.OperationsTT', - 'amdaUI.StatisticalPlug', - 'Ext.grid.plugin.BufferedRenderer' + 'Ext.ux.grid.FiltersFeature', + 'Ext.ux.grid.filter.DateFilter', + 'Ext.ux.grid.filter.NumericFilter', + 'amdaUI.OperationsTT', + 'amdaUI.StatisticalPlug', + 'Ext.grid.plugin.BufferedRenderer' ], statics: { - COL_TO_HIDE : 'colToHide' - }, + COL_TO_HIDE : 'colToHide' + }, - status: null, - isCatalog : false, + status: null, constructor: function(config) { this.init(config); @@ -43,7 +38,8 @@ Ext.define('amdaUI.TimeTableUI', { * set the current editing object * this method will be used on timetable edition when this win is already opened */ - setObject : function (object) { + setObject : function (object) + { // set object this.object = object; @@ -117,7 +113,7 @@ Ext.define('amdaUI.TimeTableUI', { else { //From tmp object (ie Search result) - AmdaAction.initTTCacheFromTmpObject(this.object.get('folderId'), this.object.get('objName'), this.isCatalog, onAfterInit); + AmdaAction.initTTCacheFromTmpObject(this.object.get('folderId'), this.object.get('objName'), onAfterInit); } } else @@ -139,33 +135,35 @@ Ext.define('amdaUI.TimeTableUI', { /** * update this.object from form */ - updateObject : function(){ + updateObject : function() + { this.updateCount(); // get the basic form - var basicForm = this.formPanel.getForm(); - var updateStatus = true; + var basicForm = this.formPanel.getForm(); + var updateStatus = true; - var fieldsWithoutName = basicForm.getFields().items; - Ext.Array.each(fieldsWithoutName, function(item, index,allItems){ - if(item !== this.fieldName) { - if (!item.isValid()) { - // set update isn't allowed - updateStatus = false; - } - } - }, this); + var fieldsWithoutName = basicForm.getFields().items; + Ext.Array.each(fieldsWithoutName, function(item, index,allItems){ + if(item !== this.fieldName) { + if (!item.isValid()) { + // set update isn't allowed + updateStatus = false; + } + } + }, this); // if the update is allowed - if (updateStatus) { - /// real object update - // update TimeTable object with the content of form - basicForm.updateRecord(this.object); - } - // return the update status - return updateStatus; + if (updateStatus) { + /// real object update + // update TimeTable object with the content of form + basicForm.updateRecord(this.object); + } + // return the update status + return updateStatus; }, - updateCount : function() { + updateCount : function() + { this.object.set('nbIntervals',this.TTGrid.getStore().getTotalCount()); this.formPanel.getForm().findField('nbIntervals').setValue(this.object.get('nbIntervals')); }, @@ -173,7 +171,8 @@ Ext.define('amdaUI.TimeTableUI', { /* * save method called by Save button */ - saveProcess : function(toRename){ + saveProcess : function(toRename) + { var timeTableModule = myDesktopApp.getLoadedModule(myDesktopApp.dynamicModules.tt.id); // if the name has been modified this is a creation @@ -182,8 +181,8 @@ Ext.define('amdaUI.TimeTableUI', { timeTableModule.createLinkedNode(); timeTableModule.createObject(this.object.getJsonValues()); var ttobj = timeTableModule.linkedNode.get('object'); - // synchronisation of objects - this.object = ttobj; + // synchronisation of objects + this.object = ttobj; timeTableModule.linkedNode.create(); } else if (this.fclose() /*TimeTable object has been modified*/) { @@ -216,24 +215,26 @@ Ext.define('amdaUI.TimeTableUI', { /** * overwrite metod called by Save button */ - overwriteProcess : function(btn){ + overwriteProcess : function(btn) + { if (btn == 'cancel') return; - this.fieldName.clearInvalid(); + this.fieldName.clearInvalid(); this.saveProcess(true); }, - addInterval : function(start, stop) { + addInterval : function(start, stop) + { this.TTGrid.getSelectionModel().deselectAll(); - AmdaAction.addTTCacheInterval({'start' : start, 'stop' : stop},function (result, e) { + AmdaAction.addTTCacheInterval({'start' : start, 'stop' : stop},function (result, e) { this.TTGrid.getStore().reload(); this.status = result.status; - }, this); + }, this); }, - init : function(config) { - + init : function(config) + { this.object = config.object; this.fieldName = new Ext.form.field.Text({ diff --git a/php/classes/AmdaAction.php b/php/classes/AmdaAction.php index cc67537..512635a 100644 --- a/php/classes/AmdaAction.php +++ b/php/classes/AmdaAction.php @@ -998,9 +998,11 @@ class AmdaAction { return $cacheMgr->addInterval($o->index, $o->start, $o->stop); } - public function removeTTCacheIntervalFromId($id) + public function removeTTCacheIntervalFromId($id, $isCatalog = false) { - $cacheMgr = new TimeTableCacheMgr(); + if ($isCatalog) $cacheMgr = new CatalogCacheMgr(); + else $cacheMgr = new TimeTableCacheMgr(); + return $cacheMgr->removeIntervalFromId($id); } @@ -1236,7 +1238,7 @@ class AmdaAction { //AKKA - New action to clean user WS public function cleanUserWS() { - require_once(INTEGRATION_SRC_DIR."RequestManager.php"); + require_once(INTEGRATION_SRC_DIR."RequestManager.php"); return $this->executeRequest($obj, FunctionTypeEnumClass::PROCESSCLEAN); } diff --git a/php/config.php b/php/config.php index ec132fc..a860243 100644 --- a/php/config.php +++ b/php/config.php @@ -251,12 +251,12 @@ $API = array( 'len'=>2 // 'formHandler'=>true ), - 'compilParam' => array( - 'len'=>1 - ), - 'compilParamDelete' => array( - 'len'=>1 - ), + 'compilParam' => array( + 'len'=>1 + ), + 'compilParamDelete' => array( + 'len'=>1 + ), 'killPlotRequest' =>array( 'len'=>1 ), @@ -272,39 +272,39 @@ $API = array( 'saveTTCacheIntervalsInTT'=>array( 'len'=>1 ), - 'initTTCache' => array ( - 'len'=>1 - ) , - 'initTTCacheFromTT' => array( - 'len'=>2 - ), - 'initTTCacheFromTmpObject' => array( - 'len'=>3 - ), - 'initTTCacheFromUploadedFile' => array( - 'len'=>2 - ), - 'readTTCacheIntervals'=>array( - 'len'=>1 - ), - 'addTTCacheInterval'=>array ( - 'len'=>1 - ), - 'removeTTCacheIntervalFromId'=>array ( - 'len'=>1 - ), - 'modifyTTCacheInterval' => array( - 'len'=>1 - ), - 'operationTTCacheIntervals' => array( - 'len'=>2 - ), - 'mergeTTCacheIntervals' => array ( - 'len'=>0 - ), - 'getTTCacheStatistics' => array ( - 'len'=>0 - ), + 'initTTCache' => array ( + 'len'=>1 + ) , + 'initTTCacheFromTT' => array( + 'len'=>2 + ), + 'initTTCacheFromTmpObject' => array( + 'len'=>3 + ), + 'initTTCacheFromUploadedFile' => array( + 'len'=>2 + ), + 'readTTCacheIntervals'=>array( + 'len'=>1 + ), + 'addTTCacheInterval'=>array ( + 'len'=>1 + ), + 'removeTTCacheIntervalFromId'=>array ( + 'len'=>2 + ), + 'modifyTTCacheInterval' => array( + 'len'=>1 + ), + 'operationTTCacheIntervals' => array( + 'len'=>2 + ), + 'mergeTTCacheIntervals' => array ( + 'len'=>0 + ), + 'getTTCacheStatistics' => array ( + 'len'=>0 + ), 'sendFeedback'=>array( 'len'=>1 ), @@ -356,23 +356,23 @@ $API = array( 'getUserInfo'=>array( 'len'=>0 ), - 'convertWS'=>array( - 'len'=>0 - ), - 'getRun'=>array( - 'len'=>1 - ), - 'addRun'=>array( - 'len'=>1 - ), - //AKKA - New action to clean user WS - 'cleanUserWS'=>array( - 'len'=>0 - ), - 'deleteSpecialInfo'=>array( - 'len'=>1 - ) - ) + 'convertWS'=>array( + 'len'=>0 + ), + 'getRun'=>array( + 'len'=>1 + ), + 'addRun'=>array( + 'len'=>1 + ), + //AKKA - New action to clean user WS + 'cleanUserWS'=>array( + 'len'=>0 + ), + 'deleteSpecialInfo'=>array( + 'len'=>1 + ) + ) ) ); ?> -- libgit2 0.21.2