Clear Up
SharpKit Reference

Manager Class

Namespace: Ext.direct

Base Types

System.Object

Constructors

Name Description
Manager() End Definitions

Methods

Name Description
addProvider(object) Adds an Ext.Direct Provider and creates the proxy or stub methods to execute server-side methods. If the provider is not already connected, it will auto-connect. * var pollProv = new Ext.direct.PollingProvider({ url: 'php/poll2.php' }); * Ext.direct.Manager.addProvider({ "type":"remoting", // create a {@link Ext.direct.RemotingProvider} "url":"php\/router.php", // url to connect to the Ext.Direct server-side router. "actions":{ // each property within the actions object represents a Class "TestAction":[ // array of methods within each server side Class { "name":"doEcho", // name of method "len":1 },{ "name":"multiply", "len":1 },{ "name":"doForm", "formHandler":true, // handle form on server with Ext.Direct.Transaction "len":1 }] }, "namespace":"myApplication",// namespace to create the Remoting Provider in },{ type: 'polling', // create a {@link Ext.direct.PollingProvider} url: 'php/poll.php' }, pollProv); // reference to previously created instance * @param {Ext.direct.Provider/Object...} provider Accepts any number of Provider descriptions (an instance or config object for a Provider). Each Provider description instructs Ext.Directhow to create client-side stub methods.
addTransaction(Transaction) Adds a transaction to the manager. @private @param {Ext.direct.Transaction} transaction The transaction to add @return {Ext.direct.Transaction} transaction
getProvider(object) Retrieves a {@link Ext.direct.Provider provider} by the **{@link Ext.direct.Provider#id id}** specified when the provider is {@link #addProvider added}. @param {String/Ext.direct.Provider} id The id of the provider, or the provider instance.
getTransaction(object) Gets a transaction @private @param {String/Ext.direct.Transaction} transaction The transaction/id of transaction to get @return {Ext.direct.Transaction}
onProviderData(object, object)
removeProvider(object) Removes the provider. @param {String/Ext.direct.Provider} provider The provider instance or the id of the provider. @return {Ext.direct.Provider} The provider, null if not found.
removeTransaction(object) Removes a transaction from the manager. @private @param {String/Ext.direct.Transaction} transaction The transaction/id of transaction to remove @return {Ext.direct.Transaction} transaction

Properties

Name Description
singleton Begin Definitions
© Copyright 2005-2011 SharpKit. All rights reserved.