示例#1
0
	public function getWorkflowRequestDescriptionObject() {
		$d = new WorkflowDescription();
		$c = Page::getByID($this->cID, 'ACTIVE');
		$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 page has been marked for deletion. "));
		$d->setDescription(t("<a href=\"%s\">%s</a> has been marked for deletion. ", $link, $c->getCollectionName()));
		$d->setShortStatus(t("Pending Delete"));
		return $d;
	}
示例#2
0
	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 changes and needs to be approved. View the page here: %s.", $c->getCollectionName(), $link));
		$d->setDescription(t("Page <a href=\"%s\">%s</a> submitted for Approval.", $link, $c->getCollectionName()));
		$d->setInContextDescription(t("Page Submitted for Approval."));
		$d->setShortStatus(t("Pending Approval"));
		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 inheritance. View the page here: %s.", $c->getCollectionName(), $link));
     $d->setInContextDescription(t("Page Submitted to Change Permission Inheritance to %s.", ucfirst(strtolower($this->inheritance))));
     $d->setDescription(t("<a href=\"%s\">%s</a> submitted to change permission inheritance to %s.", $link, $c->getCollectionName(), ucfirst(strtolower($this->inheritance))));
     $d->setShortStatus(t("Permission Inheritance Changes"));
     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;
 }
示例#5
0
	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;
	}