/** * Customize the application object. * @param PAGE $page * @param APPLICATION $app * @access private */ protected function _init_application($page, $app) { parent::_init_application($page, $app); $app->mail_options->send_from_address = 'news@' . $app->env->default_domain(); $app->mail_options->send_from_name = $page->title->group . ' News'; $app->mail_options->log_file_name = '{logs}news_mail.log'; $app->mail_options->entry_publication_filter = array(History_item_published); $app->mail_options->comment_publication_filter = array(History_item_created); $app->storage->prefix = 'webcore_news_'; }
/** * Register plugins in {@link $classes} during initialization. * @access private */ protected function _initialize_class_registry() { parent::_initialize_class_registry(); $this->register_class('APPLICATION', 'TEST_HARNESS_APPLICATION', 'webcore/tests/sys/test_harness_application.php'); }