Lines Matching +full:- +full:- +full:global
6 global $conf;
7 global $ACT;
13 $this->prepare('');
15 $this->assertFalse(isHiddenPage('test'));
19 $this->prepare('^:test$', 'admin');
21 $this->assertFalse(isHiddenPage('test'));
25 $this->prepare();
27 $this->assertTrue(isHiddenPage('test'));
31 $this->prepare();
33 $this->assertFalse(isHiddenPage('another'));
37 global $EVENT_HANDLER;
38 $this->prepare();
39 $EVENT_HANDLER->register_hook('PAGEUTILS_ID_HIDEPAGE', 'BEFORE', $this, 'alwaysHide');
41 $this->assertTrue(isHiddenPage('another'));
45 $event->data['hidden'] = true;
49 global $EVENT_HANDLER;
50 $this->prepare();
51 $EVENT_HANDLER->register_hook('PAGEUTILS_ID_HIDEPAGE', 'BEFORE', $this, 'showBefore');
53 $this->assertFalse(isHiddenPage('test'));
57 $event->data['hidden'] = false;
58 $event->preventDefault();
59 $event->stopPropagation();
63 global $EVENT_HANDLER;
64 $this->prepare();
65 $EVENT_HANDLER->register_hook('PAGEUTILS_ID_HIDEPAGE', 'AFTER', $this, 'alwaysHide');
67 $this->assertTrue(isHiddenPage('another'));
71 global $EVENT_HANDLER;
72 $this->prepare();
73 …$EVENT_HANDLER->register_hook('PAGEUTILS_ID_HIDEPAGE', 'AFTER', $this, 'hideBeforeWithoutPrevent');
75 $this->assertTrue(isHiddenPage('another'));
79 $event->data['hidden'] = true;
83 global $EVENT_HANDLER;
84 $this->prepare();
85 $EVENT_HANDLER->register_hook('PAGEUTILS_ID_HIDEPAGE', 'AFTER', $this, 'showAfter');
87 $this->assertFalse(isHiddenPage('test'));
91 $event->data['hidden'] = false;