aboutsummaryrefslogtreecommitdiffstats
path: root/tests/extension/ext/bar/ext.php
blob: 5585edf9acca5a8b7ac0e07fc891d037e23140b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php

class phpbb_ext_bar_ext extends phpbb_extension_base
{
	static public $state;

	public function enable_step($old_state)
	{
		// run 4 steps, then quit
		if ($old_state === 4)
		{
			return false;
		}

		if ($old_state === false)
		{
			$old_state = 0;
		}

		self::$state = ++$old_state;

		return self::$state;
	}
}