public function getWorkflowRequestDescriptionObject()
 {
     $d = new WorkflowDescription();
     $ui = UserInfo::getByID($this->getRequestedUserID());
     $d->setEmailDescription(t("User account \"%s\" has been marked for deletion. The deletion request needs to be approved.", $ui->getUserName()));
     $d->setDescription(t("User %s Submitted for Deletion.", $ui->getUserName()));
     $d->setInContextDescription(t("User Submitted for Deletion."));
     $d->setShortStatus(t("Pending"));
     return $d;
 }
 public function getWorkflowRequestDescriptionObject()
 {
     $d = new WorkflowDescription();
     $c = Page::getByID($this->cID, 'ACTIVE');
     $link = Loader::helper('navigation')->getLinkToCollection($c, true);
     $d->setEmailDescription(t("\"%s\" has pending permission changes. View the page here: %s.", $c->getCollectionName(), $link));
     $d->setInContextDescription(t("Page Submitted for Permission Changes."));
     $d->setDescription(t("<a href=\"%s\">%s</a> submitted for Permission Changes.", $link, $c->getCollectionName()));
     $d->setShortStatus(t("Permission Changes"));
     return $d;
 }
 public function getWorkflowRequestDescriptionObject()
 {
     $d = new WorkflowDescription();
     $c = Page::getByID($this->cID, 'RECENT');
     $link = Loader::helper('navigation')->getLinkToCollection($c, true);
     $d->setEmailDescription(t("\"%s\" has pending changes and needs to be approved. View the page here: %s.", $c->getCollectionName(), $link));
     $d->setDescription(t("Version %s of Page <a href=\"%s\">%s</a> submitted for Approval.", $this->cvID, $link, $c->getCollectionName()));
     $d->setInContextDescription(t("Page Version %s Submitted for Approval.", $this->cvID));
     $d->setShortStatus(t("Pending Approval"));
     return $d;
 }
 public function getWorkflowRequestDescriptionObject()
 {
     $d = new WorkflowDescription();
     $c = Page::getByID($this->cID, 'ACTIVE');
     $target = Page::getByID($this->targetCID, 'ACTIVE');
     $link = Loader::helper('navigation')->getLinkToCollection($c, true);
     $targetLink = Loader::helper('navigation')->getLinkToCollection($target, true);
     $d->setEmailDescription(t("\"%s\" is pending a move to beneath \"%s\". Source Page: %s. Target Page: %s.", $c->getCollectionName(), $target->getCollectionName(), $link, $targetLink));
     $d->setInContextDescription(t("This page is pending a move beneath <strong><a href=\"%s\">%s</a></strong>. ", $targetLink, $target->getCollectionName()));
     $d->setDescription(t("<a href=\"%s\">%s</a> is pending a move beneath <strong><a href=\"%s\">%s</a></strong>. ", $link, $c->getCollectionName(), $targetLink, $target->getCollectionName()));
     $d->setShortStatus(t("Pending Move"));
     return $d;
 }
 public function getWorkflowRequestDescriptionObject()
 {
     $d = new WorkflowDescription();
     $ui = UserInfo::getByID($this->getRequestedUserID());
     $d->setEmailDescription(t("User account \"%s\" has pending activation request which needs to be approved.", $ui->getUserName()));
     $d->setDescription(t("User %s Submitted for Approval.", $ui->getUserName()));
     if ($this->isDeactivationRequest()) {
         $d->setInContextDescription(t("User Submitted for Deactivation."));
     } else {
         $d->setInContextDescription(t("User Submitted for Approval."));
     }
     $d->setShortStatus(t("Pending"));
     return $d;
 }
 public function getWorkflowRequestDescriptionObject()
 {
     $d = new WorkflowDescription();
     $c = Page::getByID($this->cID, 'ACTIVE');
     $link = Loader::helper('navigation')->getLinkToCollection($c, true);
     $d->setEmailDescription(t("\"%s\" has pending sub-page permission inhiterance changes. View the page here: %s.", $c->getCollectionName(), $link));
     if ($this->inheritance == 0) {
         $d->setInContextDescription(t("Sub-pages pending change to inherit permissions from page type."));
     } else {
         $d->setInContextDescription(t("Sub-pages pending change to inherit permissions from parent."));
     }
     $d->setDescription(t("<a href=\"%s\">%s</a> has pending sub-page permission inhiterance changes.", $link, $c->getCollectionName()));
     $d->setShortStatus(t("Sub-Page Inheritance Changes"));
     return $d;
 }
 public function getWorkflowRequestDescriptionObject()
 {
     $d = new WorkflowDescription();
     $c = Page::getByID($this->cID, 'RECENT');
     $link = Loader::helper('navigation')->getLinkToCollection($c, true);
     $v = $c->getVersionObject();
     if (is_object($v)) {
         $comments = $c->getVersionObject()->getVersionComments();
         if (!$this->isNewPageRequest()) {
             // new version of existing page
             $d->setEmailDescription(t("\"%s\" has pending changes and needs to be approved.\n\nVersion Comments: %s\n\nView the page here: %s.", $c->getCollectionName(), $comments, $link));
             $d->setDescription(t("Version %s of Page <a target=\"_blank\" href=\"%s\">%s</a> submitted for Approval.", $this->cvID, $link, $c->getCollectionName()));
             $d->setInContextDescription(t("Page Version %s Submitted for Approval.", $this->cvID));
             $d->setShortStatus(t("Pending Approval"));
         } else {
             // Completely new page.
             $d->setEmailDescription(t("New page created: \"%s\". This page requires approval.\n\nAuthor Comments: %s\n\nView the page here: %s.", $c->getCollectionName(), $comments, $link));
             $d->setDescription(t("New Page: <a target=\"_blank\" href=\"%s\">%s</a>", $link, $c->getCollectionName()));
             $d->setInContextDescription(t("New Page %s submitted for approval.", $this->cvID));
             $d->setShortStatus(t("New Page"));
         }
     }
     return $d;
 }
Beispiel #8
0
 public function getWorkflowRequestDescriptionObject()
 {
     $d = new WorkflowDescription();
     $c = Page::getByID($this->cID, 'ACTIVE');
     $item = t('page');
     if ($c->getPageTypeHandle() == STACKS_PAGE_TYPE) {
         $item = t('stack');
     }
     $link = Loader::helper('navigation')->getLinkToCollection($c, true);
     $d->setEmailDescription(t("\"%s\" has been marked for deletion. View the page here: %s.", $c->getCollectionName(), $link));
     $d->setInContextDescription(t("This %s has been marked for deletion. ", $item));
     $d->setDescription(t("<a href=\"%s\">%s</a> has been marked for deletion. ", $link, $c->getCollectionName()));
     $d->setShortStatus(t("Pending Delete"));
     return $d;
 }