api/extjs/browser-part/e-br-explore.js
function getControllerInfo(controller, msg) {

      var res = ['++++++++++',
        'CONTROLLER INFO (' + msg + '):',
      ];
      if (!controller) {
        res.push('N/A');
        return res;
      }
      var modelStr = '';
      var refsObj = controller.getReferences();
      var refsStr = Ext.Object.getKeys(refsObj).join(', ');

      var routesObj = controller.getRoutes();
      var routesStr = Ext.Object.getKeys(routesObj).join(', ');

      // TODO: getStore ?? или это есть во ViewModel?

      var viewModel = controller.getViewModel();
      if (viewModel) {
        modelStr += 'viewModel.$className: ' + viewModel.$className;
      }

      var view = controller.getView();
      var viewStr = '';
      if (view) {
        viewStr += 'view.$className: ' + view.$className +
          ', getConfig("xtype"): ' + view.getConfig('xtype') + ' ' +
          this.formGetIdStr(view, '18px');

        var itemId = view.getConfig('itemId');
        if (!autoGenRE.test(itemId)) {
          viewStr += ', itemId: ' + itemId;
        }

        var reference = view.getConfig('reference');
        if (reference) {
          viewStr += ', reference: ' + reference;
        }

      }

      this.pushTextProp(controller, 'alias', res);

      return res.concat([
        'controller: isViewController: ' + controller.isViewController,
        'clName: ' + controller.$className,
        'getId(): ' + controller.getId(),
        'getReferences(): ' + refsStr,
        'routes: ' + routesStr,
        modelStr,
        viewStr,
        '++++++++++',
      ]);
    }
function getControllerInfo(controller, msg) {

      var res = ['++++++++++',
        'CONTROLLER INFO (' + msg + '):',
      ];
      if (!controller) {
        res.push('N/A');
        return res;
      }
      var modelStr = '';
      var refsObj = controller.getReferences();
      var refsStr = Ext.Object.getKeys(refsObj).join(', ');

      var routesObj = controller.getRoutes();
      var routesStr = Ext.Object.getKeys(routesObj).join(', ');

      // TODO: getStore ?? или это есть во ViewModel?

      var viewModel = controller.getViewModel();
      if (viewModel) {
        modelStr += 'viewModel.$className: ' + viewModel.$className;
      }

      var view = controller.getView();
      var viewStr = '';
      if (view) {
        viewStr += 'view.$className: ' + view.$className +
          ', getConfig("xtype"): ' + view.getConfig('xtype') + ' ' +
          this.formGetIdStr(view, '18px');

        var itemId = view.getConfig('itemId');
        if (!autoGenRE.test(itemId)) {
          viewStr += ', itemId: ' + itemId;
        }

        var reference = view.getConfig('reference');
        if (reference) {
          viewStr += ', reference: ' + reference;
        }

      }

      this.pushTextProp(controller, 'alias', res);

      return res.concat([
        'controller: isViewController: ' + controller.isViewController,
        'clName: ' + controller.$className,
        'getId(): ' + controller.getId(),
        'getReferences(): ' + refsStr,
        'routes: ' + routesStr,
        modelStr,
        viewStr,
        '++++++++++',
      ]);
    }
function getControllerInfo ( controller , msg ) { var res = [ '++++++++++' , 'CONTROLLER INFO (' + msg + '):' , ] ; if ( ! controller ) { res . push ( 'N/A' ) ; return res ; } var modelStr = '' ; var refsObj = controller . getReferences ( ) ; var refsStr = Ext . Object . getKeys ( refsObj ) . join ( ', ' ) ; var routesObj = controller . getRoutes ( ) ; var routesStr = Ext . Object . getKeys ( routesObj ) . join ( ', ' ) ; // TODO: getStore ?? или это есть во ViewModel? var viewModel = controller . getViewModel ( ) ; if ( viewModel ) { modelStr += 'viewModel.$className: ' + viewModel . $className ; } var view = controller . getView ( ) ; var viewStr = '' ; if ( view ) { viewStr += 'view.$className: ' + view . $className + ', getConfig("xtype"): ' + view . getConfig ( 'xtype' ) + ' ' + this . formGetIdStr ( view , '18px' ) ; var itemId = view . getConfig ( 'itemId' ) ; if ( ! autoGenRE . test ( itemId ) ) { viewStr += ', itemId: ' + itemId ; } var reference = view . getConfig ( 'reference' ) ; if ( reference ) { viewStr += ', reference: ' + reference ; } } this . pushTextProp ( controller , 'alias' , res ) ; return res . concat ( [ 'controller: isViewController: ' + controller . isViewController , 'clName: ' + controller . $className , 'getId(): ' + controller . getId ( ) , 'getReferences(): ' + refsStr , 'routes: ' + routesStr , modelStr , viewStr , '++++++++++' , ] ) ; }
Returns array with strings about controller. It is for caller to join them or to add indent to each.
@param controller
@returns {Array}
Returns array with strings about controller . It is for caller to join them or to add indent to each .