addScriptFile('civicrm', 'templates/CRM/Admin/Page/APIExplorer.js', 1, 'html-header') ->addScriptUrl('//cdnjs.cloudflare.com/ajax/libs/prettify/r298/prettify.min.js', 99, 'html-header') ->addStyleUrl('//cdnjs.cloudflare.com/ajax/libs/prettify/r298/prettify.min.css', 99, 'html-header'); $this->assign('operators', CRM_Core_DAO::acceptedSQLOperators()); return parent::run(); } /** * Get user context. * * @return string user context. */ function userContext() { return 'civicrm/api/explorer'; } }