mirror of
https://github.com/phpbb/phpbb.git
synced 2025-04-21 16:22:22 +02:00
[feature/extension-manager] Add extension meta info classes for test extensions
PHPBB3-10323
This commit is contained in:
parent
482a8c47ea
commit
52f5fa796f
24
tests/extension/ext/bar/bar.php
Normal file
24
tests/extension/ext/bar/bar.php
Normal file
@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
class phpbb_ext_bar 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;
|
||||
}
|
||||
}
|
13
tests/extension/ext/moo/moo.php
Normal file
13
tests/extension/ext/moo/moo.php
Normal file
@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
class phpbb_ext_moo extends phpbb_extension_base
|
||||
{
|
||||
static public $purged;
|
||||
|
||||
public function purge_step($old_state)
|
||||
{
|
||||
self::$purged = true;
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user