1
0
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:
Nils Adermann 2011-08-31 16:34:25 -04:00
parent 482a8c47ea
commit 52f5fa796f
2 changed files with 37 additions and 0 deletions

View 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;
}
}

View 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;
}
}