Lines Matching refs:this

13         $this->hlp = plugin_load('helper','publish');
17 … $controller->register_hook('TPL_ACT_RENDER', 'BEFORE', $this, 'handle_display_banner', array());
23 if (!$this->hlp->isActive()) {
41 if($INFO['perm'] <= AUTH_READ && $this->getConf('hidereaderbanner')){
45 if ($this->hlp->isCurrentRevisionApproved() && $this->getConf('hide_approved_banner')) {
49 $this->showBanner();
58 $difflink = $this->hlp->getDifflink($id,$rev1,$rev2);
67 if ($this->hlp->isCurrentRevisionApproved()) {
70 if ($this->hlp->isHiddenForUser()) {
77 $this->showLatestDraftIfNewer();
78 $this->showLatestApprovedVersion();
79 $this->showDraft();
80 $this->showApproved();
81 $this->showPreviousApproved();
83 $this->showApproveAction();
84 $this->showInternalNote();
89 if ($this->getConf('apr_mail_receiver') !== '' && $INFO['isadmin']) {
90 $addr = $this->getConf('apr_mail_receiver');
92 msg(sprintf($this->getLang('mail_invalid'),htmlspecialchars($addr)),-1);
99 $note = trim($this->getConf('internal note'));
103 if (!$this->hlp->isHidden()) {
112 $revision = $this->hlp->getRevision();
113 $latestRevision = $this->hlp->getLastestRevision();
118 if ($this->hlp->isRevisionApproved($latestRevision)) {
123 printf($this->getLang('apr_recent_draft'), wl($ID, 'force_rev=1'));
124 echo $this->difflink($ID, null, $revision) . '</span>';
129 $revision = $this->hlp->getRevision();
130 $latestApprovedRevision = $this->hlp->getLatestApprovedRevision();
136 $latestRevision = $this->hlp->getLastestRevision();
141 printf($this->getLang('apr_outdated'), wl($ID, 'rev=' . $latestApprovedRevision));
142 echo $this->difflink($ID, $latestApprovedRevision, $revision) . '</span>';
146 $revision = $this->hlp->getRevision();
148 if ($this->hlp->isCurrentRevisionApproved()) {
152 $approvals = $this->hlp->getApprovalsOnRevision($this->hlp->getRevision());
156 …printf($this->getLang('apr_draft'), '<span class="approval_date">' . dformat($revision) . '</span>…
158 … printf(' ' . $this->getLang('approvals'), $approvalCount, $this->getConf('number_of_approved'));
160 printf(' ' . $this->getLang('approved by'), implode(', ', $this->hlp->getApprovers()));
166 if (!$this->hlp->isCurrentRevisionApproved()) {
171 printf($this->getLang('apr_approved'),
172 '<span class="approval_date">' . dformat($this->hlp->getApprovalDate()) . '</span>',
173 implode(', ', $this->hlp->getApprovers()));
179 $previousApproved = $this->hlp->getPreviousApprovedRevision();
184 printf($this->getLang('apr_previous'),
187 echo $this->difflink($ID, $previousApproved, $this->hlp->getRevision()) . '</span>';
194 if (!$this->hlp->canApprove()) {
198 $approvals = $this->hlp->getApprovalsOnRevision($this->hlp->getRevision());
210 echo $this->getLang('approve action');