Slaven Rezić > WE_Framework-0.097_03 > WebEditor::OldFeatures::Notify

Download:
WE_Framework-0.097_03.tar.gz

Dependencies

Annotate this POD

Module Version: 1.15   Source  

NAME ^

WebEditor::OldFeatures::Notify - notify functions

SYNOPSIS ^

    use mixin 'WebEditor::OldFeatures::Notify';

    $oldcontroller_objecy->notify($action, ...);

DESCRIPTION ^

SETUP NOTIFY

To setup the notify function in the web.editor, just add the line

    notify => { all => "admin" },

to the features list in WEprojectinfo.pm. The hash consists of action keys and receivers values. The receivers may be a single string or an array of strings. These strings should either denote

an email address

An internet email address (recognized with a @ in it).

a user

A web.editor user.

a group

A web.editor role/group. A user specification has always priority over a same-named role/group.

to send the notify message to. The actions may be:

all

All notifyable actions.

release

A release action (e.g. saving and releasing a page, releasing a folder recursively).

publish

A publish action (manually from a user or automatically from a daemon) of the wohole site.

folderpublish

A publish action for a folder only.

deletepage

A page was deleted.

Another example:

    notify => { "all" => "admin",
                "publish" => ["chiefeditor", 'webmaster@example.com'],
              },

AUTHOR ^

Slaven Rezic

syntax highlighting: