nl_tokens: 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 .
pl_tokens: function ( provider ) { var me = this , args = Ext . toArray ( arguments ) , i = 0 , ln ; if ( args . length > 1 ) { for ( ln = args . length ; i < ln ; ++ i ) { me . addProvider ( args [ i ] ) ; } return ; } // if provider has not already been instantiated if ( ! provider . isProvider ) { provider = Ext . <mask> ( 'direct.' + provider . type + 'provider' , provider ) ; } me . providers . add ( provider ) ; provider . on ( 'data' , me . onProviderData , me ) ; if ( ! provider . isConnected ( ) ) { provider . connect ( ) ; } return provider ; }