![]() |
![]()
| ![]() |
![]()
NAMEOpenXPKI::Server::Notification::Base - Notification interface base class DESCRIPTIONBase class for all notifications handlers. Functionsnotify({ MESSAGE, VARS, TOKEN })Public method to be called to send out a notification. must be implemented in the parent class, expects the name of the message and a hashref to the template vars. TOKEN is optional and exchanges persisted information for this handler with the workflow. If the method returns a non-empty value, it is persisted back into the workflow. _render_filename( FILENAME )Expand a relative filename to its absolute path using template_dir. _render_template_file( FILENAME, VARS )Read template form filename and render using TT. Expects path to the template and hashref to the vars. returns the template with vars inserted as string. If path is relative, it is prefixed with template dir. _render_template ( TEMPLATE, VARS )Render a template using TT. Expects template string and hashref to the vars. returns the template with vars inserted as string.
|