This question has been answered by multiple community members. See the first response.
<pre class="brush: php; toolbar: false;"><fixedpre>
$user->joinGroup('Group1', 'Editor');
$user->joinGroup('Group1', 23);
$user->joinGroup(12, 'Editor');
$user->joinGroup(12, 23);
</fixedpre></pre>
<pre class="brush:js;toolbar:false;">
<fixedpre>
Example.panel.Home = function(config) {
config = config || {};
Ext.apply(config,{
border: false
,baseCls: 'modx-formpanel'
,cls: 'container'
,items: [{
html: '<h2>Example Panel</h2>'
,border: false
,cls: 'modx-page-header'
},{
xtype: 'modx-tabs'
,defaults: { border: false ,autoHeight: true }
,border: true
,items: [{
title: _('example')
,defaults: { autoHeight: true }
,items: [{
html: '<p>'+_('example.description')+'</p>'
,border: false
,style: 'margin:20px 0 0 20px;'
},{
xtype: 'example-grid-example'
,cls: 'main-wrapper'
,preventRender: true
,flex: 1
}]
}]
}]
});
Example.panel.Home.superclass.constructor.call(this,config);
};
Ext.extend(Example.panel.Home,MODx.Panel);
Ext.reg('example-panel-home',Example.panel.Home);
</fixedpre>
</pre>
<pre class="brush:js;toolbar:false;"><fixedpre>
Example.panel.Home = function(config) {
config = config || {};
Ext.apply(config,{
border: false
,baseCls: 'modx-formpanel'
,cls: 'container'
,items: [{
html: '<h2>Example Panel</h2>'
,border: false
,cls: 'modx-page-header'
},{
xtype: 'modx-tabs'
,defaults: { border: false ,autoHeight: true }
,border: true
,items: [{
title: _('example')
,defaults: { autoHeight: true }
,items: [{
html: '<p>'+_('example.description')+'</p>'
,border: false
,style: 'margin:20px 0 0 20px;'
},{
xtype: 'example-grid-example'
,cls: 'main-wrapper'
,preventRender: true
,flex: 1
}]
}]
}]
});
Example.panel.Home.superclass.constructor.call(this,config);
};
Ext.extend(Example.panel.Home,MODx.Panel);
Ext.reg('example-panel-home',Example.panel.Home);
</fixedpre>
</pre>
vertical-align: baseline !important;
