Example #1
0
<?php

$vars = array('to' => 'recipient', 'item' => 'hash <1=>approved, 2=>rejected>		quantity of barcodes', 'date' => 'date');
$templates = array();
$templates[] = array("lang" => "rus", "file_path" => "/rus/barcode/", "file_name" => "moderation.php");
$templates[] = array("lang" => "eng", "file_path" => "/eng/barcode/", "file_name" => "moderation.php");
installTemplateType('barcode.moderation', 'Notify moderators about their job', $vars, $templates);
Example #2
0
<?php

$vars = array('fixedRequest' => 'fixed information request', 'aliveRequest' => 'alive information request', 'month' => 'report month', 'year' => 'report year', 'to' => 'superviser e-mail');
$templates = array();
$templates[] = array("lang" => "rus", "file_path" => "/rus/barcode/", "file_name" => "total_coder.php");
$templates[] = array("lang" => "eng", "file_path" => "/eng/barcode/", "file_name" => "total_coder.php");
installTemplateType('barcode.total_coder', 'Notify main coder about coders. summary by month', $vars, $templates);
Example #3
0
<?php

$vars = array('to' => 'recipient', 'item' => 'object {user_id, qty}', 'date' => 'date');
$templates = array();
$templates[] = array("lang" => "rus", "file_path" => "/rus/barcode/", "file_name" => "coder.php");
$templates[] = array("lang" => "eng", "file_path" => "/eng/barcode/", "file_name" => "coder.php");
installTemplateType('barcode.coder', 'Notify coders about their job', $vars, $templates);
Example #4
0
<?php

$vars = array('from' => 'poster', 'to' => 'recipient', 'barcode_value' => 'barcode_value', 'barcode_id' => 'barcode_id', 'notice' => 'notice');
$templates = array();
$templates[] = array("lang" => "rus", "file_path" => "/rus/barcode/", "file_name" => "notice.php");
$templates[] = array("lang" => "eng", "file_path" => "/eng/barcode/", "file_name" => "notice.php");
installTemplateType('barcode.notice', 'Notify administrators about wrong barcode', $vars, $templates);
Example #5
0
<?php

$vars = array('to' => 'recepient address', 'file_name' => 'Filename for attachment', 'file_body' => 'File contents', 'date' => 'Report date', 'iterator' => 'Status list');
$templates = array();
$templates[] = array("lang" => "rus", "file_path" => "/rus/user/", "file_name" => "status_log.php");
$templates[] = array("lang" => "eng", "file_path" => "/eng/user/", "file_name" => "status_log.php");
installTemplateType('user.status_log', 'Status changes log notifier', $vars, $templates);
Example #6
0
<?php

$vars = array('to' => 'recepient', 'new_password' => 'new password');
$templates = array();
$templates[] = array("lang" => "rus", "file_path" => "/rus/user/", "file_name" => "remind_password.php");
$templates[] = array("lang" => "eng", "file_path" => "/eng/user/", "file_name" => "remind_password.php");
installTemplateType('user.remind_password', 'Remind password notification', $vars, $templates);
Example #7
0
<?php

$vars = array('from' => 'poster', 'to' => 'recipient', 'ticket' => 'ticket object', 'signature' => 'our address, admin phones etc.');
$templates = array();
$templates[] = array("lang" => "rus", "file_path" => "/rus/ticket/", "file_name" => "new.php");
$templates[] = array("lang" => "eng", "file_path" => "/eng/ticket/", "file_name" => "new.php");
installTemplateType('ticket.new', 'New ticket (message) notify', $vars, $templates);
<?php

$vars = array('from_date' => 'date', 'to_date' => 'date', 'iterator' => 'hash<moderator_id:moderation_type:quantity>', 'to' => 'superviser e-mail');
$templates = array();
$templates[] = array("lang" => "rus", "file_path" => "/rus/barcode/", "file_name" => "total_moderation.php");
$templates[] = array("lang" => "eng", "file_path" => "/eng/barcode/", "file_name" => "total_moderation.php");
installTemplateType('barcode.total_moderation', 'Notify moderation superviser about moderators summary by week.', $vars, $templates);