/** * After delete event */ public function afterDelete() { $this->activity['projectid'] = $this->page->projectid; $this->activity['type'] = Activity::TYPE_WIKI; $this->activity['title'] = "Deleted Revision <strong>#{revid}</strong> for the page <strong>{pagetitle}</strong> "; // Append project params $this->activity['params'] = array_merge($this->activity['params'], array('{revid}' => $this->revisionid, '{pagetitle}' => $this->page->getLink())); // Activity: New Project Activity::log($this->activity); return parent::afterDelete(); }
/** * After delete event */ public function afterDelete() { $this->activity['projectid'] = $this->projectid; $this->activity['type'] = Activity::TYPE_WIKI; $this->activity['title'] = "Deleted The Wiki Page: <strong>{pagetitle}</strong> and all it's revisions."; // Append project params $this->activity['params'] = array_merge($this->activity['params'], array('{pagetitle}' => $this->title)); // Activity: New Project Activity::log($this->activity); return parent::afterDelete(); }