Server : Apache System : Linux indy02.toastserver.com 3.10.0-962.3.2.lve1.5.85.el7.x86_64 #1 SMP Thu Apr 18 15:18:36 UTC 2024 x86_64 User : palandch ( 1163) PHP Version : 7.1.33 Disable Function : NONE Directory : /home/palandch/www/manager/controllers/default/dashboard/ |
<?php /** * @package modx * @subpackage dashboard */ /** * Renders a grid of recently edited resources by the active user * * @package modx * @subpackage dashboard */ class modDashboardWidgetRecentlyEditedResources extends modDashboardWidgetInterface { public function render() { $this->controller->addJavascript($this->modx->getOption('manager_url').'assets/modext/widgets/security/modx.grid.user.recent.resource.js'); $this->controller->addHtml('<script type="text/javascript">Ext.onReady(function() { MODx.load({ xtype: "modx-grid-user-recent-resource" ,user: "'.$this->modx->user->get('id').'" ,renderTo: "modx-grid-user-recent-resource" }); });</script>'); return $this->getFileChunk('dashboard/recentlyeditedresources.tpl'); } } return 'modDashboardWidgetRecentlyEditedResources';