diff options
Diffstat (limited to 'library')
-rw-r--r-- | library/Pbs/Notifier.php | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/library/Pbs/Notifier.php b/library/Pbs/Notifier.php index 1c7dfca..e3270e7 100644 --- a/library/Pbs/Notifier.php +++ b/library/Pbs/Notifier.php @@ -33,6 +33,13 @@ class Pbs_Notifier{ break; } break; + case "view": + switch($result){ + case "forbidden": + $result = "<div class='errorbox'>Not allowed to see this</div>"; + break; + } + break; case "modify": switch($result){ case "forbidden": @@ -59,6 +66,22 @@ class Pbs_Notifier{ break; } break; + case "update": + switch($result){ + case "forbidden": + $result = "<div class='errorbox'>Not allowed to update this</div>"; + break; + case "404": + $result = "<div class='errorbox'>The Resource was not found on the specified path</div>"; + break; + case "ok": + $result = "<div class='okbox'>Update sucessful</div>"; + break; + case "error": + $result = "<div class='warningbox'>Update failed</div>"; + break; + } + break; case "link": switch($result){ case "forbidden": |