modx->getOption('manager_url', null, MODX_MANAGER_URL); $this->addJavascript($mgrUrl . 'assets/modext/widgets/resource/modx.grid.trash.js'); $this->addJavascript($mgrUrl . 'assets/modext/widgets/resource/modx.panel.trash.js'); $this->addJavascript($mgrUrl . 'assets/modext/sections/resource/trash/index.js'); $this->addHtml(''); } /** * @return null|string */ public function getPageTitle() { return $this->modx->lexicon('trash.page_title'); } /** * Check for any permissions or requirements to load page * @return bool */ public function checkPermissions() { return $this->modx->hasPermission('menu_trash'); } /** * Specify the language topics to load * @return array */ public function getLanguageTopics() { return array('trash', 'namespace'); } /** * Process the controller, returning an array of placeholders to set. * @param array $scriptProperties A array of REQUEST parameters. * @return mixed Either an error or output string, or an array of placeholders to set. */ public function process(array $scriptProperties = array()) { return null; } /** * Return the relative path to the template file to load * @return string */ public function getTemplateFile() { return ''; } }