get('editor'); } return JEditor::getInstance($name); } /** * Return the JDate object. * * @param mixed $time The initial time for the JDate object * @param mixed $tzOffset The timezone offset. * * @return JDate The date object. */ public static function getDate($time = 'now', $tzOffset = null) { JLoader::import('adapter.date.date'); return JDate::getInstance($time, $tzOffset); } /** * Get a mailer object. * * Returns the global JMail object, only creating it if it doesn't already exist. * * @return JMail The mail object. */ public static function getMailer() { JLoader::import('adapter.mail.mail'); /** * Always return a new instance of JMail without caching it. * This avoids having a JMail instance already filled-in when * this method is called more than once. * * @since 10.1.10 */ return new JMail; } /** * Returns the configuration registry. * * @return JConfig The configuration object. * * @since 10.1.4 */ public static function getConfig() { JLoader::import('adapter.config.config'); return new JConfig; } }