Lines Matching refs:this

12         $controller->register_hook('TPL_ACT_RENDER', 'AFTER', $this, 'handle_diff_accept');
13 $controller->register_hook('HTML_SHOWREV_OUTPUT', 'BEFORE', $this, 'handle_showrev');
14 $controller->register_hook('ACTION_ACT_PREPROCESS', 'BEFORE', $this, 'handle_approve');
15 $controller->register_hook('ACTION_ACT_PREPROCESS', 'BEFORE', $this, 'handle_mark_ready_for_approval');
16 $controller->register_hook('ACTION_ACT_PREPROCESS', 'BEFORE', $this, 'handle_viewer');
17 $controller->register_hook('TPL_ACT_RENDER', 'BEFORE', $this, 'handle_display_banner');
18 $controller->register_hook('COMMON_WIKIPAGE_SAVE', 'AFTER', $this, 'handle_pagesave_after');
28 $acl = $this->loadHelper('approve_acl');
34 echo '<a href="' . $href . '">'.$this->getLang('approve').'</a>';
37 if ($this->getConf('ready_for_approval') && $event->data == 'diff' && isset($_GET['ready_for_approval'])) {
39 echo '<a href="' . $href . '">'.$this->getLang('approve_ready').'</a>';
50 $db = $this->loadHelper('approve_db');
52 $acl = $this->loadHelper('approve_acl');
69 $acl = $this->loadHelper('approve_acl');
77 $db = $this->loadHelper('approve_db');
90 $acl = $this->loadHelper('approve_acl');
98 $db = $this->loadHelper('approve_db');
113 $acl = $this->loadHelper('approve_acl');
122 $db = $this->loadHelper('approve_db');
144 if (auth_quickaclcheck($INFO['id']) <= AUTH_READ && !$this->getConf('display_banner_for_readonly')) {
149 $acl = $this->loadHelper('approve_acl');
157 $db = $this->loadHelper('approve_db');
167 } elseif ($this->getConf('ready_for_approval') && $page_revision['status'] == 'ready_for_approval') {
177 echo '<strong>'.$this->getLang('approved').'</strong>';
180 if($this->getConf('banner_long')) {
181 echo ' ' . $this->getLang('by') . ' ' . userlink($page_revision['approved_by'], true);
182 echo ' (' . $this->getLang('version') . ': ' . $page_revision['version'] . ')';
190 echo $this->getLang($last_approved_rev == $last_change_date ? 'newest_approved' : 'newest_draft');
199 echo $this->getLang('newest_approved');
205 if ($this->getConf('ready_for_approval') && $page_revision['status'] == 'ready_for_approval') {
206 echo '<strong>'.$this->getLang('marked_approve_ready').'</strong>';
208 echo ' ' . $this->getLang('by') . ' ' . userlink($page_revision['ready_for_approval_by'], true);
210 echo '<strong>'.$this->getLang('draft').'</strong>';
218 echo $this->getLang('newest_draft');
227 echo $this->getLang('newest_approved');
233 if ($this->getConf('ready_for_approval') &&
243 echo $this->getLang('approve_ready');
254 echo $this->getLang('approve');
261 if ($this->getConf('banner_long')) {
264 echo ' | ' . $this->getLang('approver') . ': ' . userlink($page_metadata['approver'], true);
280 $db = $this->loadHelper('approve_db');